From: <ze...@us...> - 2009-03-01 09:47:34
|
Revision: 5760 http://gemrb.svn.sourceforge.net/gemrb/?rev=5760&view=rev Author: zefklop Date: 2009-03-01 09:47:24 +0000 (Sun, 01 Mar 2009) Log Message: ----------- bg1:Fix behaviour of identified items in stores Modified Paths: -------------- gemrb/trunk/gemrb/GUIScripts/bg1/GUISTORE.py Modified: gemrb/trunk/gemrb/GUIScripts/bg1/GUISTORE.py =================================================================== --- gemrb/trunk/gemrb/GUIScripts/bg1/GUISTORE.py 2009-03-01 08:41:49 UTC (rev 5759) +++ gemrb/trunk/gemrb/GUIScripts/bg1/GUISTORE.py 2009-03-01 09:47:24 UTC (rev 5760) @@ -757,16 +757,17 @@ Button.SetState (IE_GUI_BUTTON_ENABLED) GemRB.SetToken ("ITEMNAME", GemRB.GetString (Item['ItemName'])) + GemRB.SetToken ("ITEMCOST", str(IDPrice) ) Button.EnableBorder (0, 1) else: if Index == TopIndex+i: Text = Item['ItemDescIdentified'] TextArea.SetText (Text) - Button.SetState (IE_GUI_BUTTON_ENABLED) + Button.SetState (IE_GUI_BUTTON_DISABLED) GemRB.SetToken ("ITEMNAME", GemRB.GetString (Item['ItemNameIdentified'])) + GemRB.SetToken ("ITEMCOST", str(0) ) Button.EnableBorder (0, 0) - GemRB.SetToken ("ITEMCOST", str(IDPrice) ) Label.SetText (10162) else: Button.SetState (IE_GUI_BUTTON_DISABLED) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |