def buildMessageBox(self):
     """ Builds a Message Box """
     battleMessage = BattleMessage("{0}'s first Pkmn is {1}".format(
         self.entries[self.selectedIndex].entry.trainer.name, self.entries[
             self.selectedIndex].entry.trainer.beltPokemon[0].name))
     self.messageBox = MessageBox(battleMessage)
 def __init__(self, battle, width, height):
     """ Initialize the Battle Message Box """
     SizedWidget.__init__(self, width, height)
     self.messageBox = MessageBox("")
     self.battle = battle
Exemple #3
0
 def __init__(self, message, lastScreen):
     """ Initialize the Message Box Screen """
     PygameScreen.__init__(self)
     self.messageBox = MessageBox(self.width * .9, self.height * .3,
                                  message)
     self.lastScreen = lastScreen
 def update(self):
     """ Update the screen """
     if not self.battle.noEvents(
     ) and not self.battle.eventQueue[0] == self.messageBox.message:
         self.messageBox = MessageBox(self.battle.eventQueue[0])
     self.messageBox.update()