mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Restore hidden_on_mfd functionality
This commit is contained in:
parent
1b757ec544
commit
8eb30445c2
@ -332,6 +332,7 @@ class GroundObjectGenerator:
|
|||||||
self._register_theater_unit(unit, vehicle_group.units[-1])
|
self._register_theater_unit(unit, vehicle_group.units[-1])
|
||||||
if vehicle_group is None:
|
if vehicle_group is None:
|
||||||
raise RuntimeError(f"Error creating VehicleGroup for {group_name}")
|
raise RuntimeError(f"Error creating VehicleGroup for {group_name}")
|
||||||
|
vehicle_group.hidden_on_mfd = self.ground_object.hide_on_mfd
|
||||||
return vehicle_group
|
return vehicle_group
|
||||||
|
|
||||||
def create_ship_group(
|
def create_ship_group(
|
||||||
@ -368,6 +369,7 @@ class GroundObjectGenerator:
|
|||||||
self._register_theater_unit(unit, ship_group.units[-1])
|
self._register_theater_unit(unit, ship_group.units[-1])
|
||||||
if ship_group is None:
|
if ship_group is None:
|
||||||
raise RuntimeError(f"Error creating ShipGroup for {group_name}")
|
raise RuntimeError(f"Error creating ShipGroup for {group_name}")
|
||||||
|
ship_group.hidden_on_mfd = self.ground_object.hide_on_mfd
|
||||||
return ship_group
|
return ship_group
|
||||||
|
|
||||||
def create_static_group(self, unit: TheaterUnit) -> None:
|
def create_static_group(self, unit: TheaterUnit) -> None:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user