Override dh_python2's idea of supported python versions, for wider installability
[naja.git] / naja / scenes / win.py
index f14034a822ba5279aee6e0284f07ad9829af423c..95d931a0b761227ccdb8822da5a090269658ef37 100644 (file)
@@ -6,8 +6,8 @@ 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.image_box import ImageBox
 from naja.widgets.text import TextWidget, TextBoxWidget
 
 
@@ -18,12 +18,17 @@ class WinScene(Scene):
 
     def __init__(self, state):
         super(WinScene, self).__init__(state)
+
+        background = ImageBox(
+            (0, 0), "screens/you_won.png")
+        self.add(background)
+
         self.add(TextWidget((50, 50), 'You won!', colour=PALETTE.WHITE))
-        if options.cheat_enabled:
+        if self.state.gameboard.has_cheated:
             self.add(TextWidget(
                 (50 + 64, 50), 'CHEATER!', colour=PALETTE.ORANGE))
         self.add(TextBoxWidget(
-            (50, 100), '\n'.join([
+            (50, 100), '\n\n'.join([
                 "You're great.",
                 "You did well.",
                 "You should be proud of yourself.",