Browse Source

description

Laserlicht 2 years ago
parent
commit
648a37310f

+ 2 - 0
Mods/vcmi/config/vcmi/english.json

@@ -53,6 +53,8 @@
 	"vcmi.lobby.creationDate" : "Creation date",
 	"vcmi.lobby.scenarioName" : "Scenario name",
 	"vcmi.lobby.mapPreview" : "Map preview",
+	"vcmi.lobby.noPreview" : "no preview",
+	"vcmi.lobby.noUnderground" : "no underground",
 
 	"vcmi.server.errors.existingProcess" : "Another VCMI server process is running. Please terminate it before starting a new game.",
 	"vcmi.server.errors.modsToEnable"    : "{Following mods are required}",

+ 2 - 0
Mods/vcmi/config/vcmi/german.json

@@ -52,6 +52,8 @@
 	"vcmi.lobby.creationDate" : "Erstellungsdatum",
 	"vcmi.lobby.scenarioName" : "Szenario-Name",
 	"vcmi.lobby.mapPreview" : "Kartenvorschau",
+	"vcmi.lobby.noPreview" : "Keine Vorschau",
+	"vcmi.lobby.noUnderground" : "Kein Untergrund",
 
 	"vcmi.server.errors.existingProcess" : "Es läuft ein weiterer vcmiserver-Prozess, bitte beendet diesen zuerst",
 	"vcmi.server.errors.modsToEnable"    : "{Erforderliche Mods um das Spiel zu laden}",

+ 5 - 0
client/windows/CMapOverview.cpp

@@ -196,4 +196,9 @@ CMapOverview::CMapOverviewWidget::CMapOverviewWidget(CMapOverview& parent):
 		else
 			w->setText(p.date);
 	}
+	if(auto w = widget<CLabel>("noUnderground"))
+	{
+		if(minimaps.size() == 0)
+			w->setText("");
+	}
 }

+ 17 - 0
config/widgets/mapOverview.json

@@ -56,6 +56,14 @@
 			"color": [0, 0, 0, 255],
 			"colorLine": [128, 100, 75, 255]
 		},
+		{
+			"type": "label",
+			"font": "small",
+			"alignment": "center",
+			"color": "white",
+			"text": "vcmi.lobby.noPreview",
+			"position": {"x": 114, "y": 164}
+		},
 		{
 			"type": "drawMinimap",
 			"id": 0,
@@ -67,6 +75,15 @@
 			"color": [0, 0, 0, 255],
 			"colorLine": [128, 100, 75, 255]
 		},
+		{
+			"type": "label",
+			"name": "noUnderground",
+			"font": "small",
+			"alignment": "center",
+			"color": "white",
+			"text": "vcmi.lobby.noUnderground",
+			"position": {"x": 313, "y": 164}
+		},
 		{
 			"type": "drawMinimap",
 			"id": 1,