historical/toontown-classic.git/otp/avatar/Emote.py

26 lines
570 B
Python
Raw Normal View History

2024-01-16 11:20:27 -06:00
from otp.otpbase import OTPLocalizer
import types
class Emote:
EmoteClear = -1
EmoteEnableStateChanged = 'EmoteEnableStateChanged'
def __init__(self):
self.emoteFunc = None
return
def isEnabled(self, index):
if isinstance(index, types.StringType):
index = OTPLocalizer.EmoteFuncDict[index]
try:
if self.emoteFunc == None:
return 0
elif self.emoteFunc[index][1] == 0:
return 1
except:
return 0
return 0
globalEmote = None