mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-08 16:53:49 +08:00
ough 2
This commit is contained in:
parent
460137bc39
commit
6ac5959093
@ -186,16 +186,16 @@ class RespawnIcon:
|
|||||||
self._dec_timer = None
|
self._dec_timer = None
|
||||||
return
|
return
|
||||||
old_text: str = self._dec_text.node.text
|
old_text: str = self._dec_text.node.text
|
||||||
iter: int
|
iterate: int
|
||||||
# Get the following display text using our current one.
|
# Get the following display text using our current one.
|
||||||
try:
|
try:
|
||||||
iter = display.index(old_text) + 1
|
iterate = display.index(old_text) + 1
|
||||||
# If we don't match any in the display list, we
|
# If we don't match any in the display list, we
|
||||||
# can assume we've just started iterating.
|
# can assume we've just started iterating.
|
||||||
except ValueError:
|
except ValueError:
|
||||||
iter = 0
|
iterate = 0
|
||||||
# Kill the timer if we're at the last iteration.
|
# Kill the timer if we're at the last iteration.
|
||||||
if iter >= len(display):
|
if iterate >= len(display):
|
||||||
self._dec_timer = None
|
self._dec_timer = None
|
||||||
return
|
return
|
||||||
self._dec_text.node.text = display[iter]
|
self._dec_text.node.text = display[iter]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user