Bastard merge
authorDavid Sharpe <decoydavid@gmail.com>
Sun, 11 May 2014 19:59:04 +0000 (21:59 +0200)
committerDavid Sharpe <decoydavid@gmail.com>
Sun, 11 May 2014 19:59:04 +0000 (21:59 +0200)
1  2 
naja/scenes/credits.py
naja/scenes/credits.py.orig

index 05e2f7d3ddf94fba577258a3a294617c47d4986e,747dd01c6bda99da6833fb0f459a45f5be6542fe..920684ca0fb09041eb8f26e34fd0cfdde72e2a28
@@@ -14,16 -15,11 +14,20 @@@ class CreditsScene(Scene)
  
      def __init__(self, state):
          super(CreditsScene, self).__init__(state)
-         self.widgets.append(TextWidget((120, 120), 'Credits', fontsize=32,
 -        self.add(TextWidget((60, 10), 'Credits', fontsize=32, colour='white'))
 -        self.add(TextWidget((60, 30), 'Your mom\nA stranger', fontsize=32,
 -                 colour='white'))
++        self.add(TextWidget((360, 160), 'Credits', fontsize=32,
 +                            colour='white'))
-         self.widgets.append(TextBoxWidget((120, 30),
++        self.add(TextBoxWidget((120, 30),
 +                                       'Your mom '
-                                        'A stranger \nA \nbag full of snakes', fontsize=32,
++                                       'A stranger \n'
++                                       'A \n'
++                                       'bag full of snakes\n'
++                                       'A host of really bored bronies\n'
++                                       'And FIVE GOLDEN RIIIIINGS!', fontsize=32,
 +                            colour='white', padding=1, border=1,
 +                            bg_colour='black', border_colour='black',
 +                            box_width=100))
  
-     def handle_event(self, ev):
+     def handle_scene_event(self, ev):
          if ev.type == pgl.KEYUP and ev.key in (pgl.K_q, pgl.K_ESCAPE):
              from naja.scenes.menu import MenuScene
              SceneChangeEvent.post(MenuScene)
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..116bcfd045065372676fd6c49b0c08a3ee658b71
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,36 @@@
++"""
++Main menu scene.
++"""
++
++import pygame.locals as pgl
++
++from naja.scenes.scene import Scene
++from naja.widgets.text import TextWidget, TextBoxWidget
++from naja.events import SceneChangeEvent
++
++class CreditsScene(Scene):
++
++    base_menu = None
++
++    def __init__(self, state):
++        super(CreditsScene, self).__init__(state)
++<<<<<<< HEAD
++        self.widgets.append(TextWidget((120, 120), 'Credits', fontsize=32,
++                            colour='white'))
++        self.widgets.append(TextBoxWidget((120, 30),
++                                       'Your mom '
++                                       'A stranger \nA \nbag full of snakes', fontsize=32,
++                            colour='white', padding=1, border=1,
++                            bg_colour='black', border_colour='black',
++                            box_width=100))
++=======
++        self.add(TextWidget((60, 10), 'Credits', fontsize=32, colour='white'))
++        self.add(TextWidget((60, 30), 'Your mom\nA stranger', fontsize=32,
++                 colour='white'))
++>>>>>>> 4e27b4e10d7fd4f66097ece17a8c51b80233a363
++
++    def handle_scene_event(self, ev):
++        if ev.type == pgl.KEYUP and ev.key in (pgl.K_q, pgl.K_ESCAPE):
++            from naja.scenes.menu import MenuScene
++            SceneChangeEvent.post(MenuScene)
++            return