فهرست منبع

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