Advertisement
Archeia

Layout Title -> No Gallery

Jan 26th, 2018
3,101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ui.UiFactory.layouts.titleLayout = {
  2.     type: "ui.FreeLayout",
  3.     frame: [0, 0, Graphics.width, Graphics.height]
  4.     music: ($ -> $dataFields.database.system.titleMusic),
  5.     preload: { graphics: [name: $ -> $dataFields.database.system.titleScreen.name or 'bg-generic']},
  6.     controls: [
  7.         {
  8.             "type": "ui.Image",
  9.             "imageHandling": 0,
  10.             "image": -> $dataFields.database.system.titleScreen.name or 'bg-generic',
  11.             "frame": [0, 0, Graphics.width, Graphics.height]
  12.         }
  13.     ,
  14.         {
  15.             type: "ui.Text",
  16.             id: "newGameText",
  17.             #initialFocus: true,
  18.             #focusable: true,
  19.             #nextKeyObject: "loadGame",
  20.             styles: ["titleText"],
  21.             text: {
  22.                 lcId: "4FE8B0BD58FD914BFA8824E07226FB7F7974",
  23.                 defaultText: "New Game"
  24.             }
  25.             frame: ["70%", "50%"],
  26.             sizeToFit: true,
  27.             action: {
  28.                 name: "newGame"
  29.             }
  30.         }
  31.     ,
  32.         {
  33.             type: "ui.Text",
  34.             id: "loadGame",
  35.             #focusable: true,
  36.             #nextKeyObject: "gallery",
  37.             styles: ["titleText"]
  38.             text: {
  39.                 lcId: "0B92E27C6AAE1648AF1B28B2E938923EDDD7"
  40.                 defaultText: "Load Game"
  41.             }
  42.             action: {
  43.                 name: "switchLayout"
  44.                 params: {
  45.                     name: "loadMenuLayout", savePrevious: true, snapshot: true
  46.                 }
  47.             }
  48.             frame: ["70% - 10", "50% + 50"]
  49.             sizeToFit: true
  50.         }
  51.     ,
  52.         {
  53.             type: "ui.Text",
  54.             id: "settings",
  55.             #focusable: true,
  56.             #nextKeyObject: "quit",
  57.             styles: ["titleText"],
  58.             text: {
  59.                 lcId: "D77D7952535CB1422759B668DBFB3C4FD441"
  60.                 defaultText: "Settings"
  61.             }
  62.             frame: ["70% - 20", "50% + 100"]
  63.             sizeToFit: true
  64.             action: {
  65.                 name: "switchLayout"
  66.                 params: {
  67.                     name: "settingsMenuLayout"
  68.                     savePrevious: true
  69.                 }
  70.             }
  71.         }
  72.     ,
  73.         {
  74.             type: "ui.Text"
  75.             styles: ["titleText"],
  76.             id: "quit",
  77.             #focusable: true,
  78.             text: {
  79.                 lcId: "377A3D6B2286414CAB8AAA93605A675D3AD6"
  80.                 defaultText: "Quit"
  81.             }
  82.             frame: ["70% - 30", "50% + 150"]
  83.             action: {
  84.                 name: "quitGame"
  85.             }
  86.             sizeToFit: true
  87.         }
  88.     ]
  89. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement