mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
use aircraft display names instead of variant ids in faction editor
This commit is contained in:
parent
cf575fba2a
commit
f82fc3a930
@ -221,15 +221,15 @@ class QFactionUnits(QScrollArea):
|
|||||||
FlightType.AEWC not in ac.task_priorities
|
FlightType.AEWC not in ac.task_priorities
|
||||||
and FlightType.REFUELING not in ac.task_priorities
|
and FlightType.REFUELING not in ac.task_priorities
|
||||||
):
|
):
|
||||||
self.add_ac_combo.addItem(ac.variant_id, ac)
|
self.add_ac_combo.addItem(ac.display_name, ac)
|
||||||
|
|
||||||
def _awacs_predicate(self, ac: AircraftType):
|
def _awacs_predicate(self, ac: AircraftType):
|
||||||
if FlightType.AEWC in ac.task_priorities:
|
if FlightType.AEWC in ac.task_priorities:
|
||||||
self.add_awacs_combo.addItem(ac.variant_id, ac)
|
self.add_awacs_combo.addItem(ac.display_name, ac)
|
||||||
|
|
||||||
def _tanker_predicate(self, ac: AircraftType):
|
def _tanker_predicate(self, ac: AircraftType):
|
||||||
if FlightType.REFUELING in ac.task_priorities:
|
if FlightType.REFUELING in ac.task_priorities:
|
||||||
self.add_tanker_combo.addItem(ac.variant_id, ac)
|
self.add_tanker_combo.addItem(ac.display_name, ac)
|
||||||
|
|
||||||
def _create_aircraft_combobox(
|
def _create_aircraft_combobox(
|
||||||
self, cb: QComboBox, callback: Callable, predicate: Callable
|
self, cb: QComboBox, callback: Callable, predicate: Callable
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user