Added in spec detection option.

Bumped version to 0.9
This commit is contained in:
Relintai 2016-05-06 15:56:29 +02:00
parent 19f535a214
commit a5d137b76f
4 changed files with 24 additions and 1 deletions

View File

@ -38,6 +38,7 @@ Vect.defaults = {
spellAuraDebug = false,
allCDebug = false,
selfCDRegister = false,
specdetection = false,
target = {
enabled = true,
size = 27,

View File

@ -6,7 +6,7 @@
## DefaultState: Enabled
## OptionalDeps: Ace3
## SavedVariables: VectDB
## Version: 0.75
## Version: 0.9
embeds.xml
data\global.lua

View File

@ -72,6 +72,18 @@ function Vect:SetDRPartEnabledOrDisabled(which, enable)
end
end
function Vect:isSpecDetectionEnabled()
local db = Vect.db.profile;
return db["specdetection"];
end
function Vect:setSpecDetectionEnabledorDisabled(enable)
local db = Vect.db.profile;
db["specdetection"] = enable;
--call the remapcooldowns, and then update
--self:ReassignCds(which);
end
--lock
function Vect:isLocked()
return Vect.db.profile["locked"];

View File

@ -141,6 +141,16 @@ function Vect:getTargetandFocusOptions()
set = function(_, v)
Vect:setSortOrder("focus", v);
end
},
globalHeader = {
type = "header", name = "Global settings", order = 20
},
specdetectiontoggle = {
type = "toggle", name = "Spec Detection", desc = "Enable/Disable Spec Detection", order = 21,
get = function() return Vect:isSpecDetectionEnabled() end,
set = function(_, v)
Vect:setSpecDetectionEnabledorDisabled(v);
end
}
}
return args;