mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Removed placeholder text. Polished UI when no saved game is found.
This commit is contained in:
parent
4c3ff906ff
commit
63c46d1b21
@ -45,8 +45,6 @@ class QLiberationMap(QGraphicsView):
|
|||||||
|
|
||||||
def init_scene(self):
|
def init_scene(self):
|
||||||
scene = QLiberationScene(self)
|
scene = QLiberationScene(self)
|
||||||
scene.addText("Hello World")
|
|
||||||
|
|
||||||
self.setScene(scene)
|
self.setScene(scene)
|
||||||
self.setTransformationAnchor(QGraphicsView.AnchorUnderMouse)
|
self.setTransformationAnchor(QGraphicsView.AnchorUnderMouse)
|
||||||
self.setResizeAnchor(QGraphicsView.AnchorUnderMouse)
|
self.setResizeAnchor(QGraphicsView.AnchorUnderMouse)
|
||||||
|
|||||||
@ -1,8 +1,13 @@
|
|||||||
from PySide2.QtWidgets import QWidget, QGraphicsScene
|
from PySide2.QtGui import QFont
|
||||||
|
from PySide2.QtWidgets import QGraphicsScene
|
||||||
|
|
||||||
|
from qt_ui.uiconstants import COLORS
|
||||||
|
|
||||||
|
|
||||||
class QLiberationScene(QGraphicsScene):
|
class QLiberationScene(QGraphicsScene):
|
||||||
|
|
||||||
def __init__(self, parent):
|
def __init__(self, parent):
|
||||||
super().__init__(parent)
|
super().__init__(parent)
|
||||||
self.addText("Hello Liberation Map")
|
item = self.addText("No save file found. Go to \"File/New Game\" to setup a new campaign.",
|
||||||
|
QFont("Arial", 14, weight=5))
|
||||||
|
item.setDefaultTextColor(COLORS["white"])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user