mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-24 04:02:40 -06:00
19 lines
554 B
Python
19 lines
554 B
Python
|
from SCTerminal import SCTerminal
|
||
|
from otp.otpbase.OTPLocalizer import SpeedChatStaticText
|
||
|
SCStaticTextMsgEvent = 'SCStaticTextMsg'
|
||
|
|
||
|
def decodeSCStaticTextMsg(textId):
|
||
|
return SpeedChatStaticText.get(textId, None)
|
||
|
|
||
|
|
||
|
class SCStaticTextTerminal(SCTerminal):
|
||
|
|
||
|
def __init__(self, textId):
|
||
|
SCTerminal.__init__(self)
|
||
|
self.textId = textId
|
||
|
self.text = SpeedChatStaticText[self.textId]
|
||
|
|
||
|
def handleSelect(self):
|
||
|
SCTerminal.handleSelect(self)
|
||
|
messenger.send(self.getEventName(SCStaticTextMsgEvent), [self.textId])
|