From 10b9ce659d69c7a1dc0a5e782b13c2a61731bdbd Mon Sep 17 00:00:00 2001 From: Alan Aguiar Date: Mon, 19 Mar 2012 12:37:20 +0000 Subject: uses next_question in a1g3 init procedure --- diff --git a/src/states/Area1Game3.py b/src/states/Area1Game3.py index a0f3489..be4daa0 100755 --- a/src/states/Area1Game3.py +++ b/src/states/Area1Game3.py @@ -52,9 +52,7 @@ class CArea1Game3(CGameState): # randomize it random.shuffle(self.mboy_list) random.shuffle(self.mgirl_list) - - self.mActualQuestionN = self.mboy_list.pop() - + self.mButtonBack = CButton() self.mButtonBack.set_bgColor((0x99, 0x99, 0x66)) self.mButtonBack.font = pygame.font.Font('assets/fonts/fipps.ttf', 20) @@ -71,16 +69,17 @@ class CArea1Game3(CGameState): self.mLabelTitle.set_text(_('Cuando un niƱo se desarrolla pasan las siguientes cosas:')) CGame().addChild(self.mLabelTitle) - self.mTupleQuestion = area1game3_data.BOY[self.mActualQuestionN] - self.mLabelQuestion = CLabel() self.mLabelQuestion.set_bgColor((0x99, 0x50, 0x99)) self.mLabelQuestion.font = pygame.font.Font('assets/fonts/fipps.ttf', 13) self.mLabelQuestion.set_center((600, 200)) self.mLabelQuestion.set_size((800, 40)) - self.mLabelQuestion.set_text(self.mTupleQuestion[0]) + self.mLabelQuestion.set_text('') CGame().addChild(self.mLabelQuestion) + # prepare a initial question + self.next_question() + self.mButtonTrue = CButton() self.mButtonTrue.set_bgColor((0x99, 0x99, 0x66)) self.mButtonTrue.font = pygame.font.Font('assets/fonts/fipps.ttf', 20) @@ -107,6 +106,7 @@ class CArea1Game3(CGameState): #cs = CHelpState() ms = MenuState.CMenuState() CGame().setState(ms) + elif self.mButtonTrue.clicked(): print 'button true' #self.mActualQuestionN -- cgit v0.9.1