mirror of
https://github.com/Relintai/Relintais-Enemy-Kooldown-Tracker-WotLK.git
synced 2024-11-08 10:12:11 +01:00
Added in spec detection option.
Bumped version to 0.9
This commit is contained in:
parent
19f535a214
commit
a5d137b76f
1
Vect.lua
1
Vect.lua
@ -38,6 +38,7 @@ Vect.defaults = {
|
||||
spellAuraDebug = false,
|
||||
allCDebug = false,
|
||||
selfCDRegister = false,
|
||||
specdetection = false,
|
||||
target = {
|
||||
enabled = true,
|
||||
size = 27,
|
||||
|
2
Vect.toc
2
Vect.toc
@ -6,7 +6,7 @@
|
||||
## DefaultState: Enabled
|
||||
## OptionalDeps: Ace3
|
||||
## SavedVariables: VectDB
|
||||
## Version: 0.75
|
||||
## Version: 0.9
|
||||
|
||||
embeds.xml
|
||||
data\global.lua
|
||||
|
@ -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"];
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user