From d7111bc851cbb147453e593f27fffe2561e3fe0c Mon Sep 17 00:00:00 2001 From: Daniel Buckmaster Date: Thu, 29 Jan 2015 21:23:16 +1100 Subject: [PATCH] Fix missing scripts and incorrect variable. --- Templates/Empty/game/tools/navEditor/NavEditorConsoleDlg.gui | 2 +- Templates/Empty/game/tools/navEditor/main.cs | 2 -- Templates/Full/game/tools/navEditor/NavEditorConsoleDlg.gui | 2 +- Templates/Full/game/tools/navEditor/main.cs | 2 -- 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Templates/Empty/game/tools/navEditor/NavEditorConsoleDlg.gui b/Templates/Empty/game/tools/navEditor/NavEditorConsoleDlg.gui index 401e0e3c7..3f59069a3 100644 --- a/Templates/Empty/game/tools/navEditor/NavEditorConsoleDlg.gui +++ b/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"); } diff --git a/Templates/Empty/game/tools/navEditor/main.cs b/Templates/Empty/game/tools/navEditor/main.cs index cf55a4280..0461b6058 100644 --- a/Templates/Empty/game/tools/navEditor/main.cs +++ b/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"); diff --git a/Templates/Full/game/tools/navEditor/NavEditorConsoleDlg.gui b/Templates/Full/game/tools/navEditor/NavEditorConsoleDlg.gui index 401e0e3c7..3f59069a3 100644 --- a/Templates/Full/game/tools/navEditor/NavEditorConsoleDlg.gui +++ b/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"); } diff --git a/Templates/Full/game/tools/navEditor/main.cs b/Templates/Full/game/tools/navEditor/main.cs index cf55a4280..0461b6058 100644 --- a/Templates/Full/game/tools/navEditor/main.cs +++ b/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");