Fix font and status bars to use new API arguments
This commit is contained in:
1 parent
7f3269949f
commit
76851011fe
1 file changed
+8
-5
@@ -17,6 +17,11 @@
|
||||
local omif = select(2, ...)
|
||||
local types = omif.GetModule("types")
|
||||
|
||||
local NameFont = CreateFont("OicronFrames_NameFont")
|
||||
NameFont:SetFont("Interface\\AddOns\\OmicronFrames\\media\\fonts\\roboto\\Roboto-Bold.ttf", 13, "")
|
||||
NameFont:SetShadowColor(0, 0, 0)
|
||||
NameFont:SetShadowOffset(1, -1)
|
||||
|
||||
---@class StatusBar
|
||||
local StatusBar = types.StatusBar
|
||||
|
||||
@@ -101,13 +106,13 @@ function UnitFrame:Init(unit, config)
|
||||
|
||||
self.absorb = StatusBar:new(self, width, height, 1, true, texture_top)
|
||||
self.absorb:SetColor(unpack(colors.absorb))
|
||||
self.absorb:SetFillStyle("REVERSE")
|
||||
self.absorb:SetFillStyle(Enum.StatusBarFillStyle.Reverse)
|
||||
|
||||
self.shield = StatusBar:new(self, width, height, 1, true, texture_bot)
|
||||
self.shield:SetColor(unpack(colors.shield))
|
||||
self.shield:SetRange(0, 1)
|
||||
self.shield:SetValue(0.6)
|
||||
self.shield:SetFillStyle("REVERSE")
|
||||
self.shield:SetFillStyle(Enum.StatusBarFillStyle.Reverse)
|
||||
|
||||
self.auras = AuraList:new(self)
|
||||
|
||||
@@ -182,10 +187,8 @@ function UnitFrame:CreateName()
|
||||
local name = self.overlays:CreateFontString(nil, "BACKGROUND")
|
||||
self.name = name
|
||||
|
||||
name:SetFont("Interface\\AddOns\\OmicronFrames\\media\\fonts\\roboto\\Roboto-Bold.ttf", 13, "")
|
||||
name:SetFontObject(NameFont)
|
||||
name:SetTextColor(0.8, 0.6, 0.1)
|
||||
name:SetShadowColor(0, 0, 0)
|
||||
name:SetShadowOffset(1, -1)
|
||||
name:SetPoint("CENTER")
|
||||
name:SetText("")
|
||||
name:Show()
|
||||
|
||||
Reference in new issue
Block a user