Verified Commit 78bc9ca3 authored by Jakob Moser's avatar Jakob Moser
Browse files

Show more general action failure message

parent bdc4f2ca
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -9,12 +9,13 @@ from poolpay.ui.scenes.PaymentFailure import PaymentFailure as PaymentFailureBas

@dataclass(frozen=True)
class PaymentFailure(PaymentFailureBase):
    # TODO Refactor this class to just be called "CardFailure (or sth.)", because I want to display it in all failure cases
    def present(self) -> None:
        display = cast(PygameDisplay, self.director.display)

        display.surface.fill((120, 0, 0))
        display.surface.blit(
            fira_sans_large.render("Zahlung fehlgeschlagen", True, white),
            fira_sans_large.render("Aktion fehlgeschlagen", True, white),
            (90, 110),
        )
        display.surface.blit(