use correct scale
Ou Junhui [09-26-21 - 12:38]
diff --git a/rSkin/modules/BigWigs.lua b/rSkin/modules/BigWigs.lua
index 5d4fc08..fb8c0de 100644
--- a/rSkin/modules/BigWigs.lua
+++ b/rSkin/modules/BigWigs.lua
@@ -81,7 +81,7 @@ local w, h = unpack(oUF_SimpleConfig.target.size)
local styleData = {
apiVersion = 1,
version = 10,
- barHeight = h,
+ barHeight = h*oUF_SimpleConfig.globalscale,
fontSizeNormal = 10,
fontSizeEmphasized = 11,
GetSpacing = function(bar) return bar:GetHeight()+6 end,
@@ -93,9 +93,9 @@ local styleData = {
local function SkinBigWigsPlugins()
if not IsAddOnLoaded("BigWigs_Plugins") then return end
if not BigWigsAPI then return end
-
+
BigWigsAPI:RegisterBarStyle(styleName, styleData)
-
+
-- Force to use style
local pending = true
hooksecurefunc(BigWigsAPI, "GetBarStyle", function()
diff --git a/rSkin/modules/Details.lua b/rSkin/modules/Details.lua
index dc64013..a0b6720 100644
--- a/rSkin/modules/Details.lua
+++ b/rSkin/modules/Details.lua
@@ -13,6 +13,7 @@ local function SetupInstance(instance)
instance:SetBackgroundAlpha(0)
instance:InstanceColor(0, 0, 0, 0)
instance:SetBarFollowPlayer(true)
+ instance:SetWindowScale(oUF_SimpleConfig.globalscale, true)
-- instance:MenuAnchor(16, 3)
-- instance:ToolbarMenuButtonsSize(1)
instance:AttributeMenu(false)
@@ -29,8 +30,8 @@ local function SetupInstance(instance)
true, -- start after icon
3, -- bar space
"" -- custom texture file, u can use oUF_SimpleConfig.textures.statusbar or "" as default
- )
-
+ )
+
instance:SetBarBackdropSettings(true, 1, {0,0,0,1}, "1 Pixel")
instance:SetBarTextSettings(12, "Expressway", {1,1,1,1}, false, false, true, true)
instance:SetBarSpecIconSettings(false)