From: <ave...@us...> - 2003-11-15 21:53:04
|
Update of /cvsroot/gemrb/gemrb/gemrb/GUIScripts/iwd2 In directory sc8-pr-cvs1:/tmp/cvs-serv14832/iwd2 Modified Files: GUILOAD.py Log Message: Added Delete function to loading screen Index: GUILOAD.py =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/GUIScripts/iwd2/GUILOAD.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** GUILOAD.py 15 Nov 2003 21:40:20 -0000 1.1 --- GUILOAD.py 15 Nov 2003 21:52:59 -0000 1.2 *************** *** 95,99 **** def DeleteGamePress(): ! Pos = GemRB.GetVar("TopIndex")+GemRB.GetVar("LoadIdx") return --- 95,103 ---- def DeleteGamePress(): ! TopIndex = GemRB.GetVar("TopIndex") ! Pos = TopIndex +GemRB.GetVar("LoadIdx") ! GemRB.DeleteSaveGame(Pos) ! GemRB.SetVar("TopIndex",TopIndex-1) ! ScrollBarPress() return |