Skip to content

Commit

Permalink
AbilitiesItemWindow: only respec the button in bg2
Browse files Browse the repository at this point in the history
fixes the rest not showing the selection "border"
  • Loading branch information
lynxlynxlynx committed Apr 4, 2016
1 parent 816b4d2 commit 0e7cdae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gemrb/GUIScripts/InventoryCommon.py
Expand Up @@ -921,7 +921,8 @@ def AbilitiesItemWindow ():
GemRB.SetVar ("Ability", slot_item["Header"])
for i in range(3):
Button = Window.GetControl (i+1)
Button.SetSprites ("GUIBTBUT",i,0,1,2,0)
if GameCheck.IsBG2(): # TODO: check pst
Button.SetSprites ("GUIBTBUT",i,0,1,2,0)
Button.SetFlags (IE_GUI_BUTTON_RADIOBUTTON, OP_OR)
Button.SetVarAssoc ("Ability",i)
Text = Window.GetControl (i+0x10000003)
Expand Down

0 comments on commit 0e7cdae

Please sign in to comment.