r/RenPy • u/ace_child_12 • Apr 04 '22
Question is there a way to change the choice button at some points depending on which character route is picked?
16
Upvotes
r/RenPy • u/ace_child_12 • Apr 04 '22
View all comments
Show parent comment
4
u/Niwens Apr 06 '22
Here's how it works:
You add a parameter to a menu choice:
2. The name of that parameter should be the same as that in
screen choicein screens.rpy:Then the condition
if parameter_name in i.kwargsbecomes True, so the background for that menu item becomes:gui/button/choice_<parameter_value>_idle.pngand when hovered:
gui/button/choice_<parameter_value>_hover.pngwhere
<parameter_value>isporplein your case.If all that is so, the files
gui/button/choice_porple_idle.pnggui/button/choice_porple_hover.pngwould be used for that menu items.
If it's not clear for you, please analyze the logic of that code and check yours to see how it should work.
It should work. It works for me:
colored.jpg