diff --git a/Fotobox.py b/Fotobox.py index 5b9bed8..2d2d3e0 100644 --- a/Fotobox.py +++ b/Fotobox.py @@ -232,9 +232,12 @@ class Fotobox: def _draw(self): screen.fill((0, 0, 0)) if self._state == State.IDLE: - screen.blit(FOTOBOX_TITLE_SURFACE, FOTOBOX_TITLE_RECT) - screen.blit(self._idle_qr, self._idle_qr_rect) - screen.blit(self._idle_url, self._idle_url_rect) + if self._event is not None and self._event.gallery: + screen.blit(FOTOBOX_TITLE_SURFACE, FOTOBOX_TITLE_RECT) + screen.blit(self._idle_qr, self._idle_qr_rect) + screen.blit(self._idle_url, self._idle_url_rect) + else: + screen.blit(FOTOBOX_TITLE_SURFACE, FOTOBOX_TITLE_RECT_CENTER) elif self._state == State.COUNTDOWN: self._draw_live_frame() if self._countdown_timer.rest() == 3: diff --git a/config.py b/config.py index c88bfed..fd1c0d1 100644 --- a/config.py +++ b/config.py @@ -58,6 +58,7 @@ DOMAIN = "fotobox.online" FONT_TITLE = pygame.font.SysFont(None, 70) FOTOBOX_TITLE_SURFACE = FONT_TITLE.render("Berühren um Fotos zu schießen", True, (255, 255, 255)) FOTOBOX_TITLE_RECT = FOTOBOX_TITLE_SURFACE.get_rect(centerx=SCREEN_RECT.centerx, top=BORDER) +FOTOBOX_TITLE_RECT_CENTER = FOTOBOX_TITLE_SURFACE.get_rect(center=SCREEN_RECT.center) FONT_URL = pygame.font.SysFont(None, 60)