2015-03-03 16:10:12 -06:00
|
|
|
from otp.speedchat.SCTerminal import SCTerminal
|
|
|
|
from toontown.chat import ResistanceChat
|
2015-05-26 09:29:07 -05:00
|
|
|
|
2015-03-03 16:10:12 -06:00
|
|
|
TTSCResistanceMsgEvent = 'TTSCResistanceMsg'
|
|
|
|
|
|
|
|
def decodeTTSCResistanceMsg(textId):
|
|
|
|
return ResistanceChat.getChatText(textId)
|
|
|
|
|
|
|
|
class TTSCResistanceTerminal(SCTerminal):
|
|
|
|
|
|
|
|
def __init__(self, textId, charges):
|
|
|
|
SCTerminal.__init__(self)
|
|
|
|
self.setCharges(charges)
|
|
|
|
self.textId = textId
|
|
|
|
self.text = ResistanceChat.getItemText(self.textId)
|
|
|
|
|
|
|
|
def isWhisperable(self):
|
|
|
|
return False
|
|
|
|
|
|
|
|
def handleSelect(self):
|
|
|
|
SCTerminal.handleSelect(self)
|
2015-07-05 18:59:25 -05:00
|
|
|
messenger.send(self.getEventName(TTSCResistanceMsgEvent), [self.textId])
|