mirror of
https://github.com/Relintai/Relintais-Enemy-Kooldown-Tracker-WotLK.git
synced 2024-11-08 10:12:11 +01:00
Showing self cds are now toggable
This commit is contained in:
parent
6f70741c40
commit
e959cbec1f
20
Vect.lua
20
Vect.lua
@ -5,8 +5,6 @@
|
||||
--CD Sort Order
|
||||
|
||||
--"Globals"
|
||||
local ALLOCATE_FRAME_NUM = 5;
|
||||
|
||||
local aceDB = LibStub("AceDB-3.0")
|
||||
local aceCDialog = LibStub("AceConfigDialog-3.0")
|
||||
local aceConfig = LibStub("AceConfig-3.0")
|
||||
@ -34,6 +32,7 @@ Vect.defaults = {
|
||||
spellCastDebug = false,
|
||||
spellAuraDebug = false,
|
||||
allCDebug = false,
|
||||
selfCDRegister = false,
|
||||
target = {
|
||||
enabled = true,
|
||||
size = 27,
|
||||
@ -155,8 +154,11 @@ function Vect:ReassignCds(which)
|
||||
local frame = Vect.frames[which][i]["frame"];
|
||||
frame:Hide();
|
||||
end
|
||||
local db = Vect.db.profile;
|
||||
--check if frames are unlocked
|
||||
if not Vect.db.profile["locked"] then return end;
|
||||
if not db["locked"] then return end;
|
||||
--check if we need to display them for the player
|
||||
if not db["selfCDRegister"] and self.targets[which] == UnitGUID("player") then return end;
|
||||
--check if we have cooldown for that unit
|
||||
if not self.cds[self.targets[which]] then return end;
|
||||
--sort them
|
||||
@ -494,4 +496,16 @@ end
|
||||
function Vect:setAllCDebug(v)
|
||||
local db = Vect.db.profile;
|
||||
db["allCDebug"] = v;
|
||||
end
|
||||
|
||||
function Vect:getSelfCDRegister()
|
||||
local db = Vect.db.profile;
|
||||
return db["selfCDRegister"];
|
||||
end
|
||||
|
||||
function Vect:setSelfCDRegister(v)
|
||||
local db = Vect.db.profile;
|
||||
db["selfCDRegister"] = v;
|
||||
Vect:ReassignCds("target");
|
||||
Vect:ReassignCds("focus");
|
||||
end
|
@ -161,29 +161,36 @@ end
|
||||
function Vect:getDebugOptions()
|
||||
local args = {
|
||||
spellcast = {
|
||||
type = "toggle", name = "SpellCast", desc = "Enable/Disable writing out SPELL_CAST_SUCCESS events.", order = 50,
|
||||
get = function() return Vect:getSpellCastDebug() end,
|
||||
set = function(_, v)
|
||||
Vect:setSpellCastDebug(v);
|
||||
end
|
||||
type = "toggle", name = "SpellCast", desc = "Enable/Disable writing out SPELL_CAST_SUCCESS events.", order = 50,
|
||||
get = function() return Vect:getSpellCastDebug() end,
|
||||
set = function(_, v)
|
||||
Vect:setSpellCastDebug(v);
|
||||
end
|
||||
},
|
||||
spellAura = {
|
||||
type = "toggle", name = "SpellAura", desc = "Enable/Disablewriting out SPLL_AURA_* events", order = 51,
|
||||
get = function() return Vect:getSpellAuraDebug() end,
|
||||
set = function(_, v)
|
||||
Vect:setSpellAuraDebug(v);
|
||||
end
|
||||
type = "toggle", name = "SpellAura", desc = "Enable/Disablewriting out SPLL_AURA_* events", order = 51,
|
||||
get = function() return Vect:getSpellAuraDebug() end,
|
||||
set = function(_, v)
|
||||
Vect:setSpellAuraDebug(v);
|
||||
end
|
||||
},
|
||||
allLog = {
|
||||
type = "toggle", name = "Uber debug", desc = "Enable/Disable writing out all combatlog events", order = 52,
|
||||
get = function() return Vect:getAllCDebug() end,
|
||||
set = function(_, v)
|
||||
Vect:setAllCDebug(v);
|
||||
end
|
||||
type = "toggle", name = "Uber debug", desc = "Enable/Disable writing out all combatlog events", order = 52,
|
||||
get = function() return Vect:getAllCDebug() end,
|
||||
set = function(_, v)
|
||||
Vect:setAllCDebug(v);
|
||||
end
|
||||
},
|
||||
selfcd = {
|
||||
type = "toggle", name = "Self CDs", desc = "Enable/Disable registering self CDs", order = 53,
|
||||
get = function() return Vect:getSelfCDRegister() end,
|
||||
set = function(_, v)
|
||||
Vect:setSelfCDRegister(v);
|
||||
end
|
||||
},
|
||||
debugselect = {
|
||||
type = "select", style = "dropdown", name = "debuglevel",
|
||||
desc = "Change the debuglevel", order = 53,
|
||||
desc = "Change the debuglevel", order = 54,
|
||||
values = {
|
||||
["0"] = "No Messages",
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user