mirror of
https://github.com/Relintai/Relintais-Enemy-Kooldown-Tracker-WotLK.git
synced 2024-11-08 10:12:11 +01:00
When unlocked the draggable frames are now marked.
This commit is contained in:
parent
adc10d23bb
commit
0cc26befa9
19
Vect.lua
19
Vect.lua
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user