From: Jeremy Thurgood Date: Fri, 16 May 2014 20:34:16 +0000 (+0200) Subject: Innocent until proven guilty. Oops. X-Git-Tag: 0.1~184 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=b8860a38f171cfd84faffa71ee35ebd6ae390b1b;p=naja.git Innocent until proven guilty. Oops. --- diff --git a/naja/scenes/win.py b/naja/scenes/win.py index f4df54f..f14034a 100644 --- a/naja/scenes/win.py +++ b/naja/scenes/win.py @@ -5,9 +5,10 @@ Win scene. import pygame.locals as pgl from naja.constants import KEYS, PALETTE +from naja.events import QuitGameEvent +from naja.options import options from naja.scenes.scene import Scene from naja.widgets.text import TextWidget, TextBoxWidget -from naja.events import QuitGameEvent class WinScene(Scene): @@ -18,7 +19,9 @@ class WinScene(Scene): def __init__(self, state): super(WinScene, self).__init__(state) self.add(TextWidget((50, 50), 'You won!', colour=PALETTE.WHITE)) - self.add(TextWidget((50 + 64, 50), 'CHEATER!', colour=PALETTE.ORANGE)) + if options.cheat_enabled: + self.add(TextWidget( + (50 + 64, 50), 'CHEATER!', colour=PALETTE.ORANGE)) self.add(TextBoxWidget( (50, 100), '\n'.join([ "You're great.",