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.
So you want to define a selected state for the text button? Check out the documentation here. What you need to define is a selected_idle state and a selected_hover state.
I've never done this with text buttons before (I like using imagebuttons better because image states are much easier to define with those), so I don't know 100% how the code should be written. The documentation shows styles, but my knowledge of using them correctly is limited. ^^;;
No, I defined the style alright. The problem is that using the gallery code all the gallery pages buttons are selected, not just the current page I'm on.
Are you certain it's not something wrong with the image? Like, perhaps you made a selected_idle version of an image your idle image? idle needs to be what it looks like before something is selected or even hovered. Just check and make sure all of that is set up right or even show us the images you have for that then see if it's something wrong in the code.