def friendLeftYourList(self, avatarId):
     whisper = WhisperPopup(
         self.LeftListMessage % self.getAvatarName(avatarId),
         CIGlobals.getToonFont(), ChatGlobals.WTSystem)
     whisper.manage(base.marginManager)
     base.localAvatar.panel.maybeUpdateFriendButton()
     self.d_requestFriendsList()
Esempio n. 2
0
 def toonOffline(self, avatarId, name):
     print "toon offline"
     if avatarId in base.localAvatar.friends:
         print "they are in my friends list"
         whisper = WhisperPopup(self.GoingOfflineMessage % name, CIGlobals.getToonFont(), ChatGlobals.WTSystem)
         whisper.manage(base.marginManager)
         self.d_requestFriendsList()
 def toonOnline(self, avatarId, name):
     if avatarId in base.localAvatar.friends:
         whisper = WhisperPopup(self.ComingOnlineMessage % name,
                                CIGlobals.getToonFont(),
                                ChatGlobals.WTSystem)
         whisper.setClickable(name, avatarId, isPlayer=1)
         whisper.manage(base.marginManager)
         self.d_requestFriendsList()
Esempio n. 4
0
 def enterAvChoose(self):
     if base.cr.holidayManager.getHoliday() == HolidayType.CHRISTMAS:
         base.cr.music.stop()
         base.cr.music = base.loadMusic(CIGlobals.getHolidayTheme())
         base.cr.music.setLoop(True)
         base.cr.music.setVolume(0.75)
         base.cr.music.play()
         whisper = WhisperPopup(HolidayGlobals.CHRISTMAS_TIME,
                                CIGlobals.getToonFont(),
                                ChatGlobals.WTSystem)
         whisper.manage(base.marginManager)
     self.pickAToon = CharSelection(self)
     self.pickAToon.load()
 def systemMessage(self, message):
     whisper = WhisperPopup('ADMIN: ' + message, CIGlobals.getToonFont(),
                            ChatGlobals.WTSystem)
     whisper.manage(base.marginManager)
 def acceptedIntoTeam(self):
     message = MSG_WELCOME.format(self.teamNameById[self.team])
     whisper = WhisperPopup(message, CIGlobals.getToonFont(),
                            ChatGlobals.WTSystem)
     whisper.manage(base.marginManager)
Esempio n. 7
0
 def teleportNotify(self, name):
     whisper = WhisperPopup(self.TeleportNotify % name, CIGlobals.getToonFont(), ChatGlobals.WTSystem)
     whisper.manage(base.marginManager)
Esempio n. 8
0
 def whisper(self, sender, message, name):
     whisper = WhisperPopup(name + ': ' + message, CIGlobals.getToonFont(), ChatGlobals.WTNormal)
     whisper.setClickable(name, sender, isPlayer = 1)
     whisper.manage(base.marginManager)
Esempio n. 9
0
 def createWhisper(self, msg):
     whisper = WhisperPopup('Toon HQ: ' + msg, CIGlobals.getToonFont(),
                            ChatGlobals.WTSystem)
     whisper.manage(base.marginManager)
 def makeWhisper(self, msg):
     whisper = WhisperPopup(msg, CIGlobals.getToonFont(),
                            ChatGlobals.WTSystem)
     whisper.manage(base.marginManager)