mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Renumber flight members for meatbags.
Puny humans count wrong, but we ought to match DCS. Fixes https://github.com/dcs-liberation/dcs_liberation/issues/3244.
This commit is contained in:
@@ -8,6 +8,8 @@ Saves from 9.x are not compatible with 10.0.0.
|
|||||||
|
|
||||||
## Fixes
|
## Fixes
|
||||||
|
|
||||||
|
* **[UI]** Flight members in the loadout menu are now numbered starting from 1 instead of 0.
|
||||||
|
|
||||||
# 9.0.0
|
# 9.0.0
|
||||||
|
|
||||||
Saves from 8.x are not compatible with 9.0.0.
|
Saves from 8.x are not compatible with 9.0.0.
|
||||||
|
|||||||
@@ -38,12 +38,12 @@ class FlightMemberSelector(QSpinBox):
|
|||||||
def __init__(self, flight: Flight, parent: QWidget | None = None) -> None:
|
def __init__(self, flight: Flight, parent: QWidget | None = None) -> None:
|
||||||
super().__init__(parent)
|
super().__init__(parent)
|
||||||
self.flight = flight
|
self.flight = flight
|
||||||
self.setMinimum(0)
|
self.setMinimum(1)
|
||||||
self.setMaximum(flight.count - 1)
|
self.setMaximum(flight.count)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def selected_member(self) -> FlightMember:
|
def selected_member(self) -> FlightMember:
|
||||||
return self.flight.roster.members[self.value()]
|
return self.flight.roster.members[self.value() - 1]
|
||||||
|
|
||||||
|
|
||||||
class QFlightPayloadTab(QFrame):
|
class QFlightPayloadTab(QFrame):
|
||||||
|
|||||||
Reference in New Issue
Block a user