From 0cc26befa9a4f5033e4bc74f2ea9b94696774513 Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 6 May 2016 15:44:57 +0200 Subject: [PATCH] When unlocked the draggable frames are now marked. --- Vect.lua | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/Vect.lua b/Vect.lua index 3ac2de0..5adda71 100644 --- a/Vect.lua +++ b/Vect.lua @@ -1,8 +1,7 @@ --TODOS: --DR timers ---Way to show pet cds on the master ---Mark movable frames to know which is which +--Way to show pet cds on the master -> currently looks impossible --"Globals" local aceDB = LibStub("AceDB-3.0") @@ -470,7 +469,20 @@ function Vect:ShowMovableFrames() text:SetTexture("Interface\\Icons\\Spell_Arcane_Blink") text:SetAllPoints(frame); 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 = ""; if i == 1 then which = "target"; @@ -483,6 +495,7 @@ function Vect:ShowMovableFrames() Vect.MovableFrames[i] = {} Vect.MovableFrames[i]["frame"] = frame; Vect.MovableFrames[i]["texture"] = text; + Vect.MovableFrames[i]["text"] = t; end end