Ejemplo n.º 1
0
 def __init__(self, rect = None, bgfile = None, bgdatfile = None, bgencryption = 0, hidealpha = 50, showalpha = 150, mouseoveralpha = 255, visible = 0, enabled = 0):
     #Init base object
     userarea.__init__(self, rect, enabled, visible)
     #File info
     self._bgfile = bgfile
     self._bgdatfile = bgdatfile
     self._bgencryption = bgencryption
     #Alpha settings
     self._hidealpha = hidealpha
     self._showalpha = showalpha
     self._mouseoveralpha = mouseoveralpha
     #List of objects in inventory
     self._itemlist = []
     #List of images for objects in inventory
     self._itemimages = []
     #Currently highlighted item:
     self._currentitem = None
     #Background surface
     self._bgfilesurface = None
     #Current alpha state
     self._state = 0
     #Surface for back scroll arrow
     self._backsurface = None
     #Rect for back scroll arrow
     self._backrect = None
     #Surface for fwd scroll arrow
     self._fwdsurface = None
     #Rect for fwd scroll arrow
     self._fwdrect = None
     #First item in list currently displayed on screen
     self._startitem = None
     #Last item in list displayed on screen (it may be obscured by fwd arrow)
     self._enditem = None
     #Default settings for "New Game"
     self._defaults = None
Ejemplo n.º 2
0
 def __init__(self, rect = None, minrect = None, menuslide = None, enabled = 0):
     #Small rect for when mouse is not over area
     if minrect != None:
         self._minrect = pygame.Rect(minrect)
     else:
         self._minrect = None
     #Current rect of area
     self._currentrect = self._minrect
     #Menu slide
     self._menuslide = menuslide
     #Init base object
     userarea.__init__(self, rect, enabled, 0)
Ejemplo n.º 3
0
 def __init__(self, rect = None, minrect = None, bgfile = None, bgdatfile = None, bgencryption = 0, showalpha = 150, mouseoveralpha = 255, visible = 0, enabled = 0):
     #Init base object
     userarea.__init__(self, rect, enabled, visible)
     #Small rect for when mouse is not over area
     if minrect != None:
         self._minrect = pygame.Rect(minrect)
     else:
         self._minrect = None
     #Current rect of area
     self._currentrect = self._minrect
     #File info
     self._bgfile = bgfile
     self._bgdatfile = bgdatfile
     self._bgencryption = bgencryption
     #Alpha settings
     self._showalpha = showalpha
     self._mouseoveralpha = mouseoveralpha
     #List of objects in inventory
     self._itemlist = []
     #List of images for objects in inventory
     self._itemimages = []
     #Currently highlighted item:
     self._currentitem = None
     #Background surface
     self._bgfilesurface = None
     #Current alpha state
     self._state = 0
     #Surface for left scroll arrow
     self._leftsurface = None
     #Rect for left scroll arrow
     self._leftrect = None
     #Surface for right scroll arrow
     self._rightsurface = None
     #Rect for right scroll arrow
     self._rightrect = None
     #First item in list currently displayed on screen
     self._firstitem = None
     #Last item in list displayed on screen (it may be obscured by right arrow)
     self._enditem = None
     #Default settings for "New Game"
     self._defaults = None