Andromeda

Andromeda

26.4k Downloads

9.39修改冷却字体后出现报错~

Oo-Lucas-oO opened this issue · 6 comments

commented

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😀

commented

报错说明你改错了,把你改动的地方贴出来

commented

麦大我改的是这个地方。。。
QQ图片20210613214312

commented

你只改了这里么?报错的意思是无法正确的设定冷却字体,你有没有改动字体大小?
self.text:SetFont(font, size * fontScale, flag) 这一行引起的报错
font是字体,size是字体大小,flag是描边,报错是因为这3个属性中的某一个缺失或者错误

commented

端午节快乐~😀

是的大佬~~只改了86行,其他地方都没动。我今天更了9.42还是有这个报错,只要改回bold就好了。暂时没修改了。

commented

好奇怪的现象,我研究一下

commented

好滴暂时用bold字体了😊