qr timeout 2

This commit is contained in:
Patrick Haßel 2025-06-28 08:37:09 +02:00
parent 6768852636
commit 6ad4a82d47

View File

@ -225,6 +225,7 @@ class Fotobox:
dt: float = clock.tick(20) / 1000 dt: float = clock.tick(20) / 1000
self._shooting_timer.tick(dt) self._shooting_timer.tick(dt)
self._countdown_timer.tick(dt) self._countdown_timer.tick(dt)
self._qr_timer.tick(dt)
def _draw(self): def _draw(self):
screen.fill((0, 0, 0)) screen.fill((0, 0, 0))
@ -295,6 +296,7 @@ class Fotobox:
else: else:
self._choice = None self._choice = None
elif new_state == State.QR: elif new_state == State.QR:
self._qr_timer.restart()
screen.fill((0, 0, 0)) screen.fill((0, 0, 0))
screen.blit(LOADING_SURFACE, LOADING_RECT) screen.blit(LOADING_SURFACE, LOADING_RECT)
pygame.display.flip() pygame.display.flip()