2019-11-02 17:27:54 -05: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):
|
2019-12-30 00:00:16 -06:00
|
|
|
if isinstance(index, bytes):
|
2019-11-02 17:27:54 -05:00
|
|
|
index = OTPLocalizer.EmoteFuncDict[index]
|
|
|
|
if self.emoteFunc == None:
|
|
|
|
return 0
|
|
|
|
elif self.emoteFunc[index][1] == 0:
|
|
|
|
return 1
|
|
|
|
return 0
|
|
|
|
|
|
|
|
|
|
|
|
globalEmote = None
|