thirdparty: add skin for bettercharacterstats

https://github.com/yutsuku/BetterCharacterStats
This commit is contained in:
shagu
2020-12-01 19:34:50 +01:00
parent 671bca94a0
commit 074b43d6d0
3 changed files with 15 additions and 0 deletions
+1
View File
@@ -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")
+1
View File
@@ -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")
+13
View File
@@ -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