small tweaks
This commit is contained in:
+10
-8
@@ -29,6 +29,7 @@ function Bartender4.Button:Create(id, parent)
|
|||||||
button.parent = parent
|
button.parent = parent
|
||||||
|
|
||||||
button:SetFrameStrata("MEDIUM")
|
button:SetFrameStrata("MEDIUM")
|
||||||
|
button:SetFrameLevel(parent:GetFrameLevel() + 2)
|
||||||
button:SetWidth(36)
|
button:SetWidth(36)
|
||||||
button:SetHeight(36)
|
button:SetHeight(36)
|
||||||
|
|
||||||
@@ -41,6 +42,7 @@ function Bartender4.Button:Create(id, parent)
|
|||||||
|
|
||||||
button.Proxy = CreateFrame("CheckButton", name, button, "ActionButtonTemplate")
|
button.Proxy = CreateFrame("CheckButton", name, button, "ActionButtonTemplate")
|
||||||
button.Proxy:SetFrameStrata("MEDIUM")
|
button.Proxy:SetFrameStrata("MEDIUM")
|
||||||
|
button.Proxy:SetFrameLevel(parent:GetFrameLevel() + 1)
|
||||||
button.Proxy:ClearAllPoints()
|
button.Proxy:ClearAllPoints()
|
||||||
button.Proxy:SetAllPoints(button)
|
button.Proxy:SetAllPoints(button)
|
||||||
button.Proxy:SetPushedTexture("")
|
button.Proxy:SetPushedTexture("")
|
||||||
@@ -120,20 +122,20 @@ function Button:SetLevels()
|
|||||||
self.Proxy:SetFrameLevel(parent:GetFrameLevel() + 2)
|
self.Proxy:SetFrameLevel(parent:GetFrameLevel() + 2)
|
||||||
end
|
end
|
||||||
|
|
||||||
function onDragStart(button)
|
function onDragStart(self)
|
||||||
if InCombatLockdown() then return end
|
if InCombatLockdown() then return end
|
||||||
if not Bartender4.db.profile.buttonlock or IsModifiedClick("PICKUPACTION") then
|
if not Bartender4.db.profile.buttonlock or IsModifiedClick("PICKUPACTION") then
|
||||||
PickupAction(button.action)
|
PickupAction(self.action)
|
||||||
button:UpdateState()
|
self:UpdateState()
|
||||||
button:UpdateFlash()
|
self:UpdateFlash()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function onReceiveDrag(button)
|
function onReceiveDrag(self)
|
||||||
if InCombatLockdown() then return end
|
if InCombatLockdown() then return end
|
||||||
PlaceAction(button.action)
|
PlaceAction(self.action)
|
||||||
button:UpdateState()
|
self:UpdateState()
|
||||||
button:UpdateFlash()
|
self:UpdateFlash()
|
||||||
end
|
end
|
||||||
|
|
||||||
function onEnter(self)
|
function onEnter(self)
|
||||||
|
|||||||
Reference in New Issue
Block a user