Show SAM range on map.

This commit is contained in:
Khopa
2019-10-08 21:42:48 +02:00
parent f698cb66b8
commit f5a5fb765b
5 changed files with 31 additions and 6 deletions

View File

@@ -1,7 +1,9 @@
from PySide2.QtCore import QPoint, QRect, QPointF
from PySide2.QtGui import QPainter
from PySide2.QtWidgets import QGraphicsRectItem
import qt_ui.uiconstants as CONST
from game import db
from theater import TheaterGroundObject, ControlPoint
@@ -33,7 +35,6 @@ class QMapGroundObject(QGraphicsRectItem):
def paint(self, painter, option, widget=None):
#super(QMapControlPoint, self).paint(painter, option, widget)
if self.parent.get_display_rule("go"):
painter.save()
if not self.model.is_dead and not self.cp.captured: