From 074b43d6d06bd3197002c40121c564b45ea8743f Mon Sep 17 00:00:00 2001 From: shagu Date: Tue, 1 Dec 2020 19:34:50 +0100 Subject: [PATCH] thirdparty: add skin for bettercharacterstats https://github.com/yutsuku/BetterCharacterStats --- api/config.lua | 1 + modules/gui.lua | 1 + modules/thirdparty-vanilla.lua | 13 +++++++++++++ 3 files changed, 15 insertions(+) diff --git a/api/config.lua b/api/config.lua index d6fcbfd1..74d45393 100644 --- a/api/config.lua +++ b/api/config.lua @@ -716,6 +716,7 @@ function pfUI:LoadConfig() pfUI:UpdateConfig("thirdparty", "sortbags", "enable", "1") pfUI:UpdateConfig("thirdparty", "bag_sort", "enable", "1") pfUI:UpdateConfig("thirdparty", "mrplow", "enable", "1") + pfUI:UpdateConfig("thirdparty", "bcs", "enable", "1") pfUI:UpdateConfig("thirdparty", "flightmap", "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 cc3a32ad..07c126d7 100644 --- a/modules/gui.lua +++ b/modules/gui.lua @@ -2178,6 +2178,7 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function () CreateConfig(nil, "SortBags", C.thirdparty.sortbags, "enable", "checkbox", nil, nil, nil, nil, "vanilla") CreateConfig(nil, "Bag_Sort", C.thirdparty.bag_sort, "enable", "checkbox", nil, nil, nil, nil, "tbc") CreateConfig(nil, "MrPlow", C.thirdparty.mrplow, "enable", "checkbox") + CreateConfig(nil, "BetterCharacterStats", C.thirdparty.bcs, "enable", "checkbox", nil, nil, nil, nil, "vanilla") 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") CreateConfig(nil, "FlightMap", C.thirdparty.flightmap, "enable", "checkbox", nil, nil, nil, nil, "vanilla") diff --git a/modules/thirdparty-vanilla.lua b/modules/thirdparty-vanilla.lua index 04b0fa44..5216ee60 100644 --- a/modules/thirdparty-vanilla.lua +++ b/modules/thirdparty-vanilla.lua @@ -842,6 +842,19 @@ pfUI:RegisterModule("thirdparty-vanilla", "vanilla", function() end end) + HookAddonOrVariable("BetterCharacterStats", function() + if C.thirdparty.bcs.enable == "0" then return end + StripTextures(BetterCharacterAttributesFrame) + + SkinDropDown(PlayerStatFrameLeftDropDown, nil, nil, nil, true) + PlayerStatFrameLeftDropDown.backdrop:SetPoint("TOPLEFT", 19, -2) + PlayerStatFrameLeftDropDown.backdrop:SetPoint("BOTTOMRIGHT", -19, 7) + + SkinDropDown(PlayerStatFrameRightDropDown, nil, nil, nil, true) + PlayerStatFrameRightDropDown.backdrop:SetPoint("TOPLEFT", 19, -2) + PlayerStatFrameRightDropDown.backdrop:SetPoint("BOTTOMRIGHT", -19, 7) + end) + HookAddonOrVariable("MyRolePlay", function() if C.thirdparty.myroleplay.enable == "0" then return end