mirror of
https://github.com/Relintai/Relintais-Enemy-Kooldown-Tracker-WotLK.git
synced 2024-11-08 10:12:11 +01:00
Fixed global enable/disable.
This commit is contained in:
parent
ddbf784636
commit
310c3fe2ed
17
Vect.lua
17
Vect.lua
@ -354,14 +354,31 @@ end
|
|||||||
|
|
||||||
function Vect:VectDisable()
|
function Vect:VectDisable()
|
||||||
self:Reset();
|
self:Reset();
|
||||||
|
self:ApplySettings();
|
||||||
|
--hide the frames
|
||||||
|
Vect:HideFrames();
|
||||||
--self:Disable();
|
--self:Disable();
|
||||||
end
|
end
|
||||||
|
|
||||||
function Vect:VectEnable()
|
function Vect:VectEnable()
|
||||||
|
--self:Enable();
|
||||||
self:Reset();
|
self:Reset();
|
||||||
self:ApplySettings();
|
self:ApplySettings();
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--global utility
|
||||||
|
|
||||||
|
function Vect:HideFrames()
|
||||||
|
for i = 1, 23 do
|
||||||
|
local frame = self.frames["target"][i]["frame"];
|
||||||
|
frame:Hide();
|
||||||
|
end
|
||||||
|
for i = 1, 23 do
|
||||||
|
local frame = self.frames["focus"][i]["frame"];
|
||||||
|
frame:Hide();
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
--Utility Functions for the options
|
--Utility Functions for the options
|
||||||
|
|
||||||
--enable
|
--enable
|
||||||
|
Loading…
Reference in New Issue
Block a user