|
28.
|
|
|
Causes Ren'Py to enter the named mode, or stay in that mode if it's already in it.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/modes:5
|
|
29.
|
|
|
Mode Callbacks
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/modes.rst:75
|
|
30.
|
|
|
The :var:`config.mode_callbacks` variable contains a list of mode callbacks that are invoked whenever Ren'Py enters a mode. The mode callbacks are called with two parameters:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/modes.rst:77
|
|
31.
|
|
|
mode
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/modes.rst:82
|
|
32.
|
|
|
A string giving the name of the mode that we are entering.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/modes.rst:82
|
|
33.
|
|
|
old_modes
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/modes.rst:86
|
|
34.
|
|
|
A list of strings, giving the modes that the system has previously entered, ordered from most recent to least recent.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/modes.rst:85
|
|
35.
|
|
|
Note that when entering a mode we're already in, the first item in `old_modes` will be equal to `mode`.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/modes.rst:88
|
|
36.
|
|
|
Example Mode Callbacks
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/modes.rst:93
|
|
37.
|
|
|
This mode callback causes transitions to occur when switching from ADV to NVL mode, and vice-versa. This ships as part of Ren'Py, so there's no need to actually use it. ::
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/modes.rst:95
|