diff --git a/binaries/data/mods/official/audio/groups/lumbering.xml b/binaries/data/mods/official/audio/groups/lumbering.xml index 161a794d21..324254605a 100644 --- a/binaries/data/mods/official/audio/groups/lumbering.xml +++ b/binaries/data/mods/official/audio/groups/lumbering.xml @@ -17,7 +17,7 @@ 1 3 chop_20.ogg - /audio/resource/lumbering/ + audio/resource/lumbering/ chop_10.ogg chop_11.ogg chop_12.ogg diff --git a/binaries/data/mods/official/entities/template_unit_infantry.xml b/binaries/data/mods/official/entities/template_unit_infantry.xml index 3dab349896..67fed67708 100644 --- a/binaries/data/mods/official/entities/template_unit_infantry.xml +++ b/binaries/data/mods/official/entities/template_unit_infantry.xml @@ -102,7 +102,7 @@ infantry_walk.xml infantry_run.xml male_death.xml - chopping.xml + audio/resource/lumbering/lumbering.xml mining.xml diff --git a/binaries/data/mods/official/gui/test/functions_page_session_status_commands.js b/binaries/data/mods/official/gui/test/functions_page_session_status_commands.js index 2e506eb914..26c6ed38cd 100644 --- a/binaries/data/mods/official/gui/test/functions_page_session_status_commands.js +++ b/binaries/data/mods/official/gui/test/functions_page_session_status_commands.js @@ -480,11 +480,11 @@ function updateTab (tab, type, cellSheet, attribute, attribute2, arrayCells) { case "train": // TODO: Remove this item from the production queue if right-clicked. - issueCommand(selection, true, NMT_Produce, PRODUCTION_TRAIN, ""+(Crd[getCrd (this.name, true)].entity)); + issueCommand(selection, true, NMT_PRODUCE, PRODUCTION_TRAIN, ""+(Crd[getCrd (this.name, true)].entity)); break; case "research": // TODO: Remove this item from the production queue if right-clicked. - issueCommand(selection, true, NMT_Produce, PRODUCTION_RESEARCH, ""+(Crd[getCrd (this.name, true)].entity.name)); + issueCommand(selection, true, NMT_PRODUCE, PRODUCTION_RESEARCH, ""+(Crd[getCrd (this.name, true)].entity.name)); break; case "barter": // Buy a quantity of this resource if left-clicked. @@ -1024,7 +1024,7 @@ console.write (snStatusPaneCommand[tab][list].type); setCursor ("action-patrol"); selectLocation( function (x, y) { - issueCommand (selection, NMT_Patrol, x, y); + issueCommand (selection, NMT_PATROL, x, y); } ); break; @@ -1032,7 +1032,7 @@ console.write (snStatusPaneCommand[tab][list].type); setCursor ("action-attack"); selectEntity( function (target) { - issueCommand (selection, NMT_AttackMelee, target); + issueCommand (selection, NMT_ATTACK_MELEE, target); } ); break; diff --git a/binaries/data/mods/official/gui/test/functions_sim_entity.js b/binaries/data/mods/official/gui/test/functions_sim_entity.js index 258b55151f..45c7f57a6c 100644 --- a/binaries/data/mods/official/gui/test/functions_sim_entity.js +++ b/binaries/data/mods/official/gui/test/functions_sim_entity.js @@ -49,22 +49,22 @@ function worldClickHandler(event) switch (cmd) { // location target commands - case NMT_Goto: - case NMT_Run: - case NMT_Patrol: + case NMT_GOTO: + case NMT_RUN: + case NMT_PATROL: if (event.queued) { - cmd = NMT_AddWaypoint; + cmd = NMT_ADD_WAYPOINT; } args[0]=event.x; args[1]=event.y; break; - case NMT_AddWaypoint: + case NMT_ADD_WAYPOINT: args[0]=event.x; args[1]=event.y; break; // entity target commands - case NMT_Generic: + case NMT_GENERIC: args[0]=event.entity; if ( event.clicks == 1) args[1]=event.action; @@ -72,7 +72,7 @@ function worldClickHandler(event) args[1]=event.secondaryAction; break; //TODO: get rid of order() calls. - case NMT_NotifyRequest: + case NMT_NOTIFY_REQUEST: if (event.clicks == 1) action = event.action; else diff --git a/binaries/data/mods/official/scripts/entity_functions.js b/binaries/data/mods/official/scripts/entity_functions.js index 5887d26a2a..c2db6344d5 100644 --- a/binaries/data/mods/official/scripts/entity_functions.js +++ b/binaries/data/mods/official/scripts/entity_functions.js @@ -1174,14 +1174,14 @@ function entityEventTargetChanged( evt ) return; } - evt.defaultOrder = NMT_Goto; + evt.defaultOrder = NMT_GOTO; evt.defaultCursor = "arrow-default"; evt.defaultAction = ACTION_NONE; evt.secondaryAction = ACTION_NONE; evt.secondaryCursor = "arrow-default"; if ( this.actions && this.actions.run && this.actions.run.speed > 0 ) { - evt.secondaryOrder = NMT_Run; + evt.secondaryOrder = NMT_RUN; } if( evt.target && this.actions ) @@ -1191,11 +1191,11 @@ function entityEventTargetChanged( evt ) evt.target.traits.health && evt.target.traits.health.max != 0 ) { - evt.defaultOrder = NMT_Generic; + evt.defaultOrder = NMT_GENERIC; evt.defaultAction = this.getAttackAction( evt.target ); evt.defaultCursor = "action-attack"; - evt.secondaryOrder = NMT_Generic; + evt.secondaryOrder = NMT_GENERIC; evt.secondaryAction = this.getAttackAction( evt.target ); evt.secondaryCursor = "action-attack"; } @@ -1208,8 +1208,8 @@ function entityEventTargetChanged( evt ) if (evt.target.actions.move) { //Send an empty order - evt.defaultOrder = NMT_NotifyRequest; - evt.secondaryOrder = NMT_NotifyRequest; + evt.defaultOrder = NMT_NOTIFY_REQUEST; + evt.secondaryOrder = NMT_NOTIFY_REQUEST; evt.defaultAction = NOTIFY_ESCORT; evt.secondaryAction = NOTIFY_ESCORT; @@ -1218,12 +1218,12 @@ function entityEventTargetChanged( evt ) if ( canGather( this, evt.target ) ) { - evt.defaultOrder = NMT_Generic; + evt.defaultOrder = NMT_GENERIC; evt.defaultAction = ACTION_GATHER; // Set cursor (eg "action-gather-fruit"). evt.defaultCursor = "action-gather-" + evt.target.traits.supply.subType; - evt.secondaryOrder = NMT_Generic; + evt.secondaryOrder = NMT_GENERIC; evt.secondaryAction = ACTION_GATHER; // Set cursor (eg "action-gather-fruit"). evt.secondaryCursor = "action-gather-" + evt.target.traits.supply.subType; @@ -1231,22 +1231,22 @@ function entityEventTargetChanged( evt ) if ( canBuild( this, evt.target ) ) { - evt.defaultOrder = NMT_Generic; + evt.defaultOrder = NMT_GENERIC; evt.defaultAction = ACTION_BUILD; evt.defaultCursor = "action-build"; - evt.secondaryOrder = NMT_Generic; + evt.secondaryOrder = NMT_GENERIC; evt.secondaryAction = ACTION_BUILD; evt.secondaryCursor = "action-build"; } if ( canRepair( this, evt.target ) ) { - evt.defaultOrder = NMT_Generic; + evt.defaultOrder = NMT_GENERIC; evt.defaultAction = ACTION_REPAIR; evt.defaultCursor = "action-build"; - evt.secondaryOrder = NMT_Generic; + evt.secondaryOrder = NMT_GENERIC; evt.secondaryAction = ACTION_REPAIR; evt.secondaryCursor = "action-build"; }