|
115.
|
|
|
When writing custom Python routines that must play nice with the fix_rollback system there are a few simple things to know. First of all the :func:`renpy.in_fixed_rollback` function can be used to determine whether the game is currently in fixed rollback state. Second, when in fixed rollback state, :func:`ui.interact` will always return the supplied roll_forward data regardless of what action was performed. This effectively means that when the :func:`ui.interact`/:func:`renpy.checkpoint` functions are used, most of the work is done.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/save_load_rollback.rst:338
|
|
116.
|
|
|
To simplify the creation of custom screens, two actions are provided to help with the most common uses. The :func:`ui.ChoiceReturn` action returns the value when the button it is attached to is clicked. The :func:`ui.ChoiceJump` action can be used to jump to a script label. However, this action only works properly when the screen is called trough a ``call screen`` statement.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/save_load_rollback.rst:347
|
|
117.
|
|
|
Example::
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/save_load_rollback.rst:354
../../source/save_load_rollback.rst:368
|
|
118.
|
|
|
Rollback-blocking and -fixing Functions
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/save_load_rollback.rst:392
|
|
119.
|
|
|
Prevents the game from rolling back to before the current statement.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/blockrollback:5
|
|
120.
|
|
|
Prevents the user from changing decisions made before the current statement.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/blockrollback:10
|
|
121.
|
|
|
Returns true if rollback is currently occurring and the current context is before an executed renpy.fix_rollback() statement.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/blockrollback:15
|
|
122.
|
|
|
A menu choice action that returns `value`, while managing the button state in a manner consistent with fixed rollback. (See block_all for a description of the behavior.)
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/blockrollback:20
../../source/inc/blockrollback:54
|
|
123.
|
|
|
The label text of the button. For imagebuttons and hotspots this can be anything. This label is used as a unique identifier of the options within the current screen. Together with `location` it is used to store whether this option has been chosen.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/blockrollback:26
../../source/inc/blockrollback:60
|
|
124.
|
|
|
`value`
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/blockrollback:32
../../source/inc/blockrollback:66
|