Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@shige-ta
Last active June 16, 2018 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shige-ta/a61dccfe18a49fa0bacb6ab28905e84c to your computer and use it in GitHub Desktop.
Save shige-ta/a61dccfe18a49fa0bacb6ab28905e84c to your computer and use it in GitHub Desktop.
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