Browse Source

Merge pull request #2177 from krs0/feature/Move_battle_fake_lables_into_separate_group

Move battle fake labels into separate group, and small fixes
Ivan Savenko 2 years ago
parent
commit
526ce1b546

+ 21 - 15
config/widgets/settings/battleOptionsTab.json

@@ -66,24 +66,30 @@
 		},
 /////////////////////////////////////// Left section - checkboxes
 		{
-			"type": "labelDescription",
-			"text": "core.genrltxt.402", // All Stats
-			"position": {"x": 45, "y": 265}
-		},
-		{
-			"type": "labelDescription",
-			"text": "core.genrltxt.403", // Spells only
-			"position": {"x": 45, "y": 295}
+			"name": "creatureInfoLabels",
+			"type" : "verticalLayout",
+			"customType" : "labelDescription",
+			"position": {"x": 45, "y": 265},
+			"items":
+			[
+				{
+					"text": "core.genrltxt.402",
+				},
+				{
+					"text": "core.genrltxt.403",
+				}
+			]
 		},
 		{
-			"name": "creatureInfoAllPlaceholder",
-			"type": "checkboxFake",
+			"name": "creatureInfoCheckboxes",
+			"type" : "verticalLayout",
+			"customType" : "checkboxFake",
 			"position": {"x": 10, "y": 263},
-		},
-		{
-			"name": "creatureInfoSpellsPlaceholder",
-			"type": "checkboxFake",
-			"position": {"x": 10, "y": 293},
+			"items":
+			[
+				{},
+				{}
+			]
 		},
 		{
 			"name": "generalOptionsLabels",

+ 20 - 11
config/widgets/settings/generalOptionsTab.json

@@ -9,6 +9,12 @@
 			"image": "settingsWindow/lineHorizontal",
 			"rect": { "x" : 5, "y" : 289, "w": 365, "h": 3}
 		},
+		{
+			"name": "lineCreatureNumbersToggleGroupEnd",
+			"type": "texture",
+			"image": "settingsWindow/lineHorizontal",
+			"rect": { "x" : 5, "y" : 383, "w": 220, "h": 3}
+		},
 		{
 			"type" : "labelTitle",
 			"position": {"x": 10, "y": 55},
@@ -76,13 +82,13 @@
 				{
 					"name": "fullscreenBorderlessCheckbox",
 					"help": "vcmi.systemOptions.fullscreenBorderless",
-					"callback": "fullscreenBorderlessChanged"
+					"callback": "fullscreenBorderlessChanged",
 					"created" : "desktop"
 				},
 				{
 					"name": "fullscreenExclusiveCheckbox",
 					"help": "vcmi.systemOptions.fullscreenExclusive",
-					"callback": "fullscreenExclusiveChanged"
+					"callback": "fullscreenExclusiveChanged",
 					"created" : "desktop"
 				},
 				{
@@ -153,17 +159,9 @@
 				},
 				{
 					"text": "vcmi.otherOptions.availableCreaturesAsDwellingLabel.hover",
-				},
-				{
-					"text": "vcmi.otherOptions.compactTownCreatureInfo.hover",
 				}
 			]
 		},
-		{
-			"name": "availableCreaturesAsDwellingPicker",
-			"type": "toggleGroup",
-			"callback": "availableCreaturesAsDwellingChanged"
-		},
 		{
 			"name": "availableCreaturesAsDwellingPicker",
 			"type": "toggleGroup",
@@ -185,11 +183,22 @@
 			],
 			"callback": "availableCreaturesAsDwellingChanged"
 		},
+		{
+			"name": "compactTownCreatureInfoLabel",
+			"type" : "verticalLayout",
+			"customType" : "labelDescription",
+			"position": {"x": 45, "y": 391},
+			"items" : [
+				{
+					"text": "vcmi.otherOptions.compactTownCreatureInfo.hover",
+				}
+			]
+		},
 		{
 			"name": "compactTownCreatureInfoCheckbox",
 			"type": "checkbox",
 			"help": "vcmi.otherOptions.compactTownCreatureInfo",
-			"position": {"x": 10, "y": 383},
+			"position": {"x": 10, "y": 389},
 			"callback": "compactTownCreatureInfoChanged"
 		}
 	]