mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-24 20:22:33 -06:00
22 lines
No EOL
658 B
Python
Executable file
22 lines
No EOL
658 B
Python
Executable file
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]) |