mirror of
https://github.com/Relintai/Relintais-Enemy-Kooldown-Tracker-WotLK.git
synced 2024-11-08 10:12:11 +01:00
Implemented Chat Command, also in the last commit, Arcane Power was added in.
This commit is contained in:
parent
c711ed1d13
commit
ddbf784636
9
Vect.lua
9
Vect.lua
@ -1,9 +1,7 @@
|
|||||||
|
|
||||||
--TODOS:
|
--TODOS:
|
||||||
--Player Entering World -> cleanup the db
|
--Player Entering World -> cleanup the db
|
||||||
--Chat Command
|
|
||||||
--DR timers
|
--DR timers
|
||||||
--Arcane Power?!
|
|
||||||
|
|
||||||
--"Globals"
|
--"Globals"
|
||||||
local aceDB = LibStub("AceDB-3.0")
|
local aceDB = LibStub("AceDB-3.0")
|
||||||
@ -64,7 +62,6 @@ function Vect:OnInitialize()
|
|||||||
self.db.RegisterCallback(self, "OnProfileChanged", function() self:ApplySettings() end);
|
self.db.RegisterCallback(self, "OnProfileChanged", function() self:ApplySettings() end);
|
||||||
self.db.RegisterCallback(self, "OnProfileCopied", function() self:ApplySettings() end);
|
self.db.RegisterCallback(self, "OnProfileCopied", function() self:ApplySettings() end);
|
||||||
self.db.RegisterCallback(self, "OnProfileReset", function() self:ApplySettings() end);
|
self.db.RegisterCallback(self, "OnProfileReset", function() self:ApplySettings() end);
|
||||||
self:Print(self.appName .. " v. " .. Vect.version .. ". Chat command is /vect");
|
|
||||||
aceConfig:RegisterOptionsTable("Vect", self:GetVectOptions());
|
aceConfig:RegisterOptionsTable("Vect", self:GetVectOptions());
|
||||||
aceCDialog:AddToBlizOptions("Vect");
|
aceCDialog:AddToBlizOptions("Vect");
|
||||||
self:RegisterChatCommand("vect", "ChatCommand");
|
self:RegisterChatCommand("vect", "ChatCommand");
|
||||||
@ -94,7 +91,11 @@ end
|
|||||||
|
|
||||||
|
|
||||||
function Vect:ChatCommand(input)
|
function Vect:ChatCommand(input)
|
||||||
--TODO
|
if not input or input:trim() == "" then
|
||||||
|
aceCDialog:Open("Vect");
|
||||||
|
else
|
||||||
|
LibStub("AceConfigCmd-3.0").HandleCommand(Vect, "vect", "Vect", input);
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function Vect:COMBAT_LOG_EVENT_UNFILTERED(_, timestamp, eventType, srcGUID, srcName, srcFlags,
|
function Vect:COMBAT_LOG_EVENT_UNFILTERED(_, timestamp, eventType, srcGUID, srcName, srcFlags,
|
||||||
|
Loading…
Reference in New Issue
Block a user