mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Moved audio sink toggle to unit control panel
This commit is contained in:
@@ -849,20 +849,7 @@ export abstract class Unit extends CustomMarker {
|
||||
if (targetPosition) getApp().getUnitsManager().addDestination(targetPosition, false, 0, units);
|
||||
}
|
||||
);
|
||||
|
||||
contextActionSet.addContextAction(
|
||||
this,
|
||||
"speaker",
|
||||
"Make audio source",
|
||||
"Make this unit an audio source (loudspeakers)",
|
||||
faVolumeHigh,
|
||||
null,
|
||||
(units: Unit[], _1, _2) => {
|
||||
units.forEach((unit) => getApp().getAudioManager().addUnitSink(unit));
|
||||
},
|
||||
{ executeImmediately: true }
|
||||
);
|
||||
|
||||
|
||||
contextActionSet.addDefaultContextAction(this, "default", "Set destination", "", faRoute, null, (units: Unit[], targetUnit, targetPosition) => {
|
||||
if (targetPosition) {
|
||||
getApp().getUnitsManager().clearDestinations(units);
|
||||
|
||||
Reference in New Issue
Block a user