From: <lyn...@us...> - 2009-09-15 19:39:02
|
Revision: 7174 http://gemrb.svn.sourceforge.net/gemrb/?rev=7174&view=rev Author: lynxlupodian Date: 2009-09-15 19:38:54 +0000 (Tue, 15 Sep 2009) Log Message: ----------- LUSpellSelection: small improvement for iwd Modified Paths: -------------- gemrb/trunk/gemrb/GUIScripts/LUSpellSelection.py Modified: gemrb/trunk/gemrb/GUIScripts/LUSpellSelection.py =================================================================== --- gemrb/trunk/gemrb/GUIScripts/LUSpellSelection.py 2009-09-15 19:19:49 UTC (rev 7173) +++ gemrb/trunk/gemrb/GUIScripts/LUSpellSelection.py 2009-09-15 19:38:54 UTC (rev 7174) @@ -244,14 +244,14 @@ DoneButton.SetState (IE_GUI_BUTTON_DISABLED) return - if not GameIsBG1(): + if GameIsBG2(): # close our window and update our records if SpellsWindow: SpellsWindow.Unload () # move to the next script if this is chargen if chargen: - if not GameIsBG1(): + if GameIsBG2(): GemRB.SetNextScript("GUICG6") else: next() @@ -280,10 +280,10 @@ SpellButton.SetTooltip(Spell['SpellName']) SpellButton.SetVarAssoc("ButtonPressed", i) SpellButton.SetEvent(IE_GUI_BUTTON_ON_PRESS, "SpellsSelectPress") - if GameIsBG1(): + if GameIsBG2(): + SpellButton.SetSprites("GUIBTBUT",0, 0,1,2,3) + else: SpellButton.SetSprites("GUIBTBUT",0, 0,1,24,25) - else: - SpellButton.SetSprites("GUIBTBUT",0, 0,1,2,3) SpellButton.SetSpellIcon(Spells[SpellLevel][i+j][0], 1) SpellButton.SetFlags(IE_GUI_BUTTON_PICTURE, OP_OR) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |