diff options
author | Alan Aguiar <alanjas@hotmail.com> | 2012-06-09 23:26:47 (GMT) |
---|---|---|
committer | Alan Aguiar <alanjas@hotmail.com> | 2012-06-09 23:26:47 (GMT) |
commit | 73f29cf533be61f8413a1b5b82585a453f6b5c62 (patch) | |
tree | 8f09083124f2606270862d03f7bd34b84f3f21ef /src | |
parent | 3007ecd5c7a51410b3299d21cd6ecf292684750d (diff) |
make changes in a1g3 for new cmultilabel
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Area1Game3.py | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/game/Area1Game3.py b/src/game/Area1Game3.py index 1faf355..8e1f9dd 100644 --- a/src/game/Area1Game3.py +++ b/src/game/Area1Game3.py @@ -77,8 +77,8 @@ class CArea1Game3(CGameState): self.mLabelQuestion = CMultiLabel() #self.mLabelQuestion.set_bgColor((0x99, 0x50, 0x99)) #self.mLabelQuestion.font = pygame.font.Font('assets/fonts/DejaVuSans.ttf', 13) - self.mLabelQuestion.setXY(200, 50) - self.mLabelQuestion.setSize(600, 150) + self.mLabelQuestion.set_center((600, 150)) + self.mLabelQuestion.set_size((600, 150)) self.mButtonTrue = CButton() @@ -109,32 +109,32 @@ class CArea1Game3(CGameState): # sabes que le pasa self.mDialogBoy1 = CMultiLabel() - self.mDialogBoy1.setXY(300, 200) - self.mDialogBoy1.setSize(300, 200) - self.mDialogBoy1.setText(self.mDialog[0]) + self.mDialogBoy1.set_center((300, 200)) + self.mDialogBoy1.set_size((300, 200)) + self.mDialogBoy1.set_text(self.mDialog[0]) CGame().addChild(self.mDialogBoy1) # si self.mDialogGirl1 = CMultiLabel() - self.mDialogGirl1.setXY(800, 200) - self.mDialogGirl1.setSize(200, 50) - self.mDialogGirl1.setText(self.mDialog[1]) + self.mDialogGirl1.set_center((800, 200)) + self.mDialogGirl1.set_size((200, 50)) + self.mDialogGirl1.set_text(self.mDialog[1]) # a ver.. self.mDialogBoy2 = CMultiLabel() - self.mDialogBoy2.setXY(300, 200) - self.mDialogBoy2.setSize(200, 50) - self.mDialogBoy2.setText(self.mDialog[2]) + self.mDialogBoy2.set_center((300, 200)) + self.mDialogBoy2.set_size((200, 50)) + self.mDialogBoy2.set_text(self.mDialog[2]) self.mDialogGood = CMultiLabel() - self.mDialogGood.setXY(300, 200) - self.mDialogGood.setSize(200, 50) - self.mDialogGood.setText(self.mGoodA) + self.mDialogGood.set_center((300, 200)) + self.mDialogGood.set_size((200, 50)) + self.mDialogGood.set_text(self.mGoodA) self.mDialogBad = CMultiLabel() - self.mDialogBad.setXY(400, 200) - self.mDialogBad.setSize(200, 50) - self.mDialogBad.setText(self.mBadA) + self.mDialogBad.set_center((400, 200)) + self.mDialogBad.set_size((200, 50)) + self.mDialogBad.set_text(self.mBadA) #self.mTime = self.mDialogBoy1.getTimeState() @@ -228,7 +228,7 @@ class CArea1Game3(CGameState): self.mActualQuestionN = self.mboy_list.pop() self.mTupleQuestion = area1game3_data.BOY[self.mActualQuestionN] text = self.mInitB + '\n' + self.mTupleQuestion[0] - self.mLabelQuestion.setText(text) + self.mLabelQuestion.set_text(text) return True else: return False |