How to work with gui.properties?
Posted: Sun Jun 26, 2022 6:57 pm
Does anyone have a useful guide they can point me at on how to work with gui.properties without tearing out my hair? How do I figure out what any given style is actually inheriting from, and how do I modify that without having everything immediately become a giant hairball?
I look at something like:
And how do I know what that's actually going to produce? If I search my whole project, I find a bunch of things that "are" gui_label, but nothing that says what gui_label *is*.
Obviously it must come by magic out of gui.rpy somehow, but the only things that mention "label" define a text size, but somehow it gets a font and a color from somewhere, I don't know how.
By process of elimination, it must somehow get assigned to gui.accent_color, but damned if I can see how.
So, I want to change the color of the titles in game_menu. I don't really want to just edit the value of gui.accent_color because I can't see any way to actually know how much collateral damage that will cause (what *else* uses gui.accent_color? No idea.) I tried
and amazingly this doesn't work. The color of game_menu_label_text is *still* getting set by gui.accent_color, it's just too powerful. How? I don't know.
Do I have to burn it all down and start over defining text styles that actually do what I want and I can figure out where and how they're used?
I look at something like:
Code: Select all
style game_menu_label is gui_label
style game_menu_label_text is gui_label_text
Obviously it must come by magic out of gui.rpy somehow, but the only things that mention "label" define a text size, but somehow it gets a font and a color from somewhere, I don't know how.
By process of elimination, it must somehow get assigned to gui.accent_color, but damned if I can see how.
So, I want to change the color of the titles in game_menu. I don't really want to just edit the value of gui.accent_color because I can't see any way to actually know how much collateral damage that will cause (what *else* uses gui.accent_color? No idea.) I tried
Code: Select all
style game_menu_label_text is gui_text
style game_menu_label_text:
color "#0f0"
Do I have to burn it all down and start over defining text styles that actually do what I want and I can figure out where and how they're used?