From: Laszlo T. <ave...@us...> - 2004-08-10 16:48:16
|
Update of /cvsroot/gemrb/gemrb/gemrb/GUIScripts/tob In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13592/tob Modified Files: GUILOAD.py LoadScreen.py Log Message: Fixed scripts drawing the loadscreen in bg2/tob Index: LoadScreen.py =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/GUIScripts/tob/LoadScreen.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** LoadScreen.py 9 Aug 2004 15:34:31 -0000 1.1 --- LoadScreen.py 10 Aug 2004 16:48:06 -0000 1.2 *************** *** 46,55 **** GemRB.SetVarAssoc( LoadScreen, Bar, "Progress", Progress) GemRB.SetVisible(LoadScreen, 1) - - def UpdateLoadScreen (): - print Progress - return - - def CloseLoadScreen (): - GemRB.UnloadWindow(LoadScreen) - --- 46,47 ---- Index: GUILOAD.py =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/GUIScripts/tob/GUILOAD.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** GUILOAD.py 15 Apr 2004 16:35:12 -0000 1.2 --- GUILOAD.py 10 Aug 2004 16:48:06 -0000 1.3 *************** *** 1,4 **** --- 1,5 ---- #load window import GemRB + from LoadScreen import * LoadWindow = 0 *************** *** 92,97 **** def LoadGamePress(): Pos = GemRB.GetVar("TopIndex")+GemRB.GetVar("LoadIdx") GemRB.LoadGame(Pos) #loads and enters savegame ! GemRB.EnterGame() return --- 93,99 ---- def LoadGamePress(): Pos = GemRB.GetVar("TopIndex")+GemRB.GetVar("LoadIdx") + StartLoadScreen() GemRB.LoadGame(Pos) #loads and enters savegame ! GemRB.EnterGame() #it will close windows, including the loadscreen return |