Fixed global enable/disable.

This commit is contained in:
Relintai 2016-05-06 15:42:19 +02:00
parent ddbf784636
commit 310c3fe2ed

View File

@ -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