Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "$schema": "http://www.lavishsoft.com/schema/lgui2Package.json",
- "templates": {
- "starSize": { "font": { "height": 32 } },
- "tile.View": {
- "type": "panel",
- "jsonTemplate": "panel",
- "verticalAlignment": "stretch",
- "horizontalAlignment": "stretch",
- "backgroundBrush": "floorBrush",
- "styles": {
- "wall": {
- "backgroundBrush": "wallBrush"
- },
- "floor": {
- "backgroundBrush": "floorBrush"
- }
- }
- },
- "mouse.View": {
- "type": "panel",
- "name": "hector",
- "backgroundBrush": "mouseBrush",
- "width": 40,
- "height": 40
- },
- "cheese.View": {
- "type":"panel",
- "backgroundBrush":"cheeseBrush"
- },
- "brushes": {
- "wallBrush": { "color": [1.0, 0.0, 0.0] },
- "mouseBrush": {
- "color": [0.25, 0.25, 0.25],
- "-canvas": {
- "width": 64,
- "height": 64
- }
- },
- "cheeseBrush": { "color": [1.0, 0.85, 0.0] },
- "floorBrush": {
- "color": "#000000"
- }
- },
- "elements": [
- {
- "type": "window",
- "name": "game.window",
- "title": "Game Options",
- "height": 250,
- "width": 400,
- "verticalAlignment": "center",
- "horizontalAlignment": "center",
- "content": {
- "type": "dockpanel",
- "margin": [10, 10],
- "children": [
- {
- "type": "stackpanel",
- "orientation": "horizontal",
- "horizontalContentAlignment": "left",
- "margin": [10, 5],
- "children": [
- {
- "type": "combobox",
- "minSize": [90, 0],
- "selectedItemBinding": "GameController.Difficulty",
- "selectedItemBindingProperty": "level",
- "items": [
- { "level": 1, "name": "Easy", "display": "✮✩✩✩" },
- { "level": 2, "name": "Normal", "display": "✮✮✩✩" },
- { "level": 3, "name": "Hard", "display": "✮✮✮✩" },
- { "level": 4, "name": "Insane", "display": "✮✮✮✮" }
- ],
- "itemViewGenerators": {
- "default": {
- "type": "method",
- "object": "GameController",
- "method": "DifficultyView"
- }
- }
- }
- ]
- }
- ]
- },
- "eventHandlers": {
- "onRefresh": {
- "type": "method",
- "object": "GameController",
- "method": "OnRefresh"
- }
- }
- },
- {
- "type": "window",
- "name": "gameboard.Window",
- "content": {
- "type": "panel",
- "name": "gameSurface",
- "width": 400,
- "height": 400,
- "children": [
- {
- "type": "table",
- "verticalAlignment": "stretch",
- "horizontalAlignment": "stretch",
- "name": "gameBoard",
- "strata": 0.1,
- "cellSpacing": [1, 1],
- "rows": [
- { "heightFactor": 0.1 },
- { "heightFactor": 0.1 },
- { "heightFactor": 0.1 },
- { "heightFactor": 0.1 },
- { "heightFactor": 0.1 },
- { "heightFactor": 0.1 },
- { "heightFactor": 0.1 },
- { "heightFactor": 0.1 },
- { "heightFactor": 0.1 },
- { "heightFactor": 0.1 }
- ],
- "columns": [
- { "widthFactor": 0.1 },
- { "widthFactor": 0.1 },
- { "widthFactor": 0.1 },
- { "widthFactor": 0.1 },
- { "widthFactor": 0.1 },
- { "widthFactor": 0.1 },
- { "widthFactor": 0.1 },
- { "widthFactor": 0.1 },
- { "widthFactor": 0.1 },
- { "widthFactor": 0.1 }
- ]
- }
- ]
- }
- }
- ]
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement