def __init__(self, name, targetMapName, position, fontPath, fontSize, text, fontColor, fontBGColor, menu=None, neighbors=None):
     '''
     Constructor
     '''
     PlatformerMenuButton.__init__(self, name, None, position, fontPath, fontSize, text, fontColor, fontBGColor, menu, neighbors)
     
     self._switchToMap = False
     
     self._targetMapName = targetMapName
     self._switchDelay = 1
Пример #2
0
 def __init__(self, name, position, fontPath, fontSize, text, fontColor, fontBGColor, menu=None, neighbors=None):
     '''
     Constructor
     '''
     PlatformerMenuButton.__init__(self, name, None, position, fontPath, fontSize, text, fontColor, fontBGColor, menu, neighbors)