Exemple #1
0
    def __customMessagesChanged(self):
        self.clearMenu()
        try:
            lt = base.localAvatar
        except:
            return

        for msgIndex in lt.customMessages:
            if CustomSCStrings.has_key(msgIndex):
                self.append(SCCustomTerminal(msgIndex))
    def __customMessagesChanged(self):
        self.clearMenu()
        try:
            lt = base.localAvatar
        except:
            return

        for msgIndex in lt.customMessages:
            if CustomSCStrings.has_key(msgIndex):
                self.append(SCCustomTerminal(msgIndex))
Exemple #3
0
    def __customMessagesChanged(self):
        # clear out everything from our menu
        self.clearMenu()

        # if local toon has not been created, don't panic
        try:
            lt = base.localAvatar
        except:
            return

        for msgIndex in lt.customMessages:
            if CustomSCStrings.has_key(msgIndex):
                self.append(SCCustomTerminal(msgIndex))
def decodeSCCustomMsg(textId):
    return CustomSCStrings.get(textId, None)
def decodeSCCustomMsg(textId):
    return CustomSCStrings.get(textId, None)
Exemple #6
0
from otp.otpbase.OTPLocalizer import SpeedChatStaticText, SpeedChatStaticTextToontown, SpeedChatStaticTextPirates, CustomSCStrings

# this script prints all static speedchat strings

msgs = set()

msgs.update(list(SpeedChatStaticText.values()))
msgs.update(list(SpeedChatStaticTextToontown.values()))
msgs.update(list(SpeedChatStaticTextPirates.values()))
msgs.update(list(CustomSCStrings.values()))

print('=== START SC STRINGS ===')

for msg in msgs:
    if len(msg):
        print(msg)