Advertisement
Archeia

Right Click -> Save Menu

Feb 19th, 2019
3,013
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ui.UiFactory.layouts.gameLayout = {
  2.     "type": "ui.FreeLayout",
  3.     "frame": [0, 0, Graphics.width, Graphics.height],
  4.     "controls":[
  5.         {
  6.             "type": "ui.Panel",
  7.             "frame": [0, 0, Graphics.width, Graphics.height],
  8.             "updateBehavior": "continuous",
  9.             "formulas": [$ -> o.ui.enabled = $dataFields.tempSettings.menuAccess],
  10.             "action": {
  11.                 "event": "onCancel",
  12.                 "name": "switchLayout",
  13.                 "params": { "name": "saveMenuLayout", "savePrevious": true }
  14.             }
  15.         },
  16.         {
  17.             "type": "ui.MessageBox",
  18.             "visible": no,
  19.             "id": "messageBox",
  20.             "frame": [0, 0, Graphics.width, Graphics.height]
  21.         },
  22.         {
  23.             "type": "ui.MessageBoxNVL",
  24.             "visible": no,
  25.             "id": "nvlMessageBox",
  26.             "frame": [0, 0, Graphics.width, Graphics.height]
  27.         },
  28.         {
  29.             "type": "ui.MessageMenu",
  30.             "visible": no,
  31.             "id": "messageMenu",
  32.             "frame": [0, 0, Graphics.width, Graphics.height]
  33.         },
  34.         {
  35.             "type": "ui.GameMessage",
  36.             "id": "gameMessage",
  37.             "params": { "id": "gameMessage" },
  38.             "frame": [320, Graphics.height - 220]
  39.         },
  40.         {
  41.             "type": "ui.GameMessageNVL",
  42.             "id": "nvlGameMessage",
  43.             "params": { "id": "nvlGameMessage" },
  44.             "frame": [0, 0]
  45.         }
  46.     ]
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement