From a7acf4e17762dfee4d5f9e1e28692279c7e28da0 Mon Sep 17 00:00:00 2001 From: Misa Date: Fri, 2 Feb 2024 16:06:11 -0800 Subject: [PATCH] Fix cycling menus in editor not updating While there's a check to recreate the menu if you cycle the language while in a menu, editor menus are a special case and need specific handling. --- desktop_version/src/KeyPoll.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/desktop_version/src/KeyPoll.cpp b/desktop_version/src/KeyPoll.cpp index b98e4348..091c8d80 100644 --- a/desktop_version/src/KeyPoll.cpp +++ b/desktop_version/src/KeyPoll.cpp @@ -6,6 +6,7 @@ #include "Alloc.h" #include "ButtonGlyphs.h" #include "Constants.h" +#include "Editor.h" #include "Exit.h" #include "Game.h" #include "GlitchrunnerMode.h" @@ -188,7 +189,8 @@ bool cycle_language(bool should_recompute_textboxes) should_recompute_textboxes = true; } - if (game.gamestate == TITLEMODE) + if (game.gamestate == TITLEMODE + || (game.gamestate == EDITORMODE && ed.state == EditorState_MENU)) { if (game.currentmenuname == Menu::translator_options_limitscheck) {