Skip to content

Commit

Permalink
Temporary fix for skin changes in latest update.
Browse files Browse the repository at this point in the history
  • Loading branch information
SticklyMan committed Mar 29, 2016
1 parent cb809a7 commit 11b3d93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/ulx/xgui/bans.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ end

local searchFilter = ""
xbans.searchbox = xlib.maketextbox{ x=5, y=6, w=175, text="Search...", selectall=true, parent=xbans }
local txtCol = xbans.searchbox:GetTextColor()
local txtCol = xbans.searchbox:GetTextColor() or Color( 0, 0, 0, 255 ) -- Temp fix for https://github.com/garrynewman/garrysmod/pull/1141
xbans.searchbox:SetTextColor( Color( txtCol.r, txtCol.g, txtCol.b, 196 ) ) -- Set initial color
xbans.searchbox.OnChange = function( pnl )
if pnl:GetText() == "" then
Expand Down

1 comment on commit 11b3d93

@kradosser
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍 :3

Please sign in to comment.