Textbutton overlaping

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
Saiwon
Newbie
Posts: 2
Joined: Sun Jun 02, 2019 1:58 pm
Contact:

Textbutton overlaping

#1 Post 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")
Last edited by Saiwon on Mon Jul 01, 2019 6:43 pm, edited 1 time in total.

User avatar
Alex
Lemma-Class Veteran
Posts: 3093
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Textbutton overlaping

#2 Post 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

Saiwon
Newbie
Posts: 2
Joined: Sun Jun 02, 2019 1:58 pm
Contact:

Re: Textbutton overlaping

#3 Post 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
Last edited by Saiwon on Mon Jul 01, 2019 6:43 pm, edited 1 time in total.

User avatar
Alex
Lemma-Class Veteran
Posts: 3093
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Textbutton overlaping

#4 Post by Alex »

So, is it good, or..?

Post Reply

Who is online

Users browsing this forum: Andredron, Google [Bot]