Page 1 of 1

Textbutton overlaping

Posted: Sun Jun 02, 2019 2:13 pm
by Saiwon
Im very new at this, and I just want to know if it's possible that the textbuttons don't overlap each other.

Code: Select all

screen chat_kitchen:
    add "frame_chat.png"
    viewport:

        area (1048, 227, 537, 607)
        scrollbars "vertical"
        mousewheel True
        draggable True

        side_yfill True
        has vbox
        if kitchen == True:
            textbutton "{size=-3}OptionA" action ui.callsinnewcontext("chat_kitchen_day")
        if kitchen == True:
            textbutton "{size=-3}Option B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B B  {color=#232323}"  action ui.callsinnewcontext("chat_kitchen_day")
        if kitchen == True:
            textbutton "{size=-3}Option c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c c {color=#232323}"  action ui.callsinnewcontext("chat_kitchen_day")

Re: Textbutton overlaping

Posted: Sun Jun 02, 2019 2:23 pm
by Alex
What if you set spacing property for the box?

Code: Select all

        side_yfill True
        has vbox
        spacing 5
        if kitchen == True:
            textbutton "{size=-3}OptionA" action ui.callsinnewcontext("chat_kitchen_day")
https://www.renpy.org/doc/html/style_pr ... properties

Re: Textbutton overlaping

Posted: Sun Jun 02, 2019 2:33 pm
by Saiwon
Alex wrote: Sun Jun 02, 2019 2:23 pm What if you set spacing property for the box?

Code: Select all

        side_yfill True
        has vbox
        spacing 5
        if kitchen == True:
            textbutton "{size=-3}OptionA" action ui.callsinnewcontext("chat_kitchen_day")
https://www.renpy.org/doc/html/style_pr ... properties
I tried but this is what happens if I put spacing

Re: Textbutton overlaping

Posted: Sun Jun 02, 2019 4:28 pm
by Alex
So, is it good, or..?