I set up a default variable that I change to the character's name when I want to change the game menu. I have the variable in options.rpy:
Code: Select all
#For POV
default POV = "viv"
Code: Select all
#NAVIGATION:
add "gui/game_menu_assets/[POV]/main_note_bg.png" at note_menu_movein
imagebutton:
idle "gui/game_menu_assets/[POV]/about_idle.png"
hover "gui/game_menu_assets/[POV]/about_hover.png"
selected_idle "gui/game_menu_assets/[POV]/about_hover.png"
selected_hover "gui/game_menu_assets/[POV]/about_hover.png"
selected title == "About"
focus_mask True
action ShowMenu("about")
at note_menu_movein
imagebutton:
idle "gui/game_menu_assets/[POV]/help_idle.png"
hover "gui/game_menu_assets/[POV]/help_hover.png"
selected_idle "gui/game_menu_assets/[POV]/help_hover.png"
selected_hover "gui/game_menu_assets/[POV]/help_hover.png"
selected title == "Help"
focus_mask True
action ShowMenu("help")
at note_menu_movein
## ETC... you get the idea
When I hit the point where I change the variable and then open the menu, all of the buttons will have changed to the other UI button.
BUT the images (the ones that I used "add" with) stay as the previous version. If I open the game menu AGAIN, it will change to the new UI.
Before I change the variable:
![Image](https://i.imgur.com/edehwks.png)
After the variable change, upon opening game menu initially:
![Image](https://i.imgur.com/A1tGKLC.png)
Opening it a second time:
![Image](https://i.imgur.com/LSUhGD1.png)
My question is, what should I do so that everything changes upon opening the game menu the first time? It seems like the buttons will immediately change, but the images require you to open the menu TWICE before it changes?
I'm not sure how to fix this. My brute force idea is to make all the image into non-clickable buttons to force it to happen. But I don't think that's a smart idea, LMAO.
Thank you!!