#Need help with text sizes

1 messages · Page 1 of 1 (latest)

desert patio
#

If I have §g§r the text should be big and if §s§r small but if both are in the same line it doesn't show the sizes how do i fix this?

            form.button("§g§r§cHI")
            form.button("§s§r§cHI")
            for (let seed of seeds) {
                
                form.button({ rawtext: [
                    { text: `§g§r§f${seed.name}\n` }, 
                    { text: `§s§r§8x${seed.stock} Stock\n` }, 
                    { text: `§g§r§a${seed.stock != 0 ? seed.price : "§cNO STOCK"}` }] 
                }, seed.texture)

            }
steady scarab
#

Lmao is this that plant game on roblox

desert patio
steady scarab
#

Cool, I also don’t really understand your question

mild fox
#

If you are using bindings you would have to make each text a different panel, since this way you are placing both § in the same text

desert patio
desert patio
steady scarab
#

yeah you cant have two bindings on the same piece of text, like angel said above youd need to make two seperate text components, which could be achieved with %. substringing

desert patio
#

Oh ok thx

desert patio
steady scarab
#

i also recommend using a spacer for the %. somin like "source_property_name": "((%.25s * #form_button_text) - '\t')",

desert patio
desert patio
steady scarab
#

yeah exactly

#

it would be displayed like large text\t\t\t\t\t\t\t\t\t\t\t\tsmall text

#

with this section large text\t\t\t\t\t\t\t\t\t\t\t\t = 20 chars or %.20

desert patio
desert patio
#

Anyone? please

hearty sinew
#

try with this

#
form.button(`§f${seed.name}`.padEnd(100, '\t') + `§8x${seed.stock} Stock`.padEnd(100, '\t') + `§a${seed.stock != 0 ? seed.price : "§cNO STOCK"}`)
arctic cypress
#

cuh u do not need 200 characters

#

max 64 each