When unlocked the draggable frames are now marked.

This commit is contained in:
Relintai 2016-05-06 15:44:57 +02:00
parent adc10d23bb
commit 0cc26befa9

View File

@ -1,8 +1,7 @@
--TODOS: --TODOS:
--DR timers --DR timers
--Way to show pet cds on the master --Way to show pet cds on the master -> currently looks impossible
--Mark movable frames to know which is which
--"Globals" --"Globals"
local aceDB = LibStub("AceDB-3.0") local aceDB = LibStub("AceDB-3.0")
@ -470,7 +469,20 @@ function Vect:ShowMovableFrames()
text:SetTexture("Interface\\Icons\\Spell_Arcane_Blink") text:SetTexture("Interface\\Icons\\Spell_Arcane_Blink")
text:SetAllPoints(frame); text:SetAllPoints(frame);
frame.texture = text; frame.texture = text;
local t = frame:CreateFontString(nil, "OVERLAY");
t:SetNonSpaceWrap(false);
t:SetPoint("CENTER", frame, "CENTER", 2, 0);
t:SetFont("Fonts\\FRIZQT__.TTF", 11, "OUTLINE, MONOCHROME")
local ttext = "";
if i == 1 then
ttext = "T";
elseif i == 2 then
ttext = "F";
end
t:SetText(ttext);
local which = ""; local which = "";
if i == 1 then if i == 1 then
which = "target"; which = "target";
@ -483,6 +495,7 @@ function Vect:ShowMovableFrames()
Vect.MovableFrames[i] = {} Vect.MovableFrames[i] = {}
Vect.MovableFrames[i]["frame"] = frame; Vect.MovableFrames[i]["frame"] = frame;
Vect.MovableFrames[i]["texture"] = text; Vect.MovableFrames[i]["texture"] = text;
Vect.MovableFrames[i]["text"] = t;
end end
end end