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 I want to completely change the UI from act 1 to act 2 (there is a reason. And not to make it harder for myself)
I got the colour scheme to change, but the main menu buttons are still the same colour.
And I can't put the whole thing inside a persistent "if" statement for some reason.
gui.rpy (I'm guessing this is what I need to change)
## Colors ######################################################################
##
## The colors of text in the interface.
## An accent color used throughout the interface to label and highlight text.
define gui.accent_color = u'#0099cc'
## The color used for a text button when it is neither selected nor hovered.
define gui.idle_color = u'#888888'
## The small color is used for small text, which needs to be brighter/darker to
## achieve the same effect.
define gui.idle_small_color = u'#aaaaaa'
## The color that is used for buttons and bars that are hovered.
define gui.hover_color = u'#66c1e0'
## The color used for a text button when it is selected but not focused. A
## button is selected if it is the current screen or preference value.
define gui.selected_color = u'#ffffff'
## The color used for a text button when it cannot be selected.
define gui.insensitive_color = u'#8888887f'
## Colors used for the portions of bars that are not filled in. These are not
## used directly, but are used when re-generating bar image files.
define gui.muted_color = u'#003d51'
define gui.hover_muted_color = u'#005b7a'
## The colors used for dialogue and menu choice text.
define gui.text_color = u'#ffffff'
define gui.interface_text_color = u'#ffffff'
So I clearly need to change the colours, or add more with an "if"
But how?
Any help is greatly appreciated.
if persistent.act == 1:
## An accent color used throughout the interface to label and highlight text.
define gui.accent_color = u'#0099cc'
## The color used for a text button when it is neither selected nor hovered.
define gui.idle_color = u'#888888'
## The small color is used for small text, which needs to be brighter/darker to
## achieve the same effect.
define gui.idle_small_color = u'#aaaaaa'
## The color that is used for buttons and bars that are hovered.
define gui.hover_color = u'#66c1e0'
## The color used for a text button when it is selected but not focused. A
## button is selected if it is the current screen or preference value.
define gui.selected_color = u'#ffffff'
## The color used for a text button when it cannot be selected.
define gui.insensitive_color = u'#8888887f'
## Colors used for the portions of bars that are not filled in. These are not
## used directly, but are used when re-generating bar image files.
define gui.muted_color = u'#003d51'
define gui.hover_muted_color = u'#005b7a'
## The colors used for dialogue and menu choice text.
define gui.text_color = u'#ffffff'
define gui.interface_text_color = u'#ffffff'
define gui.splash_text_color = u'#000000'
define gui.text_color = u'#ffffff'
define gui.interface_text_color = u'#ffffff'
else:
## An accent color used throughout the interface to label and highlight text.
define gui.accent_color = u'#1b272b'
## The color used for a text button when it is neither selected nor hovered.
define gui.idle_color = u'#000000'
## The small color is used for small text, which needs to be brighter/darker to
## achieve the same effect.
define gui.idle_small_color = u'#aaaaaa'
## The color that is used for buttons and bars that are hovered.
define gui.hover_color = u'#66c1e0'
## The color used for a text button when it is selected but not focused. A
## button is selected if it is the current screen or preference value.
define gui.selected_color = u'#ffffff'
## The color used for a text button when it cannot be selected.
define gui.insensitive_color = u'#8888887f'
## Colors used for the portions of bars that are not filled in. These are not
## used directly, but are used when re-generating bar image files.
define gui.muted_color = u'#003d51'
define gui.hover_muted_color = u'#005b7a'
## The colors used for dialogue and menu choice text.
define gui.text_color = u'#ffffff'
define gui.interface_text_color = u'#ffffff'
define gui.splash_text_color = u'#000000'
define gui.text_color = u'#ffffff'
define gui.interface_text_color = u'#ffffff'
But it made the menu buttons black regardless of the act variable.
Any ideas as to how I can achieve what I want?