Mercurial > fife-parpg
comparison demos/shooter/scripts/gui/guis.py @ 471:7a79dc2a0592
Adding the credits window (still needs to be written)
Hopefully fixed some memory leaks.
Moved the flashing code to the appropriate spot (in ShipBase).
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Thu, 15 Apr 2010 15:53:06 +0000 |
parents | 5994e61cdebd |
children | ab28994820dd |
comparison
equal
deleted
inserted
replaced
470:3b04e921c93d | 471:7a79dc2a0592 |
---|---|
358 self.saveHighScores() | 358 self.saveHighScores() |
359 self._widget.hide() | 359 self._widget.hide() |
360 | 360 |
361 def isVisible(self): | 361 def isVisible(self): |
362 return self._widget.isVisible() | 362 return self._widget.isVisible() |
363 | |
364 class CreditsDisplay(object): | |
365 def __init__(self, world): | |
366 self._world = world | |
367 self._widget = pychan.loadXML('gui/credits.xml') | |
368 | |
369 eventMap = { | |
370 'close': self.hide, | |
371 } | |
372 | |
373 self._widget.mapEvents(eventMap) | |
374 | |
375 def show(self): | |
376 self._widget.show() | |
377 | |
378 def hide(self): | |
379 self._widget.hide() |