Commit 74ad0d6d authored by Azilroka's avatar Azilroka

API Cleanup

parent 74faf98f
...@@ -50,8 +50,8 @@ local function Point(obj, arg1, arg2, arg3, arg4, arg5) ...@@ -50,8 +50,8 @@ local function Point(obj, arg1, arg2, arg3, arg4, arg5)
end end
local function SetOutside(obj, anchor, xOffset, yOffset) local function SetOutside(obj, anchor, xOffset, yOffset)
xOffset = xOffset or (MakeInset and 2) or 1 xOffset = xOffset or 1
yOffset = yOffset or (MakeInset and 2) or 1 yOffset = yOffset or 1
anchor = anchor or obj:GetParent() anchor = anchor or obj:GetParent()
if obj:GetPoint() then obj:ClearAllPoints() end if obj:GetPoint() then obj:ClearAllPoints() end
...@@ -61,8 +61,8 @@ local function SetOutside(obj, anchor, xOffset, yOffset) ...@@ -61,8 +61,8 @@ local function SetOutside(obj, anchor, xOffset, yOffset)
end end
local function SetInside(obj, anchor, xOffset, yOffset) local function SetInside(obj, anchor, xOffset, yOffset)
xOffset = xOffset or (MakeInset and 2) or 1 xOffset = xOffset or 1
yOffset = yOffset or (MakeInset and 2) or 1 yOffset = yOffset or 1
anchor = anchor or obj:GetParent() anchor = anchor or obj:GetParent()
if obj:GetPoint() then obj:ClearAllPoints() end if obj:GetPoint() then obj:ClearAllPoints() end
...@@ -242,8 +242,6 @@ local function SkinButton(Frame, Strip) ...@@ -242,8 +242,6 @@ local function SkinButton(Frame, Strip)
end) end)
Frame:HookScript("OnLeave", function(self) Frame:HookScript("OnLeave", function(self)
local Color = RAID_CLASS_COLORS[select(2, UnitClass("player"))]
self:SetBackdropColor(C.General.BackdropColor[1], C.General.BackdropColor[2], C.General.BackdropColor[3]) self:SetBackdropColor(C.General.BackdropColor[1], C.General.BackdropColor[2], C.General.BackdropColor[3])
self:SetBackdropBorderColor(C.General.BorderColor[1], C.General.BorderColor[2], C.General.BorderColor[3]) self:SetBackdropBorderColor(C.General.BorderColor[1], C.General.BorderColor[2], C.General.BorderColor[3])
end) end)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment