# HG changeset patch # User Simon Cross # Date 1336603958 -7200 # Node ID acf3af761bbc8853723e4463173a8f6d7b05b3ea # Parent 42ac27686d59b39730caf980bc827f35563f623c Rename 'Exit' button on results view to 'Next Turn' for clarity. diff -r 42ac27686d59 -r acf3af761bbc gamelib/gamegui.py --- 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)