mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
fix numerous UI elements using is_ownfor
This commit is contained in:
@@ -5,6 +5,7 @@ from PySide6.QtWidgets import QComboBox
|
||||
from game.ato.flighttype import FlightType
|
||||
from game.settings.settings import Settings
|
||||
from game.theater import ConflictTheater, MissionTarget
|
||||
from game.theater.player import Player
|
||||
|
||||
|
||||
class QFlightTypeComboBox(QComboBox):
|
||||
@@ -20,7 +21,9 @@ class QFlightTypeComboBox(QComboBox):
|
||||
super().__init__()
|
||||
self.theater = theater
|
||||
self.target = target
|
||||
for mission_type in self.target.mission_types(for_player=is_ownfor):
|
||||
for mission_type in self.target.mission_types(
|
||||
for_player=Player.BLUE if is_ownfor else Player.RED
|
||||
):
|
||||
if mission_type == FlightType.AIR_ASSAULT and not settings.plugin_option(
|
||||
"ctld"
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user