oldschool-toontown/toontown/speedchat/TTSCIndexedTerminal.py

19 lines
540 B
Python
Raw Normal View History

2019-11-02 17:27:54 -05:00
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):
SCTerminal.handleSelect(self)
messenger.send(self.getEventName(TTSCIndexedMsgEvent), [self.msgIndex])