Slothpala / RaidFrameSettings

GNU General Public License v2.0
4 stars 4 forks source link

Fixed font settings issues #43

Open excorp opened 4 months ago

excorp commented 4 months ago

When the game first loads, a call to SetFont() without the font loaded may return a nil value. After this point, if the font is loaded and you call SetFont() again with the same font, the actual font will not be set. So I made it so that when the SetFont() call fails, it calls SetFont() again with the default font. This resolved issue #27.

And when the Font module is disabled, I set it to a font that fits the alphabet.

Name = GameFontHighlightSmall StatusText = GameFontDisable

<FontString name="$parentName" inherits="GameFontHighlightSmall" parentKey="name" wordwrap="false"/>
<FontString name="$parentStatusText" inherits="GameFontDisable" parentKey="statusText"/>
excorp commented 4 months ago

I found a new method and applied it.

I applied the same method to #29