|
11.
|
|
|
When no ``style`` property is given, a parent is chosen based on the kind of displayable be that has been supplied. The parent chosen can be influenced by the :ref:`style_group <style-group>` property of user interface statements in the screen language.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/style.rst:62
|
|
12.
|
|
|
When a style is defined without a parent being specified, a default parent is chosen for the style. If the style contains an underscore (_) in its name, the parent is named by removing everything up to and including the first underscore. For example, a style named ``my_button`` will inherit from ``button``. This inheritance can be changed using the style statement or by calling a method on a style object. When a style that does not exist is used, and the style has an underscore in its name, Ren'Py will create it using the default parent.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/style.rst:67
|
|
13.
|
|
|
Style names beginning with an underscore are reserved for Ren'Py use.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/style.rst:76
|
|
14.
|
|
|
As Ren'Py builds styles on startup, named styles should not be changed outside of init code.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/style.rst:78
|
|
15.
|
|
|
Style Inspector
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/style.rst:83
|
|
16.
|
|
|
When :var:`config.developer` is true, the style inspector can be used to see which styles are being used by a displayable.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/style.rst:85
|
|
17.
|
|
|
To activate the style inspector, place the mouse over a displayable, and press shift+I. Ren'Py will display a list of displayables that include the mouse position, in the order they are drawn to the screen. (That is, the last displayable is the one on top of the others.)
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/style.rst:88
|
|
18.
|
|
|
Click the name of a style to display the styles the displayable inherits from, and the properties each style contributes the to the final displayable.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/style.rst:93
|
|
19.
|
|
|
Defining Styles: Style Statement
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/style.rst:98
|
|
20.
|
|
|
The preferred way to define styles is through the style statement::
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/style.rst:100
|