[Solved] How to delete/add borders around textbutton?

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
User avatar
Nanahs
Veteran
Posts: 310
Joined: Wed Aug 22, 2018 5:50 pm
Contact:

[Solved] How to delete/add borders around textbutton?

#1 Post by Nanahs »

I thought of changing the borders on gui, but I think it would change all borders, right?

First I have this screen:

Code: Select all

screen leavechangeroom():

    textbutton '{size=30}Leave{/size}' action Jump("menu2")
    textbutton '{size=30}Configuration{/size}' action Jump("configurationmenu")
On pc version there are no borders around the text. But on Android there are black borders.
Like this:

Image

I don't want this one to have borders. On pc version and android version.

On the other hand, I have this other code:

Code: Select all

screen one_buton_scr():
    
    imagemap:
        ground "bt1.png"
        hover "bt2.png"

        hotspot(662, 110, 51, 44) action ToggleScreen("my_buttons")  


screen my_buttons():


    frame:
        style_group 'status'
        align(0.5, 0.5)
        has vbox 
        
        textbutton "{size=30}Music Room{/size}" action Jump("musicroom")
        null height 50
        textbutton "{size=30}Gallery{/size}" action Jump("musicroom")
        null height 50
        textbutton "{size=30}Messages{/size}" action Jump("musicroom")
        null height 50
        textbutton "{size=30}Menu{/size}" action Jump("musicroom")
        null height 50
And it looks like this (on Android):

Image

Once again I wanted to delete this weird black border.
But I wanted to add a white border like this:

Image

So how should I do that?
Delete the borders on gui and add a border in the vbox on the second code? :?:

Is there a way to delete the borders of the textbuttons? On Android, because on pc there are no borders.

Thanks.
Last edited by Nanahs on Sun Feb 03, 2019 12:14 pm, edited 1 time in total.

User avatar
Kia
Eileen-Class Veteran
Posts: 1040
Joined: Fri Aug 01, 2014 7:49 am
Deviantart: KiaAzad
Discord: Kia#6810
Contact:

Re: How to delete/add borders around textbutton?

#2 Post by Kia »

for the buttons and

Code: Select all

background None
for the frame containing them

Code: Select all

background Frame("line_frame.png", 10,10)

you can also use style_prefix for easier styling

User avatar
Nanahs
Veteran
Posts: 310
Joined: Wed Aug 22, 2018 5:50 pm
Contact:

Re: How to delete/add borders around textbutton?

#3 Post by Nanahs »

Kia wrote: Fri Jan 25, 2019 1:27 pm for the buttons and

Code: Select all

background None
for the frame containing them

Code: Select all

background Frame("line_frame.png", 10,10)

you can also use style_prefix for easier styling
Thank you so much! :)

Post Reply

Who is online

Users browsing this forum: Semrush [Bot]