historical/toontown-just-works.git/toontown/speedchat/TTSCResistanceTerminal.py

23 lines
659 B
Python
Raw Normal View History

2024-01-16 11:20:27 -06:00
from otp.speedchat.SCTerminal import SCTerminal
from toontown.chat import ResistanceChat
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)
messenger.send(self.getEventName(TTSCResistanceMsgEvent), [self.textId])