From 17c1933aa78cc810c1e40368038bc60365dcd6c9 Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 3 Jan 2021 14:53:06 +0100 Subject: [PATCH] thirdparty: add sheepwatch (tbc) skin --- api/config.lua | 1 + modules/gui.lua | 1 + modules/thirdparty-tbc.lua | 25 +++++++++++++++++++++++++ 3 files changed, 27 insertions(+) diff --git a/api/config.lua b/api/config.lua index 2c18fe37..517471a9 100644 --- a/api/config.lua +++ b/api/config.lua @@ -725,6 +725,7 @@ function pfUI:LoadConfig() pfUI:UpdateConfig("thirdparty", "bcs", "enable", "1") pfUI:UpdateConfig("thirdparty", "crafty", "enable", "1") pfUI:UpdateConfig("thirdparty", "flightmap", "enable", "1") + pfUI:UpdateConfig("thirdparty", "sheepwatch", "enable", "1") pfUI:UpdateConfig("thirdparty", "totemtimers", "enable", "1") pfUI:UpdateConfig("thirdparty", "theorycraft", "enable", "1") pfUI:UpdateConfig("thirdparty", "supermacro", "enable", "1") diff --git a/modules/gui.lua b/modules/gui.lua index 4c75e46c..e2183103 100644 --- a/modules/gui.lua +++ b/modules/gui.lua @@ -2187,6 +2187,7 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function () CreateConfig(nil, "BetterCharacterStats", C.thirdparty.bcs, "enable", "checkbox", nil, nil, nil, nil, "vanilla") CreateConfig(nil, "Crafty", C.thirdparty.crafty, "enable", "checkbox", nil, nil, nil, nil, "vanilla") CreateConfig(nil, "AckisRecipeList", C.thirdparty.ackis, "enable", "checkbox", nil, nil, nil, nil, "tbc") + CreateConfig(nil, "SheepWatch", C.thirdparty.sheepwatch, "enable", "checkbox", nil, nil, nil, nil, "tbc") CreateConfig(nil, "TotemTimers", C.thirdparty.totemtimers, "enable", "checkbox", nil, nil, nil, nil, "tbc") CreateConfig(nil, "DruidBar", C.thirdparty.druidbar, "enable", "checkbox", nil, nil, nil, nil, "tbc") CreateConfig(nil, "BCEPGP", C.thirdparty.bcepgp, "enable", "checkbox", nil, nil, nil, nil, "tbc") diff --git a/modules/thirdparty-tbc.lua b/modules/thirdparty-tbc.lua index 2b907a54..ed837040 100644 --- a/modules/thirdparty-tbc.lua +++ b/modules/thirdparty-tbc.lua @@ -193,6 +193,31 @@ pfUI:RegisterModule("thirdparty-tbc", "tbc", function () end end) + -- Sheep Watch Continued + -- https://www.curseforge.com/wow/addons/sheep-watch-continued/files/225593 + HookAddonOrVariable("SheepWatch", function() + if C.thirdparty.sheepwatch.enable == "0" then return end + + StripTextures(SheepWatch) + + if SheepWatchFrameStatusBar then + SheepWatchFrameStatusBar:SetStatusBarTexture(pfUI.media["img:bar"]) + SheepWatchFrameStatusBar:SetHeight(14) + CreateBackdrop(SheepWatchFrameStatusBar) + CreateBackdropShadow(SheepWatchFrameStatusBar) + end + + if SheepWatchText then + SheepWatchText:ClearAllPoints() + SheepWatchText:SetPoint("CENTER", 0, 4) + end + + if SheepWatchCounterText then + SheepWatchCounterText:ClearAllPoints() + SheepWatchCounterText:SetPoint("RIGHT", 0, 4) + end + end) + HookAddonOrVariable("Bag_Sort", function() if C.thirdparty.bag_sort.enable == "0" then return end