9.39修改冷却字体后出现报错~
Oo-Lucas-oO opened this issue · 6 comments
Hi麦大~发现你又推送了9.39,然后我按照之前的路径修改了冷却字体,然后一直出现这个错误0 0:
Message: ...nterface\AddOns\FreeUI\modules\cooldown\cooldown.lua:46: Usage: :SetFont("font", fontHeight [, flags])
Time: Sun Jun 13 10:06:51 2021
Count: 1
Stack: ...nterface\AddOns\FreeUI\modules\cooldown\cooldown.lua:46: Usage: :SetFont("font", fontHeight [, flags])
[string "=[C]"]: in function SetFont' [string "@Interface\AddOns\FreeUI\modules\cooldown\cooldown.lua"]:46: in function
OnSizeChanged'
[string "@interface\AddOns\FreeUI\modules\cooldown\cooldown.lua"]:99: in function OnCreate' [string "@Interface\AddOns\FreeUI\modules\cooldown\cooldown.lua"]:121: in function <...nterface\AddOns\FreeUI\modules\cooldown\cooldown.lua:106> [string "=[C]"]: in function
SetCooldown'
[string "@interface\FrameXML\Cooldown.lua"]:5: in function CooldownFrame_Set' [string "@Interface\FrameXML\ActionButton.lua"]:584: in function <Interface\FrameXML\ActionButton.lua:541> [string "=[C]"]: in function
ActionButton_UpdateCooldown'
[string "@interface\FrameXML\ActionButton.lua"]:352: in function <Interface\FrameXML\ActionButton.lua:332>
[string "=[C]"]: ?
[string "=[C]"]: in function Update' [string "@Interface\FrameXML\ActionButton.lua"]:328: in function <Interface\FrameXML\ActionButton.lua:323> [string "=[C]"]: in function
SetAttribute'
[string "@interface\FrameXML\ActionButton.lua"]:457: in function ShowGrid' [string "@Interface\FrameXML\MultiActionBars.lua"]:137: in function
MultiActionBar_UpdateGrid'
[string "@interface\FrameXML\MultiActionBars.lua"]:123: in function MultiActionBar_ShowAllGrids' [string "@Interface\FrameXML\MultiActionBars.lua"]:146: in function <Interface\FrameXML\MultiActionBars.lua:144> [string "=[C]"]: in function
MultiActionBar_UpdateGridVisibility'
[string "*:OnLoad"]:4: in function `setFunc'
[string "@interface\FrameXML\InterfaceOptionsPanels.lua"]:1164: in function <Interface\FrameXML\InterfaceOptionsPanels.lua:1157>
Locals: (*temporary) = {
0 =
}
(*temporary) = nil
(*temporary) = -1131.369663
(*temporary) = ""
似乎是缩放的问题??不知道怎么修正下。。。只加载了freeui😀
你只改了这里么?报错的意思是无法正确的设定冷却字体,你有没有改动字体大小?
self.text:SetFont(font, size * fontScale, flag)
这一行引起的报错
font
是字体,size
是字体大小,flag
是描边,报错是因为这3个属性中的某一个缺失或者错误