readme: remove obsolete discord button, add donate

This commit is contained in:
shagu
2021-10-08 16:54:05 +02:00
parent d2b0409616
commit 452b7e15bb
3 changed files with 23 additions and 14 deletions
+20 -10
View File
@@ -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()