overbound / SonicTimeTwisted

Source Code for a Sonic Fan Game Made in Game Maker Studio
https://overboundstudio.com/
GNU General Public License v3.0
58 stars 16 forks source link

Handle changing the language while a Metal Sonic textbox is displayed #191

Closed AlexKhayrullin closed 2 years ago

AlexKhayrullin commented 2 years ago

When there's a Metal Sonic textbox (in SSZ or PPZ 2) , nothing prevents the player from pausing the game and changing the language while the textbox is scrolling/showing.

If the player does so, the displayed string remains in the previously selected language, the textbox remains sized accordingly, but the font changs to Arial (on Windows, that is) .

Upon changing the language, the game should consider the text to have been fully displayed and resize the text box and simply reload the font and display the text in its entirety. There's a 2 or 3 second-long pause between the text scrolling and the textbox closing, it should be good enough.