-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 7434094
Showing
3 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: CI | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Replace toc-versions | ||
uses: Numynum/ToCVersions@master | ||
|
||
- name: Create Retail Package | ||
uses: BigWigsMods/packager@master | ||
env: | ||
CF_API_KEY: ${{ secrets.CF_API_KEY }} | ||
GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
## Interface: 100000 | ||
## Title: Talent Tree Tweaks | ||
## Author: Numy | ||
## Notes: Various improvements and addition to the Dragonflight talent tree UI | ||
## Version: @project-version@ | ||
## X-Curse-Project-ID: 678792 | ||
|
||
core.lua |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
local name, TTT = ...; | ||
|
||
--@debug@ | ||
_G.TalentTreeTweaks = TTT; | ||
if not _G.TTT then _G.TTT = TTT; end | ||
--@end-debug@ | ||
|
||
--- @class Main | ||
local Main = {} | ||
if not Main then return; end | ||
TTT.Main = Main; | ||
|
||
function Main:AlreadyAdded(textLine, tooltip) | ||
if textLine == nil then | ||
return false | ||
end | ||
|
||
for i = 1,15 do | ||
local tooltipFrame = _G[tooltip:GetName() .. "TextLeft" .. i] | ||
local textRight = _G[tooltip:GetName().."TextRight"..i] | ||
local text, right | ||
if tooltipFrame then text = tooltipFrame:GetText() end | ||
if text and string.find(text, textLine, 1, true) then return true end | ||
if textRight then right = textRight:GetText() end | ||
if right and string.find(right, textLine, 1, true) then return true end | ||
end | ||
end | ||
|
||
function Main:AddItemToTooltip(name, value, tooltip) | ||
local text = "|cFFEE6161"..name.."|r " .. (value or 'nil') | ||
if(not self:AlreadyAdded(text, tooltip)) then | ||
tooltip:AddLine(text) | ||
end | ||
tooltip:Show() | ||
end | ||
|
||
EventRegistry:RegisterCallback("TalentDisplay.TooltipCreated", function(self, button, tooltip) | ||
self:AddItemToTooltip('NodeId', button.GetNodeID and button:GetNodeID() or button:GetNodeInfo().ID, tooltip) | ||
self:AddItemToTooltip('EntryId', button:GetEntryID(), tooltip) | ||
self:AddItemToTooltip('SpellId', button:GetSpellID(), tooltip) | ||
end, Main) |