From b8860a38f171cfd84faffa71ee35ebd6ae390b1b Mon Sep 17 00:00:00 2001 From: Jeremy Thurgood Date: Fri, 16 May 2014 22:34:16 +0200 Subject: [PATCH] Innocent until proven guilty. Oops. --- naja/scenes/win.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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.", -- 2.34.1