Mercurial > sypikslang
comparison gamelib/gamegui.py @ 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 |
comparison
equal
deleted
inserted
replaced
126:0f205b1384db | 127:591a85a4edac |
---|---|
60 | 60 |
61 | 61 |
62 class NextTurnButton(PopWindowButton): | 62 class NextTurnButton(PopWindowButton): |
63 def __init__(self): | 63 def __init__(self): |
64 super(NextTurnButton, self).__init__(((WIDTH - 128), 10), 'Next Turn') | 64 super(NextTurnButton, self).__init__(((WIDTH - 128), 10), 'Next Turn') |
65 | |
66 | |
67 class DoneButton(PopWindowButton): | |
68 def __init__(self): | |
69 super(DoneButton, self).__init__(((WIDTH - 128), 10), 'Done') | |
65 | 70 |
66 | 71 |
67 class ResetButton(BigButton): | 72 class ResetButton(BigButton): |
68 | 73 |
69 def __init__(self, parent): | 74 def __init__(self, parent): |
246 | 251 |
247 class EquipWindow(Window): | 252 class EquipWindow(Window): |
248 | 253 |
249 def __init__(self, screen, mission, game, parent): | 254 def __init__(self, screen, mission, game, parent): |
250 super(EquipWindow, self).__init__(screen) | 255 super(EquipWindow, self).__init__(screen) |
251 exitbut = ExitGameButton() | 256 donebut = DoneButton() |
252 self.add_child(exitbut) | 257 self.add_child(donebut) |
253 reset = ResetButton(self) | 258 reset = ResetButton(self) |
254 self.add_child(reset) | 259 self.add_child(reset) |
255 title = TextLabel((200, 20, 400, 50), "Choose equipment for %s" | 260 title = TextLabel((200, 20, 400, 50), "Choose equipment for %s" |
256 % mission.NAME, font_medium, (255, 255, 255)) | 261 % mission.NAME, font_medium, (255, 255, 255)) |
257 self.add_child(title) | 262 self.add_child(title) |