Mercurial > sypikslang
changeset 127:591a85a4edac
Use 'done' rather than exit in equipment selection screen
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Thu, 10 May 2012 13:16:25 +0200 |
parents | 0f205b1384db |
children | 6a847f22a312 |
files | gamelib/gamegui.py |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/gamelib/gamegui.py Thu May 10 13:13:57 2012 +0200 +++ b/gamelib/gamegui.py Thu May 10 13:16:25 2012 +0200 @@ -64,6 +64,11 @@ super(NextTurnButton, self).__init__(((WIDTH - 128), 10), 'Next Turn') +class DoneButton(PopWindowButton): + def __init__(self): + super(DoneButton, self).__init__(((WIDTH - 128), 10), 'Done') + + class ResetButton(BigButton): def __init__(self, parent): @@ -248,8 +253,8 @@ def __init__(self, screen, mission, game, parent): super(EquipWindow, self).__init__(screen) - exitbut = ExitGameButton() - self.add_child(exitbut) + donebut = DoneButton() + self.add_child(donebut) reset = ResetButton(self) self.add_child(reset) title = TextLabel((200, 20, 400, 50), "Choose equipment for %s"