mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Merge branch 'develop_2_4_x' into develop
# Conflicts: # changelog.md # game/db.py # game/navmesh.py # game/operation/operation.py # game/theater/conflicttheater.py # game/theater/controlpoint.py # game/theater/start_generator.py # game/theater/theatergroundobject.py # game/threatzones.py # game/version.py # gen/aircraft.py # gen/airsupportgen.py # gen/fleet/carrier_group.py # gen/flights/ai_flight_planner.py # gen/flights/ai_flight_planner_db.py # gen/flights/flightplan.py # gen/flights/waypointbuilder.py # gen/groundobjectsgen.py # gen/kneeboard.py # pydcs # pydcs_extensions/f22a/f22a.py # qt_ui/uiconstants.py # qt_ui/widgets/combos/QAircraftTypeSelector.py # qt_ui/widgets/map/QLiberationMap.py # qt_ui/windows/QUnitInfoWindow.py # qt_ui/windows/mission/flight/payload/QPylonEditor.py # qt_ui/windows/settings/QSettingsWindow.py
This commit is contained in:
commit
5bd4c00257
@ -180,6 +180,7 @@ from pydcs_extensions.su57.su57 import Su_57
|
||||
UNITINFOTEXT_PATH = Path("./resources/units/unit_info_text.json")
|
||||
|
||||
plane_map["A-4E-C"] = A_4E_C
|
||||
plane_map["F-22A"] = F_22A
|
||||
plane_map["MB-339PAN"] = MB_339PAN
|
||||
plane_map["Rafale_M"] = Rafale_M
|
||||
plane_map["Rafale_A_S"] = Rafale_A_S
|
||||
|
||||
@ -656,6 +656,12 @@ AIRCRAFT_DATA: Dict[str, AircraftData] = {
|
||||
),
|
||||
channel_namer=HueyChannelNamer,
|
||||
),
|
||||
"F-22A": AircraftData(
|
||||
inter_flight_radio=get_radio("SCR-522"),
|
||||
intra_flight_radio=get_radio("SCR-522"),
|
||||
channel_allocator=None,
|
||||
channel_namer=SCR522ChannelNamer,
|
||||
),
|
||||
}
|
||||
AIRCRAFT_DATA["A-10C_2"] = AIRCRAFT_DATA["A-10C"]
|
||||
AIRCRAFT_DATA["P-51D-30-NA"] = AIRCRAFT_DATA["P-51D"]
|
||||
|
||||
@ -88,6 +88,7 @@ from dcs.planes import (
|
||||
Tu_22M3,
|
||||
Tu_95MS,
|
||||
WingLoong_I,
|
||||
I_16,
|
||||
)
|
||||
from dcs.unittype import FlyingType
|
||||
|
||||
|
||||
2
pydcs
2
pydcs
@ -1 +1 @@
|
||||
Subproject commit 5ffae3c76b99610ab5065c7317a8a5c72c7e4afb
|
||||
Subproject commit 42de2ec352903d592ca123950b4b12a15ffa6544
|
||||
@ -915,35 +915,48 @@ class QLiberationMap(QGraphicsView):
|
||||
SMALL_LINE = 2
|
||||
|
||||
dist = self.distance_to_pixels(nautical_miles(scale_distance_nm))
|
||||
self.scene().addRect(
|
||||
POS_X,
|
||||
POS_Y - PADDING,
|
||||
PADDING * 2 + dist,
|
||||
BIG_LINE * 2 + 3 * PADDING,
|
||||
pen=CONST.COLORS["black"],
|
||||
brush=CONST.COLORS["black"],
|
||||
)
|
||||
l = self.scene().addLine(
|
||||
POS_X + PADDING,
|
||||
POS_Y + BIG_LINE * 2,
|
||||
POS_X + PADDING + dist,
|
||||
POS_Y + BIG_LINE * 2,
|
||||
)
|
||||
l.setPen(CONST.COLORS["black"])
|
||||
|
||||
lw = self.scene().addLine(
|
||||
POS_X + PADDING + 1,
|
||||
POS_Y + BIG_LINE * 2 + 1,
|
||||
POS_X + PADDING + dist + 1,
|
||||
POS_Y + BIG_LINE * 2 + 1,
|
||||
)
|
||||
lw.setPen(CONST.COLORS["white"])
|
||||
|
||||
text = self.scene().addText(
|
||||
"0nm", font=QFont("Trebuchet MS", 6, weight=5, italic=False)
|
||||
)
|
||||
text.setPos(POS_X, POS_Y + BIG_LINE * 2)
|
||||
text.setDefaultTextColor(Qt.white)
|
||||
text.setDefaultTextColor(Qt.black)
|
||||
|
||||
text_white = self.scene().addText(
|
||||
"0nm", font=QFont("Trebuchet MS", 6, weight=5, italic=False)
|
||||
)
|
||||
text_white.setPos(POS_X + 1, POS_Y + BIG_LINE * 2)
|
||||
text_white.setDefaultTextColor(Qt.white)
|
||||
|
||||
text2 = self.scene().addText(
|
||||
str(scale_distance_nm) + "nm",
|
||||
font=QFont("Trebuchet MS", 6, weight=5, italic=False),
|
||||
)
|
||||
text2.setPos(POS_X + dist, POS_Y + BIG_LINE * 2)
|
||||
text2.setDefaultTextColor(Qt.white)
|
||||
text2.setDefaultTextColor(Qt.black)
|
||||
|
||||
text2_white = self.scene().addText(
|
||||
str(scale_distance_nm) + "nm",
|
||||
font=QFont("Trebuchet MS", 6, weight=5, italic=False),
|
||||
)
|
||||
text2_white.setPos(POS_X + dist + 1, POS_Y + BIG_LINE * 2)
|
||||
text2_white.setDefaultTextColor(Qt.white)
|
||||
|
||||
l.setPen(CONST.COLORS["white"])
|
||||
for i in range(number_of_points + 1):
|
||||
d = float(i) / float(number_of_points)
|
||||
if i == 0 or i == number_of_points:
|
||||
@ -957,7 +970,15 @@ class QLiberationMap(QGraphicsView):
|
||||
POS_X + PADDING + d * dist,
|
||||
POS_Y + BIG_LINE - h,
|
||||
)
|
||||
l.setPen(CONST.COLORS["white"])
|
||||
l.setPen(CONST.COLORS["black"])
|
||||
|
||||
lw = self.scene().addLine(
|
||||
POS_X + PADDING + d * dist + 1,
|
||||
POS_Y + BIG_LINE * 2,
|
||||
POS_X + PADDING + d * dist + 1,
|
||||
POS_Y + BIG_LINE - h,
|
||||
)
|
||||
lw.setPen(CONST.COLORS["white"])
|
||||
|
||||
def wheelEvent(self, event: QWheelEvent):
|
||||
if event.angleDelta().y() > 0:
|
||||
|
||||
@ -48,6 +48,9 @@ class QUnitInfoWindow(QDialog):
|
||||
|
||||
header = QLabel(self)
|
||||
header.setGeometry(0, 0, 720, 360)
|
||||
|
||||
pixmap = None
|
||||
|
||||
if (
|
||||
dcs.planes.plane_map.get(self.unit_type.id) is not None
|
||||
or dcs.helicopters.helicopter_map.get(self.unit_type.id) is not None
|
||||
|
||||
@ -81,6 +81,10 @@ class QPylonEditor(QComboBox):
|
||||
)
|
||||
)
|
||||
else:
|
||||
self.setCurrentText(
|
||||
weapons_data.weapon_ids.get(pylon_default_weapon).get("name")
|
||||
)
|
||||
weapon = weapons_data.weapon_ids.get(pylon_default_weapon)
|
||||
if weapon is not None:
|
||||
self.setCurrentText(
|
||||
weapons_data.weapon_ids.get(pylon_default_weapon).get("name")
|
||||
)
|
||||
else:
|
||||
self.setCurrentText(pylon_default_weapon)
|
||||
|
||||
BIN
resources/ui/units/aircrafts/banners/F-22A_24.jpg
Normal file
BIN
resources/ui/units/aircrafts/banners/F-22A_24.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 21 KiB |
BIN
resources/ui/units/aircrafts/icons/F-22A_24.jpg
Normal file
BIN
resources/ui/units/aircrafts/icons/F-22A_24.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
Loading…
x
Reference in New Issue
Block a user