|
111.
|
|
|
To define a new action, inherit from this class. Override the methods in this class to change the behavior of the action.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/screen_python.rst:141
|
|
112.
|
|
|
This is the method that is called when the action is activated. In many cases, returning a non-None value from the action will cause the current interaction to end.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/screen_python.rst:146
|
|
113.
|
|
|
This method must be overridden, as the default method will raise NotImplemented (and hence cause Ren'Py to report an error).
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/screen_python.rst:150
../../source/screen_python.rst:213
|
|
114.
|
|
|
This is called to determine if the button with this action should be sensitive. It should return true if the button is sensitive.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/screen_python.rst:156
|
|
115.
|
|
|
Note that __call__ can be called, even if this returns False.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/screen_python.rst:160
|
|
116.
|
|
|
The default implementation returns True.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/screen_python.rst:162
|
|
117.
|
|
|
This should return true if the button should be rendered as a selected button, and false otherwise.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/screen_python.rst:166
|
|
118.
|
|
|
The default implemention returns False.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/screen_python.rst:169
|
|
119.
|
|
|
This method is called once at the start of each interaction, and then is called periodically thereafter. If it returns a number, it will be called before that many seconds elapse, but it might be called sooner.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/screen_python.rst:173
|
|
120.
|
|
|
The main use of this is to call :func:`renpy.restart_interaction` if the value of get_selected or get_sensitive should change.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/screen_python.rst:178
|