Changes

Jump to navigation Jump to search
920 bytes added ,  16:54, 15 February 2023
no edit summary
Line 90: Line 90:     
: Hi! That forum post shows release notes for 1.5.6.32/33/35, and silently skips 1.5.6.34. It's not unusual for an update to have missing or incomplete release notes, which is one of the reasons the wiki isn't just a copy & paste of the official notes. It does link to the announcement (when there is one) so you can see the original release notes (if any). I added 1.5.6.35 to the wiki and asked Magically Clueless to add version numbers to her post though, which should both reduce confusion. Thanks for pointing it out! —<small>[[User:Pathoschild|Pathoschild]] ([[User talk:Pathoschild|talk]]) 17:53, 11 January 2023 (UTC)</small>
 
: Hi! That forum post shows release notes for 1.5.6.32/33/35, and silently skips 1.5.6.34. It's not unusual for an update to have missing or incomplete release notes, which is one of the reasons the wiki isn't just a copy & paste of the official notes. It does link to the announcement (when there is one) so you can see the original release notes (if any). I added 1.5.6.35 to the wiki and asked Magically Clueless to add version numbers to her post though, which should both reduce confusion. Thanks for pointing it out! —<small>[[User:Pathoschild|Pathoschild]] ([[User talk:Pathoschild|talk]]) 17:53, 11 January 2023 (UTC)</small>
 +
 +
 +
 +
==SpriteText font not loaded when changing to custom language==
 +
'''To Reproduce'''<br/>
 +
Suppose the custom language is Thai, we want to prove Thai's SpriteText is not loaded.
 +
# Start game with any language other than Thai.
 +
# In language select menu, select Thai.
 +
# Now current language is Thai.
 +
# You find those text drawn with <samp>SpriteText::drawString</samp> are gone.<br/>
 +
<br/>
 +
'''To Fix'''<br/>
 +
Add following case statement to <samp>SpriteText::OnLanguageChange</samp> method's switch-case statement.
 +
: <syntaxhighlight lang="c#">
 +
case LocalizedContentManager.LanguageCode.mod:
 +
    SpriteText.FontFile = SpriteText.loadFont(LocalizedContentManager.CurrentModLanguage.FontFile);
 +
    SpriteText.fontPixelZoom = LocalizedContentManager.CurrentModLanguage.FontPixelZoom;
 +
    break;
 +
</syntaxhighlight>
 +
: --[[User:臭美香喷喷|臭美香喷喷]] ([[User talk:臭美香喷喷|talk]]) 16:54, 15 February 2023 (UTC)

Navigation menu