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

15 lines
510 B
Python

from SCTerminal import SCTerminal
from otp.speedchat import SpeedChatGMHandler
SCGMTextMsgEvent = 'SCGMTextMsg'
class SCGMTextTerminal(SCTerminal):
def __init__(self, textId):
SCTerminal.__init__(self)
gmHandler = SpeedChatGMHandler.SpeedChatGMHandler()
self.textId = textId
self.text = gmHandler.getPhrase(textId)
def handleSelect(self, displayType=0):
SCTerminal.handleSelect(self)
messenger.send(self.getEventName(SCGMTextMsgEvent), [self.textId])