mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-25 04:32:33 -06:00
20 lines
608 B
Python
Executable file
20 lines
608 B
Python
Executable file
from SCTerminal import SCTerminal
|
|
from otp.otpbase.OTPLocalizer import SpeedChatStaticText
|
|
SCStaticTextMsgEvent = 'SCStaticTextMsg'
|
|
|
|
def decodeSCStaticTextMsg(textId):
|
|
if 30200 <= textId <= 30205:
|
|
textId += 20
|
|
|
|
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])
|