A new feature I just added in what will be come 6.11.0d:
When a style doesn't exist, Ren'Py will strip off everything up to and including the first underscore in the style name. If what remains exists as a style, Ren'Py will create a new style that inherits from the existing style.
For example, if I do:
Code: Select all
init python:
style.pref_vbox.box_spacing = 100
The pref_vbox style will be created if it doesn't already exist.
I expect that this will mostly be used with the screen language's new group property. The group property lets one specify a prefix for the style of this displayable and its children. For example, I can now write:
Code: Select all
screen display_preference:
frame:
group "pref"
has vbox
label "Display"
textbutton "Window" action Preference("display", "window")
textbutton "Fullscreen" action Preference("display", "fullscreen")
This will use the pref_frame, pref_vbox, pref_label, pref_label_text, pref_button and pref_button_text styles automatically, if they exist.
(I'm not sure I like group as the keyword for this last feature, so if someone wants to make a suggestion, I'd consider it.)
backansi >>> your bug will be fixed in the next Ren'Py.