diff --git a/client/scripts/debug-nodcs.bat b/client/scripts/debug-nodcs.bat index 4d109cc0..300fd4e7 100644 --- a/client/scripts/debug-nodcs.bat +++ b/client/scripts/debug-nodcs.bat @@ -1,6 +1,10 @@ +cd scripts +call ./copy.bat +cd .. + REM create a "fake" dcs Saved Games folder mkdir "%temp%\DCS Olympus\dcs" echo F|xcopy /Y "..\olympus.json" "%temp%\DCS Olympus\dcs\Config\olympus.json" echo D|xcopy /Y /S /E "..\databases" "%temp%\DCS Olympus\dcs\Mods\Services\Olympus\databases" -concurrently --kill-others "node ./bin/demo --config \"%temp%\DCS Olympus\dcs\Config\olympus.json\"" "npm run watch" "nodemon --ignore ./public/databases/ ./bin/www -- --config \"%temp%\DCS Olympus\dcs\Config\olympus.json\"" \ No newline at end of file +concurrently --kill-others "node ./bin/demo --config \"%temp%\DCS Olympus\dcs\Config\olympus.json\"" "npm run watch" "nodemon --ignore ./public/databases/ ./bin/www -- --config \"%temp%\DCS Olympus\dcs\Config\olympus.json\"" \ No newline at end of file diff --git a/client/scripts/debug.bat b/client/scripts/debug.bat index ac341aa0..70a6dad9 100644 --- a/client/scripts/debug.bat +++ b/client/scripts/debug.bat @@ -1,3 +1,7 @@ @echo off +cd scripts +call ./copy.bat +cd .. + set /p "config=Enter DCS Saved Games folder location: " concurrently --kill-others "npm run watch" "nodemon --ignore ./public/databases/ ./bin/www -- --config \"%config%\Config\Olympus.json\"" \ No newline at end of file diff --git a/client/src/controls/unitspawnmenu.ts b/client/src/controls/unitspawnmenu.ts index 14743167..830f3224 100644 --- a/client/src/controls/unitspawnmenu.ts +++ b/client/src/controls/unitspawnmenu.ts @@ -39,6 +39,7 @@ export abstract class UnitSpawnMenu { #countryCodes: any; #orderByRole: boolean; #showLoadout: boolean = true; + #showSkill: boolean = true; #showAltitudeSlider: boolean = true; /* Controls */ @@ -233,6 +234,7 @@ export abstract class UnitSpawnMenu { /* Reset the spawn options */ this.spawnOptions.name = ""; this.spawnOptions.loadout = undefined; + this.spawnOptions.skill = "Excellent"; this.spawnOptions.liveryID = undefined; this.#computeSpawnPoints(); @@ -530,6 +532,10 @@ export abstract class UnitSpawnMenu { this.#showLoadout = showLoadout; } + setShowSkill(showSkill: boolean) { + this.#showSkill = showSkill + } + setShowAltitudeSlider(showAltitudeSlider: boolean) { this.#showAltitudeSlider = showAltitudeSlider; }