def __init__(self, emoteId): SCTerminal.__init__(self) self.emoteId = emoteId if not self.__ltHasAccess(): self.text = '?' else: self.text = EmoteList[self.emoteId]
def handleSelect(self): SCTerminal.handleSelect(self) if not self.parentClass.whisperAvatarId: base.localAvatar.chatMgr.fsm.request('whiteListOpenChat') else: base.localAvatar.chatMgr.fsm.request( 'whiteListAvatarChat', [self.parentClass.whisperAvatarId])
def __init__(self, textId, parentMenu=None): SCTerminal.__init__(self) self.parentClass = parentMenu self.textId = textId self.text = SpeedChatStaticText[self.textId] print("SpeedText %s %s" % (self.textId, self.text))
def handleSelect(self): SCTerminal.handleSelect(self) if not self.parentClass.whisperAvatarId: base.localAvatar.chatMgr.fsm.request('whiteListOpenChat') elif self.parentClass.toPlayer: base.localAvatar.chatMgr.fsm.request('whiteListPlayerChat', [self.parentClass.whisperAvatarId]) else: base.localAvatar.chatMgr.fsm.request('whiteListAvatarChat', [self.parentClass.whisperAvatarId])
def enterVisible(self): SCTerminal.enterVisible(self) if self.__ltHasAccess(): if hasattr(self, 'lastEmoteEnableState'): if self.lastEmoteEnableState != self.__emoteEnabled(): self.invalidate() if not self.isWhispering(): self.accept(Emote.globalEmote.EmoteEnableStateChanged, self.__emoteEnableStateChanged)
def finalize(self): """ Making sure that these buttons don't have any rollover or click sound, since affects the music making skills. :) """ args = { 'rolloverSound': None, 'clickSound': None, } SCTerminal.finalize(self, args)
def handleSelect(self): SCTerminal.handleSelect(self) #messenger.send(self.getEventName(SCStaticTextMsgEvent), [self.textId]) #print ("Message Sent %s %s" % (self.getEventName(SCStaticTextMsgEvent), [self.textId])) #base.whiteList.activate() if not self.parentClass.whisperAvatarId: base.localAvatar.chatMgr.fsm.request("whiteListOpenChat") elif self.parentClass.toPlayer: base.localAvatar.chatMgr.fsm.request( "whiteListPlayerChat", [self.parentClass.whisperAvatarId]) else: base.localAvatar.chatMgr.fsm.request( "whiteListAvatarChat", [self.parentClass.whisperAvatarId])
def finalize(self, dbArgs = {}): if not self.isDirty(): return args = {} if not self.__ltHasAccess() or not self.__emoteEnabled(): args.update({'rolloverColor': (0, 0, 0, 0), 'pressedColor': (0, 0, 0, 0), 'rolloverSound': None, 'text_fg': self.getColorScheme().getTextDisabledColor() + (1,)}) if not self.__ltHasAccess(): args.update({'text_align': TextNode.ACenter}) elif not self.__emoteEnabled(): args.update({'clickSound': None}) self.lastEmoteEnableState = self.__emoteEnabled() args.update(dbArgs) SCTerminal.finalize(self, dbArgs=args)
def handleSelect(self): SCTerminal.handleSelect(self) messenger.send(self.getEventName(SCStaticTextMsgEvent), [self.textId])
def handleSelect(self, displayType=0): SCTerminal.handleSelect(self) messenger.send(self.getEventName(TTSCResistanceMsgEvent), [self.textId])
def handleSelect(self): SCTerminal.handleSelect(self) messenger.send(self.getEventName(TTSCSingingMsgEvent), [self.textId])
def handleSelect(self): if not self.__ltHasAccess(): messenger.send(self.getEventName(SCEmoteNoAccessEvent)) elif self.__emoteEnabled(): SCTerminal.handleSelect(self) messenger.send(self.getEventName(SCEmoteMsgEvent), [self.emoteId])
def exitVisible(self): SCTerminal.exitVisible(self) self.ignore(Emote.globalEmote.EmoteEnableStateChanged)
def __init__(self, textId, charges): SCTerminal.__init__(self) self.setCharges(charges) self.textId = textId self.text = ResistanceChat.getItemText(self.textId)
def __init__(self, textId): SCTerminal.__init__(self) gmHandler = SpeedChatGMHandler.SpeedChatGMHandler() self.textId = textId self.text = gmHandler.getPhrase(textId)
def __init__(self, textId): SCTerminal.__init__(self) self.textId = textId self.text = SpeedChatStaticText[self.textId]
def __init__(self, textId): SCTerminal.__init__(self) self.textId = textId self.text = CustomSCStrings[self.textId]
def finalize(self): args = {'rolloverSound': None, 'clickSound': None} SCTerminal.finalize(self, args) return
def __init__(self, textId, parentMenu = None): SCTerminal.__init__(self) self.parentClass = parentMenu self.textId = textId self.text = SpeedChatStaticText[self.textId] print 'SpeedText %s %s' % (self.textId, self.text)