2019-12-30 00:00:16 -06:00
|
|
|
from .SCTerminal import SCTerminal
|
2019-11-02 17:27:54 -05:00
|
|
|
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):
|
|
|
|
SCTerminal.handleSelect(self)
|
|
|
|
messenger.send(self.getEventName(SCGMTextMsgEvent), [self.textId])
|