mirror of
https://github.com/Relintai/Relintais-Enemy-Kooldown-Tracker-TBC.git
synced 2025-01-25 15:29:23 +01:00
Added in TrinketTracker.
I wanted to only do it as an optional dependency, but unfortunately the standalone version has it's own frames, so instead I used the one from Gladdy, I still had to modify it a lot, but it works now. (The dectection stuff in it is the same.)
This commit is contained in:
parent
39ec067d56
commit
e550ac5c74
16
Rekt.lua
16
Rekt.lua
@ -221,6 +221,9 @@ function Rekt:OnInitialize()
|
||||
aceCDialog:AddToBlizOptions("Rekt");
|
||||
self:RegisterChatCommand("Rekt", "ChatCommand");
|
||||
|
||||
for k, v in pairs(Rekt.modules) do
|
||||
v["Initialise"]();
|
||||
end
|
||||
end
|
||||
|
||||
function Rekt:OnEnable()
|
||||
@ -230,6 +233,7 @@ function Rekt:OnEnable()
|
||||
self:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED");
|
||||
self:RegisterEvent("PLAYER_TARGET_CHANGED");
|
||||
self:RegisterEvent("PLAYER_FOCUS_CHANGED");
|
||||
--self:RegisterEvent("CHAT_MSG_ADDON");
|
||||
self:CreateFrames("target");
|
||||
self:CreateFrames("focus");
|
||||
self:CreateDRFrames("targetdr");
|
||||
@ -273,6 +277,7 @@ function Rekt:OnDisable()
|
||||
self:UnregisterEvent("COMBAT_LOG_EVENT_UNFILTERED");
|
||||
self:UnregisterEvent("PLAYER_TARGET_CHANGED");
|
||||
self:UnregisterEvent("PLAYER_FOCUS_CHANGED");
|
||||
--self:UnregisterEvent("CHAT_MSG_ADDON");
|
||||
self.Reset();
|
||||
end
|
||||
|
||||
@ -399,6 +404,17 @@ function Rekt:ZONE_CHANGED_NEW_AREA()
|
||||
end
|
||||
end
|
||||
|
||||
--[[
|
||||
function Rekt:CHAT_MSG_ADDON(prefix, message, channel, sender)
|
||||
--self:Print(prefix .. " " .. message .. " " .. channel .. " " .. sender);
|
||||
if message == "GladdyTrinketUsed" then
|
||||
--Rekt:AddCd(srcGUID, spellID, eventType, srcFlags);
|
||||
--SendAddonMessage("GladdyTrinketUsed", destGUID)
|
||||
Rekt:AddCd(channel, 42292, "SPELL_CAST_SUCCESS", 0);
|
||||
end
|
||||
end
|
||||
]]--
|
||||
|
||||
function Rekt:ApplySettings()
|
||||
local db = Rekt.db.profile;
|
||||
|
||||
|
2
Rekt.toc
2
Rekt.toc
@ -19,3 +19,5 @@ data\cooldowns.lua
|
||||
data\interruptbar.lua
|
||||
data\warn.lua
|
||||
Rekt.lua
|
||||
|
||||
ThirdPartyModules\TrinketTracker\TrinketTracker.lua
|
21
ThirdPartyModules/TrinketTracker/LICENSE
Normal file
21
ThirdPartyModules/TrinketTracker/LICENSE
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License
|
||||
|
||||
Copyright (c) 2013 Mikhail "miraage" Osher (miraage.wow@gmail.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
1094
ThirdPartyModules/TrinketTracker/TrinketTracker.lua
Normal file
1094
ThirdPartyModules/TrinketTracker/TrinketTracker.lua
Normal file
File diff suppressed because it is too large
Load Diff
@ -4,6 +4,35 @@ Rekt.appName = "Rekt"
|
||||
Rekt.dbName = "RektDB"
|
||||
Rekt.version = "1.05"
|
||||
|
||||
Rekt.modules = {}
|
||||
|
||||
function Rekt:NewTrinketTrackerModule(name, priority, defaults)
|
||||
local module = CreateFrame("Frame")
|
||||
module.name = name
|
||||
module.priority = priority or 0
|
||||
module.defaults = defaults or {}
|
||||
module.messages = {}
|
||||
|
||||
module.RegisterMessage = function(self, message, func)
|
||||
self.messages[message] = func or message
|
||||
end
|
||||
|
||||
module.GetOptions = function()
|
||||
return nil
|
||||
end
|
||||
|
||||
if defaults then
|
||||
for k, v in pairs(defaults) do
|
||||
self:Print(k);
|
||||
Rekt.defaults.profile[k] = v;
|
||||
end
|
||||
end
|
||||
|
||||
self.modules[name] = module
|
||||
|
||||
return module
|
||||
end
|
||||
|
||||
function Rekt:HideFrames()
|
||||
for i = 1, 23 do
|
||||
local frame = self.frames["target"][i]["frame"];
|
||||
|
@ -720,6 +720,28 @@ function Rekt:getGlobalOptions()
|
||||
end
|
||||
},
|
||||
}
|
||||
|
||||
--[[
|
||||
--100+ (Modules)
|
||||
local ordern = 1;
|
||||
for k, v in pairs(self.modules) do
|
||||
local options = v:GetOptions()
|
||||
|
||||
args["moduleheader" .. ordern] = {
|
||||
type = "header", name = "Other settings", order = 100 * ordern
|
||||
};
|
||||
|
||||
local orderic = 1;
|
||||
for k1, v1 in pairs(options) do
|
||||
args[k1] = {
|
||||
type = v1["type"], name = v1["name"], order = (100 * ordern) + orderic
|
||||
};
|
||||
end
|
||||
|
||||
ordern = ordern + 1
|
||||
end
|
||||
]]--
|
||||
|
||||
return args;
|
||||
end
|
||||
|
||||
|
@ -53,3 +53,7 @@ Practicly your combatlog stops processing any new events, a fix is implemented t
|
||||
For the addon's settings go to Interface->Switch ot the addons tab->Rekt
|
||||
or
|
||||
type /rekt into the chat
|
||||
|
||||
# Third Party Modlues
|
||||
|
||||
Includes a modified version of TrinketTracker by Mikhail "miraage" Osher (miraage.wow@gmail.com).
|
Loading…
Reference in New Issue
Block a user