소스 검색

* [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.

Robert MacGregor 3 년 전
부모
커밋
27d75486e6
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      Templates/BaseGame/game/tools/worldEditor/scripts/EditorGui.ed.tscript

+ 3 - 2
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;