Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/game/Area1Game1.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Area1Game1.py')
-rw-r--r--src/game/Area1Game1.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/game/Area1Game1.py b/src/game/Area1Game1.py
index 496983c..9578e97 100644
--- a/src/game/Area1Game1.py
+++ b/src/game/Area1Game1.py
@@ -153,7 +153,7 @@ class CArea1Game1(CGameState):
self.mActivePiece = None
self.mBad = 0
self.mGood = 0
- self.mDialog = None
+ self.mEndDialog = None
self.mBBsetted = False
self.mNBsetted = True
self.mBHsetted = False
@@ -330,10 +330,11 @@ class CArea1Game1(CGameState):
self.mAlphaSet = True
CGame().addChild(self.mAlpha)
msg = _('Has terminado con %s respuestas bien') % self.mGood
- self.mDialog = Globe((450, 100), text=unicode(msg, 'UTF-8'), pico=None)
- self.mDialog.set_center((600, 300))
- CGame().addChild(self.mDialog)
+ self.mEndDialog = Globe((450, 100), text=unicode(msg, 'UTF-8'), pico=None)
+ self.mEndDialog.set_center((600, 300))
+ CGame().addChild(self.mEndDialog)
CGame().addChild(self.mButtonAccept)
+
else:
if self.mButtonAccept.mouseOver():
self.mButtonAccept.set_bgColor(OVER_COLOR)
@@ -363,6 +364,9 @@ class CArea1Game1(CGameState):
CGame().removeChild(self.mBox)
CGame().removeChild(self.mElisa)
CGame().removeChild(self.mJuan)
+ CGame().removeChild(self.mAlpha)
+ CGame().removeChild(self.mEndDialog)
+ CGame().removeChild(self.mButtonAccept)
self.mPoints = None
for p in self.mListPieces:
@@ -374,6 +378,4 @@ class CArea1Game1(CGameState):
self.mButtonHelp = None
self.mBackground = None
- CGame().removeChild(self.mAlpha)
- CGame().removeChild(self.mDialog)
- CGame().removeChild(self.mButtonAccept)
+