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

18 lines
555 B
Python

from otp.speedchat.SCTerminal import *
from otp.otpbase.OTPLocalizer import SpeedChatStaticText
TTSCIndexedMsgEvent = 'SCIndexedMsg'
def decodeTTSCIndexedMsg(msgIndex):
return SpeedChatStaticText.get(msgIndex, None)
class TTSCIndexedTerminal(SCTerminal):
def __init__(self, msg, msgIndex):
SCTerminal.__init__(self)
self.text = msg
self.msgIndex = msgIndex
def handleSelect(self, displayType=0):
SCTerminal.handleSelect(self)
messenger.send(self.getEventName(TTSCIndexedMsgEvent), [self.msgIndex])