changeset 122:acf3af761bbc

Rename 'Exit' button on results view to 'Next Turn' for clarity.
author Simon Cross <hodgestar@gmail.com>
date Thu, 10 May 2012 00:52:38 +0200
parents 42ac27686d59
children 7cd716328a44
files gamelib/gamegui.py
diffstat 1 files changed, 15 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/gamelib/gamegui.py	Thu May 10 00:27:04 2012 +0200
+++ b/gamelib/gamegui.py	Thu May 10 00:52:38 2012 +0200
@@ -34,15 +34,20 @@
     return 'Major Threat to World Peace'
 
 
-class ExitGameButton(BigButton):
+class PopWindowButton(BigButton):
 
-    def __init__(self):
-        super(ExitGameButton, self).__init__(((WIDTH - 128), 10), 'Exit')
+    def __init__(self, text):
+        super(PopWindowButton, self).__init__(((WIDTH - 128), 10), text)
 
     def on_click(self):
         PopWindow.post()
 
 
+class ExitGameButton(PopWindowButton):
+    def __init__(self):
+        super(ExitGameButton, self).__init__('Exit')
+
+
 class EndTurnButton(BigButton):
 
     def __init__(self, parent):
@@ -53,6 +58,11 @@
         self.parent.end_turn()
 
 
+class NextTurnButton(PopWindowButton):
+    def __init__(self):
+        super(NextTurnButton, self).__init__('Next Turn')
+
+
 class ResetButton(BigButton):
 
     def __init__(self, parent):
@@ -271,8 +281,8 @@
 
     def __init__(self, screen, messages, turn):
         super(ResultsWindow, self).__init__(screen)
-        exitbut = ExitGameButton()
-        self.add_child(exitbut)
+        nextbut = NextTurnButton()
+        self.add_child(nextbut)
         title = TextLabel((200, 20, 400, 50), "Results for turn %d" % turn,
                 font_medium, (255, 255, 255))
         self.add_child(title)