[SOLVED] Menu choice button style messed up after updating

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
Lezalith
Regular
Posts: 82
Joined: Mon Dec 21, 2015 6:45 pm
Contact:

[SOLVED] Menu choice button style messed up after updating

#1 Post by Lezalith »

I was working on a game in Ren'Py 6.99.3, but had to update because a function was not working.

Now, my frames that I'm using for Menu Choices don't work anymore.

Code: Select all

    style.menu_choice_button.background = Frame("GUI/Textbox/choice_idle.png",5,5)
    style.menu_choice_button.hover_background = Frame("GUI/Textbox/choice_hover.png",5,5)
It's acting like it was a regular background, not a frame. It doesn't change it's size at all.
I am, however, using frames in a different section of the game, too...

Code: Select all

style skillcheckFailedStyle:
    background Frame("GUI/Frames/red.png", 10, 10)
    xpadding 20
    ypadding 20
Like this. And that one works just fine even after the update.

Any ideas, please?
Last edited by Lezalith on Wed Apr 05, 2017 2:19 pm, edited 1 time in total.

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: Menu choice button style messed up after updating Ren'py

#2 Post by xela »

Like what we're doing? Support us at:
Image

User avatar
Lezalith
Regular
Posts: 82
Joined: Mon Dec 21, 2015 6:45 pm
Contact:

Re: Menu choice button style messed up after updating Ren'py

#3 Post by Lezalith »

That's definitely something I missed and I shouldn't have.

But I added all sorts of things from that page and neither helps. Was you linking it supposed to be a fix, or just letting me know there's nothing I can do with it?

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: Menu choice button style messed up after updating Ren'py

#4 Post by xela »

I thought this might be worth of trying:

Code: Select all

define config.enforce_window_max_size = False
there could be some other things as well...
Like what we're doing? Support us at:
Image

User avatar
Lezalith
Regular
Posts: 82
Joined: Mon Dec 21, 2015 6:45 pm
Contact:

Re: Menu choice button style messed up after updating Ren'py

#5 Post by Lezalith »

It did look like something that would help, but sadly, it doesn't do anything ._.

Any other ideas, anybody?

User avatar
indoneko
Miko-Class Veteran
Posts: 528
Joined: Sat Sep 03, 2016 4:00 am
Contact:

Re: Menu choice button style messed up after updating Ren'py

#6 Post by indoneko »

Perhaps you can try something like this :

Code: Select all

style choice_button is default:
    properties gui.button_properties("choice_button")
    background Frame("GUI/Textbox/choice_idle.png",120, 3, 120, 26)   # Your background
    hover_background Frame("GUI/Textbox/choice_hover.png",120, 3, 120, 26)  # Your background
    yminimum 50  # Testing how big can we resize the button
You might want to follow Xela's suggestion first before you're able to change the button's size.
My avatar is courtesy of Mellanthe

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: Menu choice button style messed up after updating Ren'py

#7 Post by xela »

Honestly... when that RenPy version came out, I had to update like 1000 lines of gui code, didn't even bother trying to get old way(s) to work. Any gui issues can be solved by writing proper code for them (all of those issues were there due to gui designers that didn't read Ren'Py docs (it's an open sourced project with free contributions allowed via github)).

Just fix whatever broke down.
Like what we're doing? Support us at:
Image

User avatar
Lezalith
Regular
Posts: 82
Joined: Mon Dec 21, 2015 6:45 pm
Contact:

Re: Menu choice button style messed up after updating Ren'py

#8 Post by Lezalith »

xela wrote:Just fix whatever broke down.
I wish you weren't saying that to someone who is a complete noob when it comes to programming.

Edit:
I guess I am not a complete noob. I fixed it after all :)

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot], IrisColt