Skip to content

Commit d842710

Browse files
committed
Add support for Chattynator
1 parent 4fa5e29 commit d842710

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

TalentTreeTweaks.toc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
## X-Curse-Project-ID: 678792
88
## X-Wago-ID: qKQxm86x
99
## SavedVariables: TalentTreeTweaksDB
10-
## OptionalDeps: TalentTreeViewer_Loader
10+
## OptionalDeps: TalentTreeViewer_Loader, Chattynator
1111
## Category-enUS: Combat
1212
## Category-deDE: Kampf
1313
## Category-esES: Combate

modules/clickableExportStringsInChat.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ function Module:OnEnable()
5959
self:SecureHookScript(frame, 'OnHyperlinkEnter');
6060
self:SecureHookScript(frame, 'OnHyperlinkLeave');
6161
end);
62+
if Chattynator and Chattynator.API and Chattynator.API.GetHyperlinkHandler and Chattynator.API.GetHyperlinkHandler() then
63+
self:SecureHookScript(Chattynator.API.GetHyperlinkHandler(), 'OnHyperlinkEnter');
64+
self:SecureHookScript(Chattynator.API.GetHyperlinkHandler(), 'OnHyperlinkLeave');
65+
end
6266
end
6367

6468
function Module:OnDisable()

modules/miniTreeInTooltip.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ function Module:OnEnable()
7878
self:SecureHookScript(frame, "OnHyperlinkEnter");
7979
self:SecureHookScript(frame, "OnHyperlinkLeave");
8080
end)
81+
if Chattynator and Chattynator.API and Chattynator.API.GetHyperlinkHandler and Chattynator.API.GetHyperlinkHandler() then
82+
self:SecureHookScript(Chattynator.API.GetHyperlinkHandler(), 'OnHyperlinkEnter');
83+
self:SecureHookScript(Chattynator.API.GetHyperlinkHandler(), 'OnHyperlinkLeave');
84+
end
8185
self:SecureHook(GameTooltip, "Show", "OnTooltipShow");
8286

8387
Util:ContinueOnAddonLoaded("Blizzard_InspectUI", function()

0 commit comments

Comments
 (0)