{
	"library" : [
		"config/widgets/commonPrimitives.json"
	],
	
	"items":
	[
		{
			"name": "background",
			"type": "texture",
			"image": "DiBoxBck",
			"rect": {"w": 600, "h": 480}
		},
		{
			"name": "lineTabs",
			"type": "horizontalLine",
			"rect": { "x" : 10, "y" : 45, "w": 580, "h": 3}
		},
		{
			"name": "lineColumns",
			"type": "verticalLine",
			"rect": { "x" : 370, "y" : 50, "w": 3, "h": 420}
		},

		{
			"name": "settingsTabs",
			"type": "toggleGroup",
			"position": {
				"x": 0,
				"y": 0
			},
			"items":
			[
				{
					"index": 0,
					"type": "toggleButton",
					"position": {"x": 10, "y": 5},
					"image": "settingsWindow/button190",
					"help": "vcmi.settingsMainWindow.generalTab",
					"items":
					[
						{
							"name": "generalTabButtonTitle",
							"type": "label",
							"font": "big",
							"alignment": "center",
							"color": "yellow",
							"text": "vcmi.settingsMainWindow.generalTab.hover"
						}
					]
				},

				{
					"index": 1,
					"type": "toggleButton",
					"position": {"x": 205, "y": 5},
					"image": "settingsWindow/button190",
					"help": "vcmi.settingsMainWindow.adventureTab",
					"items":
					[
						{
							"name": "generalTabButtonTitle",
							"type": "label",
							"font": "big",
							"alignment": "center",
							"color": "yellow",
							"text": "vcmi.settingsMainWindow.adventureTab.hover"
						}
					]
				},

				{
					"index": 2,
					"type": "toggleButton",
					"position": {"x": 400, "y": 5},
					"image": "settingsWindow/button190",
					"help": "vcmi.settingsMainWindow.battleTab",
					"items":
					[
						{
							"name": "adventureTabButtonTitle",
							"type": "label",
							"font": "big",
							"alignment": "center",
							"color": "yellow",
							"text": "vcmi.settingsMainWindow.battleTab.hover"
						}
					]
				}
			],
			"callback": "activateSettingsTab"
		},

		{
			"name": "lineButtons",
			"type": "horizontalLine",
			"rect": { "x" : 375, "y" : 289, "w": 220, "h": 3}
		},
		{
			"name": "loadButton",
			"type": "button",
			"position": {"x": 380, "y": 306},
			"image": "SOLOAD.DEF",
			"imageOrder": [1, 0, 2, 3],
			"help": "core.help.321",
			"callback": "loadGame",
			"hotkey": "settingsLoadGame"
		},
		{
			"name": "saveButton",
			"type": "button",
			"position": {"x": 490, "y": 306},
			"image": "SOSAVE.DEF",
			"imageOrder": [1, 0, 2, 3],
			"help": "core.help.322",
			"callback": "saveGame",
			"hotkey": "settingsSaveGame"
		},
		{
			"name": "restartButton",
			"type": "button",
			"position": {"x": 380, "y": 364},
			"image": "SORSTRT.DEF",
			"imageOrder": [1, 0, 2, 3],
			"help": "core.help.323",
			"callback": "restartGame",
			"hotkey": "settingsRestartGame"
		},
		{
			"name": "mainMenuButton",
			"type": "button",
			"position": {"x": 490, "y": 364},
			"image": "SOMAIN.DEF",
			"imageOrder": [1, 0, 2, 3],
			"help": "core.help.320",
			"callback": "returnToMainMenu",
			"hotkey": "settingsToMainMenu"
		},
		{
			"name": "quitButton",
			"type": "button",
			"position": {"x": 380, "y": 422},
			"image": "soquit.def",
			"imageOrder": [1, 0, 2, 3],
			"help": "core.help.324",
			"callback": "quitGame",
			"hotkey": "settingsQuitGame"
		},
		{
			"name": "closeSettingsButton",
			"type": "button",
			"position": {"x": 490, "y": 422},
			"image": "soretrn.def",
			"imageOrder": [1, 0, 2, 3],
			"help": "core.help.325",
			"callback": "closeWindow",
			"hotkey": "globalReturn"
		}
	]
}
