Exemplo n.º 1
0
 def _load(self, saveinfo):
     #Load base object's settings
     userarea._load(self, saveinfo)
     #Get my save state from the list
     mysaveinfo = saveinfo[self._id]
     #Set my propeties to those in the saved state
     self._minrect = mysaveinfo['minrect']
     if mysaveinfo['menuslide'] == None:
         self._menuslide = None
     else:
         #Replace menuslide's name with it's instance
         self._menuslide = globals.currentage.getslide(mysaveinfo['menuslide'])
Exemplo n.º 2
0
 def _load(self, saveinfo):
     #Load base object's settings
     userarea._load(self, saveinfo)
     #Get my save state from the list
     mysaveinfo = saveinfo[self._id]
     #Set my propeties to those in the saved state
     self._bgfile = mysaveinfo['bgfile']
     self._bgdatfile = mysaveinfo['bgdatfile']
     self._bgencyption = mysaveinfo['bgencyption']
     self._hidealpha = mysaveinfo['hidealpha'] 
     self._showalpha = mysaveinfo['showalpha']
     self._mouseoveralpha = mysaveinfo['mouseoveralpha']
     if mysaveinfo['itemlist'] == []:
         self._itemlist = []
     else:
         #Replace item names with thier instances
         self._itemlist = []
         for curitem in mysaveinfo['itemlist']:
             self._itemlist.append(globals.items[curitem])