use fixed size
Ou Junhui [07-04-21 - 13:20]
diff --git a/oUF_Simple/core/functions.lua b/oUF_Simple/core/functions.lua
index 14b536e..1010006 100644
--- a/oUF_Simple/core/functions.lua
+++ b/oUF_Simple/core/functions.lua
@@ -437,23 +437,22 @@ local function CreateRaidDebuffs(self)
if not self.cfg.debuffwatch or not self.cfg.debuffwatch.enabled then return end
local cfg = self.cfg.debuffwatch
local frame = CreateFrame("Frame", nil, self)
- local size = self.Health:GetHeight() - 4
SetPoint(frame,self.Health,cfg.point)
- frame:SetSize(size,size)
+ frame:SetSize(cfg.size,cfg.size)
frame:SetFrameLevel(self.Health:GetFrameLevel() + 10)
frame.Backdrop = CreateBackdrop(frame) -- create backdrop
frame.icon = frame:CreateTexture(nil, "ARTWORK")
frame.icon:SetTexCoord(0.1, 0.9, 0.1, 0.9)
frame.count = frame:CreateFontString(nil, "OVERLAY")
- frame.count:SetFont(L.C.fonts.expressway, size/2, "OUTLINE")
+ frame.count:SetFont(L.C.fonts.expressway, cfg.size/2, "OUTLINE")
frame.count:SetShadowColor(0,0,0,0.6)
frame.count:SetShadowOffset(1,-1)
frame.count:ClearAllPoints()
- frame.count:SetPoint("BOTTOMRIGHT", size/10, -size/10)
+ frame.count:SetPoint("BOTTOMRIGHT", cfg.size/10, -cfg.size/10)
frame.onlyMatchSpellID = true
frame.showDispellableDebuff = true
frame.time = frame:CreateFontString(nil, "OVERLAY")
- frame.time:SetFont(L.C.fonts.expressway, size/1.65, "OUTLINE")
+ frame.time:SetFont(L.C.fonts.expressway, cfg.size/1.65, "OUTLINE")
frame.time:SetPoint("CENTER",frame,1,0)
return frame
end
diff --git a/oUF_SimpleConfig/raid.lua b/oUF_SimpleConfig/raid.lua
index 0153d49..93dd4e1 100644
--- a/oUF_SimpleConfig/raid.lua
+++ b/oUF_SimpleConfig/raid.lua
@@ -59,6 +59,7 @@ L.C.raid = {
filterOnly = true,
matchByName = false,
point = {"CENTER","CENTER",0,0},
+ size = 22,
},
setup = {
template = nil,