#display image at top right?

1 messages · Page 1 of 1 (latest)

tropic warren
#
"image": {
"type": "image",
"texture": "texture path here",
"anchor_from": "top_right",
"anchor_to": "top_right",
"size":[ 16, 16] //change it to your liking
}
#

It can be in any screen

pulsar niche
#

why?

#

in root_panel?

#

yeah

#

are you a beginner?

#

oh well

#

oh yes

#
  "namespace": "hud",
  "image": {
    "type": "image",
    "texture": "textures/ui/mmwatermark",
    "anchor_from": "top_right",
    "anchor_to": "top_right",
    "size":[ 16, 16]
  },
    "root_panel": {
        "modifications": [
            {
                "array_name": "controls",
                "operation": "insert_front",
                "value": [
                    {
                        "[email protected]": {}
                    }
                ]
            }
        ]
    }```
slender geyser
#

@arctic mesa lemme see

#

hmm

#

i did not think it would be that tiny lmao

#

all get a new image

#

aight

wary lantern
#

missing texture

#

if you wanna adjust the size i assume changing "size":[ 16, 16] would be the way 💀

#

and you added it like this:

"texture": "textures/ui/test",

slender geyser
#

yeah pls make the image bigger

wary lantern
#

that wont change anything if the image is missing lmao

slender geyser
#

oh lmao

wary lantern
#

did you restart your game? sometimes its still in the cache

#

ru using a _ui_defs file? maybe youll need to add it to that if youre using one

#

{ "ui_defs": [ "ui/hud_screen.json" ] }

thats how it looks like

#

its

#

_ui_defs.json

#

inside your ui folder

#

but its not needed, i was just asking if you have it because then youd need to reference stuff in there

wary lantern
#

:(

slender geyser
#

@wary lantern its still missing texture glitch for alexbadat

wary lantern
#

then idk how to fix it if everything is named right

slender geyser
#

your right

wary lantern
#

😭

#

make sure to not write mmwatermark.png or something yk

#

ahh alright

slender geyser
#

try .json or .jpeg

#

oh

#

oh ok

#

all just keep being pataiant

wary lantern
#

offset?