コード例 #1
0
 def __init__(self, emoteId):
     SCTerminal.__init__(self)
     self.emoteId = emoteId
     if not self.__ltHasAccess():
         self.text = '?'
     else:
         self.text = EmoteList[self.emoteId]
コード例 #2
0
 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])
コード例 #3
0
    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))
コード例 #4
0
 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])
コード例 #5
0
 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)
コード例 #6
0
 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)
コード例 #7
0
 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])
コード例 #8
0
 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)
コード例 #9
0
 def handleSelect(self):
     SCTerminal.handleSelect(self)
     messenger.send(self.getEventName(SCStaticTextMsgEvent), [self.textId])
コード例 #10
0
 def handleSelect(self, displayType=0):
     SCTerminal.handleSelect(self)
     messenger.send(self.getEventName(TTSCResistanceMsgEvent), [self.textId])
コード例 #11
0
 def handleSelect(self):
     SCTerminal.handleSelect(self)
     messenger.send(self.getEventName(TTSCSingingMsgEvent), [self.textId])
コード例 #12
0
 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])
コード例 #13
0
 def exitVisible(self):
     SCTerminal.exitVisible(self)
     self.ignore(Emote.globalEmote.EmoteEnableStateChanged)
コード例 #14
0
 def __init__(self, textId, charges):
     SCTerminal.__init__(self)
     self.setCharges(charges)
     self.textId = textId
     self.text = ResistanceChat.getItemText(self.textId)
コード例 #15
0
 def __init__(self, textId):
     SCTerminal.__init__(self)
     gmHandler = SpeedChatGMHandler.SpeedChatGMHandler()
     self.textId = textId
     self.text = gmHandler.getPhrase(textId)
コード例 #16
0
 def __init__(self, textId, charges):
     SCTerminal.__init__(self)
     self.setCharges(charges)
     self.textId = textId
     self.text = ResistanceChat.getItemText(self.textId)
コード例 #17
0
 def __init__(self, textId):
     SCTerminal.__init__(self)
     self.textId = textId
     self.text = SpeedChatStaticText[self.textId]
コード例 #18
0
 def __init__(self, textId):
     SCTerminal.__init__(self)
     self.textId = textId
     self.text = CustomSCStrings[self.textId]
コード例 #19
0
 def finalize(self):
     args = {'rolloverSound': None,
      'clickSound': None}
     SCTerminal.finalize(self, args)
     return
コード例 #20
0
 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)