Skip to content

Commit

Permalink
ActionBar: remove borders on buttons
Browse files Browse the repository at this point in the history
this used to be used to "disable" the button, but now it just causes graphical issues
this closes #47
  • Loading branch information
bradallred committed Sep 1, 2017
1 parent 77b065d commit ccdfeac
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions gemrb/GUIScripts/GUICommonWindows.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,15 +658,12 @@ def UpdateActionsWindow ():

Selected = GemRB.GetSelectedSize()

#setting up the disabled button overlay (using the second border slot)
for i in range (12):
Button = CurrentWindow.GetControl (i+ActionBarControlOffset)
if GameCheck.IsBG1():
color = {'r' : 0, 'g' : 254, 'b' :0, 'a' : 255}
Button.SetBorder (0, color, 0, 0, Button.GetInsetFrame(6,6,4,4))

color = {'r' : 50, 'g' : 30, 'b' :10, 'a' : 120}
Button.SetBorder (1, color, 0, 1)
Button.SetFont ("NUMBER")
Button.SetText ("")
Button.SetTooltip("")
Expand Down

0 comments on commit ccdfeac

Please sign in to comment.