Skip to content

Commit

Permalink
Fixed ToggleMenu error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shestak committed Nov 5, 2013
1 parent 77456c9 commit 9605fba
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ShestakUI/Modules/Maps/ToggleMenu.lua
Expand Up @@ -161,12 +161,13 @@ end
local defaultframelevel = 0

local function updateTextures(button, checkable)
button:StyleButton(checkable)
if checkable then
button:GetCheckedTexture():SetTexture(1, 1, 1, 0.3)
local texture = button:CreateTexture(nil, nil, self)
texture:SetTexture(1, 1, 1, 0.3)
texture:SetPoint("TOPLEFT", button, 2, -2)
texture:SetPoint("BOTTOMRIGHT", button, -2, 2)
button:SetCheckedTexture(texture)
end
button:GetHighlightTexture():SetTexture(0, 0, 0, 0)
button:GetPushedTexture():SetTexture(0, 0, 0, 0)
button:HookScript("OnEnter", T.SetModifiedBackdrop)
button:HookScript("OnLeave", T.SetOriginalBackdrop)
end
Expand Down

0 comments on commit 9605fba

Please sign in to comment.