diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..0c593be --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,4 @@ +# Funding platforms shown behind the repository's Sponsor button. +# https://docs.github.com/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/displaying-a-sponsor-button-in-your-repository + +github: jcoffey-dev diff --git a/Core.lua b/Core.lua index 8d4a655..1878201 100644 --- a/Core.lua +++ b/Core.lua @@ -473,8 +473,10 @@ SlashCmdList.FOREVERGUIDE = function(msg) Print("progress reset."); ns.Fire("Refresh") elseif msg == "resetpos" then ns.char.pos = nil; ns.Fire("ResetPosition") + elseif msg == "support" or msg == "donate" then + Print("ForeverGuide is free. To support Coffey Labs: " .. ns.SUPPORT); ns.ShowLink(ns.SUPPORT) else Print("/fg - show/hide tracker /fg guide | talents | spec | gear | prof | gold | dungeons | settings") - Print("/fg next | prev /fg wp - waypoints for this step /fg reset /fg resetpos") + Print("/fg next | prev /fg wp - waypoints for this step /fg reset /fg resetpos /fg support") end end diff --git a/Init.lua b/Init.lua index 7497565..34f7e25 100644 --- a/Init.lua +++ b/Init.lua @@ -4,6 +4,7 @@ local ADDON, ns = ... ns.ADDON = ADDON ns.AUTHOR = "Coffey Labs LLC" ns.WEBSITE = "https://coffeylabs.org" +ns.SUPPORT = "https://coffeylabs.org/support/" ns.BUILDS, ns.SPELLS, ns.SPECGUIDES, ns.PROFESSIONS = {}, {}, {}, {} ns.ALLSTEPS, ns.GEAR = {}, {} diff --git a/README.md b/README.md index a8521e4..3d115b3 100644 --- a/README.md +++ b/README.md @@ -37,16 +37,18 @@ type `/reload`. ## Commands -| Command | Opens | +| Command | Does | |---|---| -| `/fg` | The full guide window | -| `/fg quests` | Quest log tab | -| `/fg talents`, `/fg spec`, `/fg gear`, `/fg prof` | Those tabs | -| `/fg gold`, `/fg dungeons`, `/fg settings` | Those tabs | +| `/fg` | Show or hide the tracker | +| `/fg guide` | Open the full guide window | +| `/fg quests` | Open the quest log tab | +| `/fg talents`, `/fg spec`, `/fg gear`, `/fg prof` | Open those tabs | +| `/fg gold`, `/fg dungeons`, `/fg settings` | Open those tabs | | `/fg next`, `/fg prev` | Move between route steps | | `/fg wp` | Set a waypoint for the current step | | `/fg sync` | Re-read completed quests | | `/fg resetpos` | Reset window positions | +| `/fg support` | Show the link to our funding options | The minimap button and the addon compartment open the guide (left-click) or toggle the tracker (right-click). @@ -68,6 +70,13 @@ Bundled libraries: LibStub, CallbackHandler-1.0, HereBeDragons-2.0, LibDataBroke and LibDBIcon-1.0, each under its own license. Route, quest and gear data were compiled from public WoW Forever guides and databases. +## Support the project + +ForeverGuide is free and will stay free. If it saves you time, you can help keep +Coffey Labs going through GitHub Sponsors or Liberapay. Our +[funding options](https://coffeylabs.org/support/) page lists both, along with what +the money pays for. In game, `/fg support` shows the link. + ## License MIT. See [LICENSE](LICENSE). Copyright (c) 2026 Coffey Labs LLC. diff --git a/UI/Extras.lua b/UI/Extras.lua index 6893fb8..6658c89 100644 --- a/UI/Extras.lua +++ b/UI/Extras.lua @@ -152,6 +152,7 @@ ns.On("Login", function() tt:AddLine("Left-click: full guide", 0.6, 0.6, 0.6) tt:AddLine("Right-click: show/hide tracker", 0.6, 0.6, 0.6) tt:AddLine("by Coffey Labs LLC - coffeylabs.org", 0.4, 0.73, 1) + tt:AddLine("Support us: coffeylabs.org/support (/fg support)", 0.4, 0.73, 1) end, }) DBIcon:Register("ForeverGuide", obj, ns.db.minimap) diff --git a/UI/Guide.lua b/UI/Guide.lua index 89608df..e41046d 100644 --- a/UI/Guide.lua +++ b/UI/Guide.lua @@ -515,10 +515,14 @@ local function BuildSettings() local pos = UI.Button(settingsFrame, "Reset tracker position", 170, function() SlashCmdList.FOREVERGUIDE("resetpos") end) pos:SetPoint("LEFT", reset, "RIGHT", 8, 0) site:SetPoint("LEFT", pos, "RIGHT", 8, 0) + y = y + 30 + local support = UI.Button(settingsFrame, "Support Coffey Labs", 170, function() ns.ShowLink(ns.SUPPORT) end) + support:SetPoint("TOPLEFT", 0, -y) + UI.Tooltip(support, "Support Coffey Labs", "ForeverGuide is free. Click to copy the link to our funding options (" .. ns.SUPPORT .. ").") y = y + 36 local info = UI.Text(settingsFrame, "GameFontDisableSmall") info:SetPoint("TOPLEFT", 0, -y); info:SetWidth(520) - info:SetText("ForeverGuide by Coffey Labs LLC - " .. ns.WEBSITE .. "\nCommands: /fg (toggle tracker), /fg guide, /fg quests, /fg talents, /fg spec, /fg gear, /fg prof, /fg gold, /fg dungeons, /fg sync, /fg wp, /fg next, /fg prev, /fg reset.\nData: wowhandbook.com, icy-veins.com, warcrafttavern.com, warcraftmaps.com, topbuilds.gg (Nov 2026). Level bands are approximate.") + info:SetText("ForeverGuide by Coffey Labs LLC - " .. ns.WEBSITE .. "\nCommands: /fg (toggle tracker), /fg guide, /fg quests, /fg talents, /fg spec, /fg gear, /fg prof, /fg gold, /fg dungeons, /fg sync, /fg wp, /fg next, /fg prev, /fg reset, /fg support.\nData: wowhandbook.com, icy-veins.com, warcrafttavern.com, warcraftmaps.com, topbuilds.gg (Nov 2026). Level bands are approximate.") end ---------------------------------------------------------------------------