mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Set up bullseye early, create waypoints.
Setting this up as part of the game makes it possible for us to show in the UI. https://github.com/dcs-liberation/dcs_liberation/issues/136
This commit is contained in:
@@ -375,6 +375,7 @@ class WaypointJs(QObject):
|
||||
timingChanged = Signal()
|
||||
isTakeoffChanged = Signal()
|
||||
isDivertChanged = Signal()
|
||||
isBullseyeChanged = Signal()
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
@@ -439,6 +440,10 @@ class WaypointJs(QObject):
|
||||
def isDivert(self) -> bool:
|
||||
return self.waypoint.waypoint_type is FlightWaypointType.DIVERT
|
||||
|
||||
@Property(bool, notify=isBullseyeChanged)
|
||||
def isBullseye(self) -> bool:
|
||||
return self.waypoint.waypoint_type is FlightWaypointType.BULLSEYE
|
||||
|
||||
@Slot(list, result=str)
|
||||
def setPosition(self, position: LeafletLatLon) -> str:
|
||||
point = self.theater.ll_to_point(LatLon(*position))
|
||||
|
||||
Reference in New Issue
Block a user