From 27d75486e6f4f9cc8bcbbd97d08902d996b8ac9b Mon Sep 17 00:00:00 2001 From: Robert MacGregor Date: Sun, 24 Oct 2021 19:10:59 -0400 Subject: [PATCH] * [Editor] BugFix: Correct the inability to use function keys F1-F10 when running the editor. These keys were supposed to open a series of other editors. --- .../game/tools/worldEditor/scripts/EditorGui.ed.tscript | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Templates/BaseGame/game/tools/worldEditor/scripts/EditorGui.ed.tscript b/Templates/BaseGame/game/tools/worldEditor/scripts/EditorGui.ed.tscript index dca4d1f30..38b5c72d8 100644 --- a/Templates/BaseGame/game/tools/worldEditor/scripts/EditorGui.ed.tscript +++ b/Templates/BaseGame/game/tools/worldEditor/scripts/EditorGui.ed.tscript @@ -359,8 +359,9 @@ function EditorGui::addToEditorsMenu( %this, %displayName, %accel, %newPlugin ) if(!%alreadyExists) { - EditorsMenuList.add(%displayName TAB %accel TAB %newPlugin); - %windowMenu.addItem( %count, %displayName TAB %accel TAB %newPlugin ); + %pluginCommand = "EditorGui.setEditor(" @ %newPlugin @ ");"; + EditorsMenuList.add(%displayName TAB %accel TAB %pluginCommand); + %windowMenu.addItem( %count, %displayName TAB %accel TAB %pluginCommand); } return %accel;