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()
def whisper(self, sender, message, name): whisper = WhisperPopup(name + ': ' + message, CIGlobals.getToonFont(), ChatGlobals.WTNormal) whisper.setClickable(name, sender, isPlayer = 1) whisper.manage(base.marginManager)