mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-25 20:52:26 -06:00
24 lines
579 B
Python
24 lines
579 B
Python
|
from SCMenu import SCMenu
|
||
|
from SCEmoteTerminal import SCEmoteTerminal
|
||
|
|
||
|
class SCEmoteMenu(SCMenu):
|
||
|
|
||
|
def __init__(self):
|
||
|
SCMenu.__init__(self)
|
||
|
self.accept('emotesChanged', self.__emoteAccessChanged)
|
||
|
self.__emoteAccessChanged()
|
||
|
|
||
|
def destroy(self):
|
||
|
SCMenu.destroy(self)
|
||
|
|
||
|
def __emoteAccessChanged(self):
|
||
|
self.clearMenu()
|
||
|
try:
|
||
|
lt = base.localAvatar
|
||
|
except:
|
||
|
return
|
||
|
|
||
|
for i in xrange(len(lt.emoteAccess)):
|
||
|
if lt.emoteAccess[i]:
|
||
|
self.append(SCEmoteTerminal(i))
|