Explorar o código

Fix missing scripts and incorrect variable.

Daniel Buckmaster %!s(int64=10) %!d(string=hai) anos
pai
achega
d7111bc851

+ 1 - 1
Templates/Empty/game/tools/navEditor/NavEditorConsoleDlg.gui

@@ -137,7 +137,7 @@ function NavEditorConsoleListener::onNavMeshUpdate(%this, %data)
       %minutes = mFloor(%seconds / 60);
       %seconds -= %minutes * 60;
       %message = "Built NavMesh" SPC getWord(%data, 0) SPC "in" SPC %minutes @ "m" SPC mRound(%seconds) @ "s";
-      if($Nav::Editor::playSoundWhenDone)
+      if(NavEditorGui.playSoundWhenDone)
       {
          sfxPlayOnce(Audio2D, "tools/navEditor/done.wav");
       }

+ 0 - 2
Templates/Empty/game/tools/navEditor/main.cs

@@ -37,8 +37,6 @@ function initializeNavEditor()
    exec("./NavEditor.cs");
    exec("./NavEditorGui.gui");
    exec("./NavEditorToolbar.gui");
-   exec("./NavEditorGui.cs");
-   exec("./NavEditorAboutDlg.gui");
    exec("./NavEditorConsoleDlg.gui");
    exec("./CreateNewNavMeshDlg.gui");
 

+ 1 - 1
Templates/Full/game/tools/navEditor/NavEditorConsoleDlg.gui

@@ -137,7 +137,7 @@ function NavEditorConsoleListener::onNavMeshUpdate(%this, %data)
       %minutes = mFloor(%seconds / 60);
       %seconds -= %minutes * 60;
       %message = "Built NavMesh" SPC getWord(%data, 0) SPC "in" SPC %minutes @ "m" SPC mRound(%seconds) @ "s";
-      if($Nav::Editor::playSoundWhenDone)
+      if(NavEditorGui.playSoundWhenDone)
       {
          sfxPlayOnce(Audio2D, "tools/navEditor/done.wav");
       }

+ 0 - 2
Templates/Full/game/tools/navEditor/main.cs

@@ -37,8 +37,6 @@ function initializeNavEditor()
    exec("./NavEditor.cs");
    exec("./NavEditorGui.gui");
    exec("./NavEditorToolbar.gui");
-   exec("./NavEditorGui.cs");
-   exec("./NavEditorAboutDlg.gui");
    exec("./NavEditorConsoleDlg.gui");
    exec("./CreateNewNavMeshDlg.gui");