Add icons for CPs.

This commit is contained in:
Dan Albert
2021-05-21 21:43:02 -07:00
parent f8cb9e2bd3
commit c0ead4a484
25 changed files with 105 additions and 24 deletions

View File

@@ -19,6 +19,8 @@ from game.theater import (
TheaterGroundObject,
FrontLine,
LatLon,
Airfield,
Carrier,
)
from game.transfers import MultiGroupTransport, TransportMap
from game.utils import meters, nautical_miles
@@ -63,6 +65,7 @@ class ControlPointJs(QObject):
positionChanged = Signal()
mobileChanged = Signal()
destinationChanged = Signal(list)
categoryChanged = Signal()
def __init__(
self,
@@ -84,6 +87,10 @@ class ControlPointJs(QObject):
def blue(self) -> bool:
return self.control_point.captured
@Property(str, notify=categoryChanged)
def category(self) -> str:
return self.control_point.category
@Property(list, notify=positionChanged)
def position(self) -> LeafletLatLon:
ll = self.theater.point_to_ll(self.control_point.position)