mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-22 22:13:35 +02:00
832e56e005
- Added EShortcut enumeration that contains all in-game shortcuts - CIntObject::keyPressed now receive values from hotkey enumeration - On keypress, SDL key code will be translated to shortcut ID - Removed access to SDL key codes from most of engine
160 lines
3.4 KiB
JSON
160 lines
3.4 KiB
JSON
{
|
|
"items":
|
|
[
|
|
{
|
|
"name": "background",
|
|
"type": "texture",
|
|
"image": "DiBoxBck",
|
|
"rect": {"w": 600, "h": 480}
|
|
},
|
|
{
|
|
"name": "lineTabs",
|
|
"type": "texture",
|
|
"image": "settingsWindow/lineHorizontal",
|
|
"rect": { "x" : 10, "y" : 45, "w": 580, "h": 3}
|
|
},
|
|
{
|
|
"name": "lineColumns",
|
|
"type": "texture",
|
|
"image": "settingsWindow/lineVertical",
|
|
"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": "texture",
|
|
"image": "settingsWindow/lineHorizontal",
|
|
"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": "gameLoadGame"
|
|
},
|
|
{
|
|
"name": "saveButton",
|
|
"type": "button",
|
|
"position": {"x": 490, "y": 306},
|
|
"image": "SOSAVE.DEF",
|
|
"imageOrder": [1, 0, 2, 3],
|
|
"help": "core.help.322",
|
|
"callback": "saveGame",
|
|
"hotkey": "gameSaveGame"
|
|
},
|
|
{
|
|
"name": "restartButton",
|
|
"type": "button",
|
|
"position": {"x": 380, "y": 364},
|
|
"image": "SORSTRT.DEF",
|
|
"imageOrder": [1, 0, 2, 3],
|
|
"help": "core.help.323",
|
|
"callback": "restartGame",
|
|
"hotkey": "gameRestartGame"
|
|
},
|
|
{
|
|
"name": "mainMenuButton",
|
|
"type": "button",
|
|
"position": {"x": 490, "y": 364},
|
|
"image": "SOMAIN.DEF",
|
|
"imageOrder": [1, 0, 2, 3],
|
|
"help": "core.help.320",
|
|
"callback": "returnToMainMenu",
|
|
"hotkey": "gameMainMenu"
|
|
},
|
|
{
|
|
"name": "quitButton",
|
|
"type": "button",
|
|
"position": {"x": 380, "y": 422},
|
|
"image": "soquit.def",
|
|
"imageOrder": [1, 0, 2, 3],
|
|
"help": "core.help.324",
|
|
"callback": "quitGame",
|
|
"hotkey": "gameQuitGame"
|
|
},
|
|
{
|
|
"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"
|
|
}
|
|
]
|
|
}
|