oldschool-toontown/otp/avatar/Emote.py

22 lines
478 B
Python
Raw Permalink Normal View History

2019-11-02 22:27:54 +00:00
from otp.otpbase import OTPLocalizer
class Emote:
EmoteClear = -1
EmoteEnableStateChanged = 'EmoteEnableStateChanged'
def __init__(self):
self.emoteFunc = None
return
def isEnabled(self, index):
2020-01-09 01:59:02 +00:00
if isinstance(index, str):
2019-11-02 22:27:54 +00:00
index = OTPLocalizer.EmoteFuncDict[index]
if self.emoteFunc == None:
return 0
elif self.emoteFunc[index][1] == 0:
return 1
return 0
globalEmote = None