mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Added missile icons for missiles sites
This commit is contained in:
parent
17fe977b06
commit
d0804a6f9e
@ -107,6 +107,8 @@ def load_icons():
|
||||
ICONS["destroyed"] = QPixmap("./resources/ui/ground_assets/destroyed.png")
|
||||
ICONS["ship"] = QPixmap("./resources/ui/ground_assets/ship.png")
|
||||
ICONS["ship_blue"] = QPixmap("./resources/ui/ground_assets/ship_blue.png")
|
||||
ICONS["missile"] = QPixmap("./resources/ui/ground_assets/missile.png")
|
||||
ICONS["missile_blue"] = QPixmap("./resources/ui/ground_assets/missile_blue.png")
|
||||
|
||||
ICONS["Generator"] = QPixmap("./resources/ui/misc/"+get_theme_icons()+"/generator.png")
|
||||
ICONS["Missile"] = QPixmap("./resources/ui/misc/"+get_theme_icons()+"/missile.png")
|
||||
|
||||
@ -9,6 +9,7 @@ from game import Game
|
||||
from game.data.building_data import FORTIFICATION_BUILDINGS
|
||||
from game.db import REWARDS
|
||||
from game.theater import ControlPoint, TheaterGroundObject
|
||||
from game.theater.theatergroundobject import MissileSiteGroundObject
|
||||
from qt_ui.windows.groundobject.QGroundObjectMenu import QGroundObjectMenu
|
||||
from .QMapObject import QMapObject
|
||||
from ...displayoptions import DisplayOptions
|
||||
@ -72,6 +73,8 @@ class QMapGroundObject(QMapObject):
|
||||
cat = self.ground_object.category
|
||||
if cat == "aa" and self.ground_object.sea_object:
|
||||
cat = "ship"
|
||||
if isinstance(self.ground_object, MissileSiteGroundObject):
|
||||
cat = "missile"
|
||||
|
||||
rect = QRect(option.rect.x() + 2, option.rect.y(),
|
||||
option.rect.width() - 2, option.rect.height())
|
||||
|
||||
BIN
resources/ui/ground_assets/missile.png
Normal file
BIN
resources/ui/ground_assets/missile.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 644 B |
BIN
resources/ui/ground_assets/missile_blue.png
Normal file
BIN
resources/ui/ground_assets/missile_blue.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 636 B |
Loading…
x
Reference in New Issue
Block a user