CI movable frames
This commit is contained in:
parent
ebb56c4127
commit
09a47e81f1
@ -17,6 +17,7 @@ local IsActiveBattlefieldArena = IsActiveBattlefieldArena
|
||||
local RELEASE_TYPES = { alpha = "Alpha", beta = "Beta", release = "Release"}
|
||||
local PREFIX = "TBC-Classic_v"
|
||||
local VERSION_REGEX = PREFIX .. "(%d+%.%d+)%-(%a)"
|
||||
local LibStub = LibStub
|
||||
|
||||
---------------------------
|
||||
|
||||
@ -219,6 +220,7 @@ function Gladdy:CreateMover(frame, xConfig, yConfig, name, points, width, height
|
||||
frame:SetPoint(self.point[1], self.point[2], self.point[3], self.point[4] + diffX, self.point[5] + diffY)
|
||||
Gladdy.db[xConfig] = self.point[4] + diffX
|
||||
Gladdy.db[yConfig] = self.point[5] + diffY
|
||||
LibStub("AceConfigRegistry-3.0"):NotifyChange("Gladdy")
|
||||
Gladdy:UpdateFrame()
|
||||
end)
|
||||
else
|
||||
|
@ -79,7 +79,7 @@ function CombatIndicator:UpdateFrame(unit)
|
||||
ciFrame:Show()
|
||||
end
|
||||
if (unit == "arena1") then
|
||||
Gladdy:CreateMover(ciFrame, "ciXOffset", "ciYOffset", L["Combat Indicator"], {"BOTTOMLEFT", "TOPLEFT"})
|
||||
Gladdy:CreateMover(ciFrame, "ciXOffset", "ciYOffset", L["Combat Indicator"], {"TOPLEFT", "TOPLEFT"})
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user