Skip to content

Commit

Permalink
- added styling of SpellBookTooltip for addon ElvUI
Browse files Browse the repository at this point in the history
  • Loading branch information
frozn committed May 25, 2024
1 parent 508c9a9 commit 0bece03
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
11 changes: 8 additions & 3 deletions TipTac/ttCore.lua
Original file line number Diff line number Diff line change
Expand Up @@ -731,10 +731,9 @@ TT_ExtendedConfig.tipsToModify = {
},

-- 3rd party addon tooltips
["RaiderIO"] = {
["ElvUI"] = {
frames = {
["RaiderIO_ProfileTooltip"] = { applyAppearance = true, applyScaling = true, applyAnchor = false, waitSecondsForLookupFrameName = 1 },
["RaiderIO_SearchTooltip"] = { applyAppearance = true, applyScaling = true, applyAnchor = false, waitSecondsForLookupFrameName = 1 }
["ElvUI_SpellBookTooltip"] = { applyAppearance = true, applyScaling = true, applyAnchor = true }
}
},
["OPie"] = {
Expand All @@ -749,6 +748,12 @@ TT_ExtendedConfig.tipsToModify = {
});
end
end
},
["RaiderIO"] = {
frames = {
["RaiderIO_ProfileTooltip"] = { applyAppearance = true, applyScaling = true, applyAnchor = false, waitSecondsForLookupFrameName = 1 },
["RaiderIO_SearchTooltip"] = { applyAppearance = true, applyScaling = true, applyAnchor = false, waitSecondsForLookupFrameName = 1 }
}
}
};

Expand Down
15 changes: 15 additions & 0 deletions TipTacItemRef/ttItemRef.lua
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ local tipsToModify = {
"PerksProgramTooltip",
--"EncounterJournalTooltip", -- commented out for embedded tooltips, see description in tt:SetPadding()
-- 3rd party addon tooltips
"ElvUI_SpellBookTooltip",
"PlaterNamePlateAuraTooltip"
};

Expand All @@ -153,6 +154,7 @@ local addOnsLoaded = {
["Blizzard_PetBattleUI"] = false,
["Blizzard_PlayerChoice"] = false,
["Blizzard_PVPUI"] = false,
["ElvUI"] = false,
["WorldQuestTracker"] = false
};

Expand Down Expand Up @@ -2172,6 +2174,19 @@ function ttif:ADDON_LOADED(event, addOnName, containsBindings)
addOnsLoaded["Blizzard_PVPUI"] = true;
end
end
-- now ElvUI exists
if (addOnName == "ElvUI") or ((addOnName == MOD_NAME) and (LibFroznFunctions:IsAddOnFinishedLoading("ElvUI")) and (not addOnsLoaded['ElvUI'])) then
-- Hook Tips & Apply Settings
self:ApplyHooksToTips({
"ElvUI_SpellBookTooltip"
}, true, true);

self:OnApplyConfig();

if (addOnName == MOD_NAME) then
addOnsLoaded["ElvUI"] = true;
end
end
-- now WorldQuestTrackerAddon exists
if (addOnName == "WorldQuestTracker") or ((addOnName == MOD_NAME) and (LibFroznFunctions:IsAddOnFinishedLoading("WorldQuestTracker")) and (not addOnsLoaded['WorldQuestTracker'])) then
local WQTThooked = {}; -- see WorldQuestTracker.GetOrCreateTrackerWidget() in "WorldQuestTracker/WorldQuestTracker_Tracker.lua"
Expand Down

0 comments on commit 0bece03

Please sign in to comment.