Add setfont scripting command

The <font> in the level file is basically the starting font, but it can
be changed at any time via scripting.
This commit is contained in:
Dav999-v
2023-01-20 04:57:06 +01:00
committed by Misa Elizabeth Kai
parent 7db0e73109
commit cc6b00a711
4 changed files with 21 additions and 1 deletions

View File

@@ -7185,6 +7185,9 @@ void Game::returntoeditor(void)
ed.notedelay = 0;
ed.roomnamehide = 0;
// Might've been changed in a script
font::set_custom_font(cl.level_font_name.c_str());
DEFER_CALLBACK(resetbg);
music.fadeout();
//If warpdir() is used during playtesting, we need to set it back after!