Last active
June 16, 2018 15:47
-
-
Save shige-ta/a61dccfe18a49fa0bacb6ab28905e84c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ui.UIManager.layouts.titleLayout = { | |
"type": "ui.FreeLayout", | |
"frame": [0, 0, Graphics.width, Graphics.height], | |
"music": ($ -> $dataFields.database.system.titleMusic), | |
"controls": [ | |
{ | |
"type": "ui.Image", | |
"image": -> $dataFields.database.system.titleScreen.name or 'bg-generic', | |
"frame": [0, 0, Graphics.width, Graphics.height] | |
}, | |
{ | |
"type": "ui.StackLayout", | |
"orientation": "vertical", | |
"frame": ["35%", "60%", "30%", "30%"] | |
"controls": [ | |
{ | |
"type": "ui.Button", | |
"params": { "text": "ニューゲーム", "action": { "name": "newGame" } }, | |
"resizable": true, | |
"margin": [0, 0, 0, 10] | |
}, | |
{ | |
"type": "ui.Button", | |
"params": { "text": "ゲームを読み込む", "action": { "name": "switchLayout", "params": { "name": "loadMenuLayout", "savePrevious": true } } }, | |
"resizable": true, | |
"margin": [0, 0, 0, 10] | |
}, | |
{ | |
"type": "ui.Button", | |
"params": { "text": "終了", "action": { "name": "quitGame" } }, | |
"resizable": true, | |
"margin": [0, 0, 0, 10] | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment