historical/toontown-classic.git/otp/speedchat/SCCustomTerminal.py
2024-01-16 11:20:27 -06:00

18 lines
537 B
Python

from SCTerminal import SCTerminal
from otp.otpbase.OTPLocalizer import CustomSCStrings
SCCustomMsgEvent = 'SCCustomMsg'
def decodeSCCustomMsg(textId):
return CustomSCStrings.get(textId, None)
class SCCustomTerminal(SCTerminal):
def __init__(self, textId):
SCTerminal.__init__(self)
self.textId = textId
self.text = CustomSCStrings[self.textId]
def handleSelect(self, displayType=0):
SCTerminal.handleSelect(self)
messenger.send(self.getEventName(SCCustomMsgEvent), [self.textId])