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, spellAuraDebug = false,
allCDebug = false, allCDebug = false,
selfCDRegister = false, selfCDRegister = false,
specdetection = false,
target = { target = {
enabled = true, enabled = true,
size = 27, size = 27,

View File

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

View File

@ -72,6 +72,18 @@ function Vect:SetDRPartEnabledOrDisabled(which, enable)
end end
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 --lock
function Vect:isLocked() function Vect:isLocked()
return Vect.db.profile["locked"]; return Vect.db.profile["locked"];

View File

@ -141,6 +141,16 @@ function Vect:getTargetandFocusOptions()
set = function(_, v) set = function(_, v)
Vect:setSortOrder("focus", v); Vect:setSortOrder("focus", v);
end 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; return args;