force all button layers to be on MEDIUM strata and fix up framelevels
This commit is contained in:
@@ -172,6 +172,7 @@ function ActionBar:UpdateButtons(numbuttons)
|
|||||||
-- show active buttons
|
-- show active buttons
|
||||||
for i = 1, numbuttons do
|
for i = 1, numbuttons do
|
||||||
buttons[i]:SetParent(self)
|
buttons[i]:SetParent(self)
|
||||||
|
buttons[i]:SetLevels()
|
||||||
buttons[i]:Show()
|
buttons[i]:Show()
|
||||||
buttons[i]:UpdateAction(true)
|
buttons[i]:UpdateAction(true)
|
||||||
end
|
end
|
||||||
|
|||||||
+6
-1
@@ -40,7 +40,7 @@ function Bartender4.Button:Create(id, parent)
|
|||||||
button:SetNormalTexture("")
|
button:SetNormalTexture("")
|
||||||
|
|
||||||
button.Proxy = CreateFrame("CheckButton", name, button, "ActionButtonTemplate")
|
button.Proxy = CreateFrame("CheckButton", name, button, "ActionButtonTemplate")
|
||||||
button.Proxy:SetFrameStrata("LOW")
|
button.Proxy:SetFrameStrata("MEDIUM")
|
||||||
button.Proxy:ClearAllPoints()
|
button.Proxy:ClearAllPoints()
|
||||||
button.Proxy:SetAllPoints(button)
|
button.Proxy:SetAllPoints(button)
|
||||||
button.Proxy:SetPushedTexture("")
|
button.Proxy:SetPushedTexture("")
|
||||||
@@ -114,6 +114,11 @@ function Bartender4.Button:Create(id, parent)
|
|||||||
return button
|
return button
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function Button:SetLevels()
|
||||||
|
local parent = self:GetParent()
|
||||||
|
self:SetFrameLevel(parent:GetFrameLevel() + 3)
|
||||||
|
self.Proxy:SetFrameLevel(parent:GetFrameLevel() + 2)
|
||||||
|
end
|
||||||
|
|
||||||
function onDragStart(button)
|
function onDragStart(button)
|
||||||
if InCombatLockdown() then return end
|
if InCombatLockdown() then return end
|
||||||
|
|||||||
Reference in New Issue
Block a user