|
21.
|
|
|
The event method is called to pass a pygame event to the creator-defined displayable. If the event method returns a value other than None, that value is returned as the result of the interaction.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/udd.rst:176
|
|
22.
|
|
|
The event method exists on other displayables, allowing the creator-defined displayable to pass on the event.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/udd.rst:181
|
|
23.
|
|
|
`ev`
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/udd.rst:185
|
|
24.
|
|
|
An `event object <http://www.pygame.org/docs/ref/event.html>`_
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/udd.rst:185
|
|
25.
|
|
|
`x`, `y`
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/udd.rst:191
|
|
26.
|
|
|
The x and y coordinates of the event, relative to the upper-left corner of the displayable. These should be used in preference to position information found in the pygame event objects.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/udd.rst:188
|
|
27.
|
|
|
A float, the shown timebase, in seconds.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/udd.rst:194
|
|
28.
|
|
|
An event is generated at the start of each interaction, and :func:`renpy.timeout` can be used to cause another event to occur.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/udd.rst:196
|
|
29.
|
|
|
This method is called at the start of each interaction. It can be used to trigger a redraw, and probably should be used to trigger a redraw if the object participates in rollback.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/udd.rst:202
|
|
30.
|
|
|
If the displayable has child displayables, this method should be overridden to return a list of those displayables. This ensures that the per_interact methods of those displayables are called, and also allows images used by those displayables to be predicted.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/udd.rst:208
|