#button side text
1 messages · Page 1 of 1 (latest)
in most cases you use the variable $new_ui_label_offset. Such as:
"$new_ui_label_offset": [ 30, 0 ]
Where would I put this?
?
@night crest Help here
You just put it in the button element
You should look into the vanilla button templates to see how your particular button is set up if you want to get into specifics
the height offset looks wrong
what is the text supposed to be?
What am I going to put on the buttons?
"Dmg Hp mg" Something like that
@night crest
in what way is the text messed up
wdym
WDYM?
what do you mean
Text is going up instead of forward
where? I thought your buttons were the yellow squares
I don't know what it's supposed to look like though. How is it not working out? What did you set it to?
Look, I wanted to put the text in front of the button and it worked, but the text was wrong and it is not completely showing the text is "damage" and it appears "+..." Then I want to fix it
And make the button text look right
@night crest
How do I fix this? Without increasing the size of the button?
edit the label variable
as you can see:
"new_ui_binding_button_label": {
"type": "label",
"layer": 2,
"text": "$button_text",
"color": "$text_color",
"$font_type|default": "default",
"font_type": "$font_type",
"font_size": "$button_font_size",
"$button_font_scale_factor|default": 1.0,
"font_scale_factor": "$button_font_scale_factor",
"$button_font_size|default": "normal",
"$new_ui_label_offset|default": "$button_offset",
"offset": "$new_ui_label_offset",
"$anchor|default": "center",
"anchor_from": "$anchor",
"anchor_to": "$anchor",
"shadow": false,
"$button_text_size|default": [ "default", "default" ],
"size": "$button_text_size",
"$button_text_max_size|default": [ "100%", 10 ], // Per design buttons are single line text only
"max_size": "$button_text_max_size",
"$text_alignment|default": "center",
"text_alignment": "$text_alignment",
"$tts_section_header|default": "",
"tts_section_header": "$tts_section_header",
"bindings": [
{
"binding_type": "$button_text_binding_type",
"binding_condition": "$button_binding_condition",
"binding_collection_name": "$button_text_grid_collection_name",
"binding_name": "$button_text",
"binding_name_override": "$button_text"
}
]
},
This is the label that vanilla uses for most button text. It's size is set to the variable $button_text_size
So you would edit this variable to change the size
In the future you should reference the vanilla files to see how their elements are set up so you can change them yourself