From: Laszlo T. <ave...@us...> - 2006-08-04 21:42:48
|
Update of /cvsroot/gemrb/gemrb/gemrb/GUIScripts/bg2 In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv10310/GUIScripts/bg2 Modified Files: GUICommonWindows.py Log Message: bg2:spell/innate lists work too Index: GUICommonWindows.py =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/GUIScripts/bg2/GUICommonWindows.py,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** GUICommonWindows.py 3 Aug 2006 21:13:06 -0000 1.34 --- GUICommonWindows.py 4 Aug 2006 21:42:45 -0000 1.35 *************** *** 223,230 **** pc = -1 break ! ! #setting up the disabled button overlay (using the second border slot) ! for i in range (12): ! GemRB.SetButtonBorder(ActionsWindow, i, 1, 0, 0, 0, 0, 50,30,10,120, 0, 1) if pc == 0: --- 223,230 ---- pc = -1 break ! ! #setting up the disabled button overlay (using the second border slot) ! for i in range (12): ! GemRB.SetButtonBorder(ActionsWindow, i, 1, 0, 0, 0, 0, 50,30,10,120, 0, 1) if pc == 0: *************** *** 240,247 **** if level == 0: GemRB.SetupControls (ActionsWindow, pc) ! elif level == 1: GemRB.SetupEquipmentIcons(ActionsWindow, pc, TopIndex) ! elif level == 2: ! GemRB.SetupSpellIcons(ActionsWindow, pc, TopIndex) return --- 240,249 ---- if level == 0: GemRB.SetupControls (ActionsWindow, pc) ! elif level == 1: GemRB.SetupEquipmentIcons(ActionsWindow, pc, TopIndex) ! elif level == 2: #spells ! GemRB.SetupSpellIcons(ActionsWindow, pc, 3, TopIndex) ! elif level == 3: #innates ! GemRB.SetupSpellIcons(ActionsWindow, pc, 4, TopIndex) return *************** *** 304,307 **** --- 306,321 ---- return + def ActionCastPressed (): + GemRB.SetVar ("TopIndex", 0) + GemRB.SetVar ("ActionLevel", 2) + UpdateActionsWindow () + return + + def ActionInnatePressed (): + GemRB.SetVar ("TopIndex", 0) + GemRB.SetVar ("ActionLevel", 3) + UpdateActionsWindow () + return + def GetActorClassTitle (actor): ClassTitle = GemRB.GetPlayerStat (actor, IE_TITLE1) |