Added separate base images for carriers

Forrestal, Supercarrier (CVN-75), Kuznetsov, Kuznetsov (2017/Supercarrier) and Type 071 Yuzhao.

Resolves #1292
This commit is contained in:
MetalStormGhost
2021-11-23 16:37:02 +02:00
committed by RndName
parent 759b934184
commit 4b89220a7b
16 changed files with 90 additions and 48 deletions

View File

@@ -9,6 +9,7 @@ from PySide2.QtWidgets import (
QVBoxLayout,
QWidget,
)
from dcs.ships import Stennis, KUZNECOW
from game import Game
from game.ato.flighttype import FlightType
@@ -240,10 +241,12 @@ class QBaseMenu2(QDialog):
GameUpdateSignal.get_instance().updateGame(self.game_model.game)
def get_base_image(self):
if self.cp.cptype == ControlPointType.AIRCRAFT_CARRIER_GROUP:
return "./resources/ui/carrier.png"
elif self.cp.cptype == ControlPointType.LHA_GROUP:
return "./resources/ui/lha.png"
if (
self.cp.cptype == ControlPointType.AIRCRAFT_CARRIER_GROUP
or self.cp.cptype == ControlPointType.LHA_GROUP
):
carrier_type = self.cp.get_carrier_group_type(always_supercarrier=True)
return f"./resources/ui/units/ships/{carrier_type.id}.png"
elif self.cp.cptype == ControlPointType.FOB and self.cp.has_helipads:
return "./resources/ui/heliport.png"
elif self.cp.cptype == ControlPointType.FOB: