mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-11-01 01:07:54 +00:00
15 lines
495 B
Python
15 lines
495 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):
|
|
SCTerminal.handleSelect(self)
|
|
messenger.send(self.getEventName(SCGMTextMsgEvent), [self.textId])
|