From 452b7e15bb629e49c5218a0f5670fc9049a33fd8 Mon Sep 17 00:00:00 2001 From: shagu Date: Fri, 8 Oct 2021 16:54:05 +0200 Subject: [PATCH] readme: remove obsolete discord button, add donate --- .github/FUNDING.yml | 2 ++ README.md | 5 +---- modules/gui.lua | 30 ++++++++++++++++++++---------- 3 files changed, 23 insertions(+), 14 deletions(-) create mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 00000000..4cb83f66 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,2 @@ +github: [shagu] +ko_fi: shagu diff --git a/README.md b/README.md index d213dbb2..bc3b072b 100644 --- a/README.md +++ b/README.md @@ -68,11 +68,8 @@ The term "*pfui!*" is german and simply stands for "*pooh!*", because I'm not a big fan of creating configuration UI's, especially not via the Wow-API (you might have noticed that in ShaguUI). -~~**Is there a discord channel?**~~ -~~Yes there is one: [Discord Invite](https://discord.gg/QTRKanu)~~ - **How can I donate?** -You can't. I'm doing this for fun. Enjoy! +You can donate via [GitHub](https://github.com/sponsors/shagu) or [Ko-fi](https://ko-fi.com/shagu) **How do I report a Bug?** Please provide as much information as possible in the [Bugtracker](https://github.com/shagu/pfUI/issues). diff --git a/modules/gui.lua b/modules/gui.lua index 4867c4cf..2c35ddb4 100644 --- a/modules/gui.lua +++ b/modules/gui.lua @@ -1345,19 +1345,29 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function () parent.lang:SetText(lang) end) - local discord = CreateFrame("Button", nil, this) - discord:SetPoint("TOPLEFT", 150, -335) - discord:SetWidth(125) - discord:SetHeight(20) - discord:SetText(T["Join Discord"]) - discord:SetScript("OnClick", function() - pfUI.chat.urlcopy.CopyText("https://discord.gg/QTRKanu") + local donate = CreateFrame("Button", nil, this) + donate:SetPoint("TOPLEFT", 130, -335) + donate:SetWidth(100) + donate:SetHeight(20) + donate:SetText(T["Donate"]) + donate:SetScript("OnClick", function() + pfUI.chat.urlcopy.CopyText("https://ko-fi.com/shagu") end) - SkinButton(discord) + SkinButton(donate) + + local github = CreateFrame("Button", nil, this) + github:SetPoint("TOPLEFT", 240, -335) + github:SetWidth(100) + github:SetHeight(20) + github:SetText(T["GitHub"]) + github:SetScript("OnClick", function() + pfUI.chat.urlcopy.CopyText("https://github.com/shagu/pfUI") + end) + SkinButton(github) local website = CreateFrame("Button", nil, this) - website:SetPoint("TOPLEFT", 300, -335) - website:SetWidth(125) + website:SetPoint("TOPLEFT", 350, -335) + website:SetWidth(100) website:SetHeight(20) website:SetText(T["Website"]) website:SetScript("OnClick", function()