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()
|
||||
self:Reset();
|
||||
self:ApplySettings();
|
||||
--hide the frames
|
||||
Vect:HideFrames();
|
||||
--self:Disable();
|
||||
end
|
||||
|
||||
function Vect:VectEnable()
|
||||
--self:Enable();
|
||||
self:Reset();
|
||||
self:ApplySettings();
|
||||
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
|
||||
|
||||
--enable
|
||||
|
Loading…
Reference in New Issue
Block a user