Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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