瀏覽代碼

Fixed errors and added a line after CreatureNumbersToggleGroup to separate them visually from next element.

krs 2 年之前
父節點
當前提交
6daa933aa2
共有 1 個文件被更改,包括 20 次插入11 次删除
  1. 20 11
      config/widgets/settings/generalOptionsTab.json

+ 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"
 		}
 	]