#button side text

1 messages · Page 1 of 1 (latest)

midnight creek
#

Help

night crest
#

in most cases you use the variable $new_ui_label_offset. Such as:
"$new_ui_label_offset": [ 30, 0 ]

midnight creek
#

Where would I put this?

midnight creek
#

@night crest Help here

night crest
#

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

midnight creek
#

really changed

#

Only the text is messed up @night crest

night crest
#

the height offset looks wrong

midnight creek
#

How would you fix this?

#

@night crest

night crest
#

what is the text supposed to be?

midnight creek
#

What am I going to put on the buttons?

#

"Dmg Hp mg" Something like that

#

@night crest

night crest
#

in what way is the text messed up

midnight creek
#

Possibly going up

#

@night crest

night crest
#

wdym

midnight creek
#

WDYM?

night crest
#

what do you mean

midnight creek
#

Text is going up instead of forward

night crest
#

where? I thought your buttons were the yellow squares

midnight creek
#

And is

#

This is the button text

#

So it's not working out

#

@night crest

night crest
#

I don't know what it's supposed to look like though. How is it not working out? What did you set it to?

midnight creek
#

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

night crest
#

Your text box is too small

#

You need to modify the size of the text box variable

midnight creek
#

How do I fix this? Without increasing the size of the button?

night crest
#

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

midnight creek
#

Just the text that got a little crooked

#

@night crest