Merge branch 'main' into 328-add-simple-miss-on-purpose-mode-for-aaa

This commit is contained in:
Pax1601
2023-10-04 21:21:08 +02:00
24 changed files with 555 additions and 90 deletions

View File

@@ -201,8 +201,12 @@ export class UnitsManager {
*
* @param hotgroup The hotgroup number
*/
selectUnitsByHotgroup(hotgroup: number) {
this.deselectAllUnits();
selectUnitsByHotgroup(hotgroup: number, deselectAllUnits: boolean = true ) {
if ( deselectAllUnits ) {
this.deselectAllUnits();
}
this.getUnitsByHotgroup(hotgroup).forEach((unit: Unit) => unit.setSelected(true))
}