Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.19 KB | None | 0 0
  1. {
  2. "$schema": "http://www.lavishsoft.com/schema/lgui2Package.json",
  3. "templates": {
  4. "starSize": { "font": { "height": 32 } },
  5. "tile.View": {
  6. "type": "panel",
  7. "jsonTemplate": "panel",
  8. "verticalAlignment": "stretch",
  9. "horizontalAlignment": "stretch",
  10. "backgroundBrush": "floorBrush",
  11. "styles": {
  12. "wall": {
  13. "backgroundBrush": "wallBrush"
  14. },
  15. "floor": {
  16. "backgroundBrush": "floorBrush"
  17. }
  18. }
  19. },
  20. "mouse.View": {
  21. "type": "panel",
  22. "name": "hector",
  23. "backgroundBrush": "mouseBrush",
  24. "width": 40,
  25. "height": 40
  26. },
  27. "cheese.View": {
  28. "type":"panel",
  29. "backgroundBrush":"cheeseBrush"
  30.  
  31. },
  32. "brushes": {
  33. "wallBrush": { "color": [1.0, 0.0, 0.0] },
  34. "mouseBrush": {
  35. "color": [0.25, 0.25, 0.25],
  36. "-canvas": {
  37. "width": 64,
  38. "height": 64
  39. }
  40. },
  41. "cheeseBrush": { "color": [1.0, 0.85, 0.0] },
  42. "floorBrush": {
  43. "color": "#000000"
  44. }
  45. },
  46. "elements": [
  47. {
  48. "type": "window",
  49. "name": "game.window",
  50. "title": "Game Options",
  51. "height": 250,
  52. "width": 400,
  53. "verticalAlignment": "center",
  54. "horizontalAlignment": "center",
  55. "content": {
  56. "type": "dockpanel",
  57. "margin": [10, 10],
  58. "children": [
  59. {
  60. "type": "stackpanel",
  61. "orientation": "horizontal",
  62. "horizontalContentAlignment": "left",
  63. "margin": [10, 5],
  64. "children": [
  65. {
  66. "type": "combobox",
  67. "minSize": [90, 0],
  68. "selectedItemBinding": "GameController.Difficulty",
  69. "selectedItemBindingProperty": "level",
  70. "items": [
  71. { "level": 1, "name": "Easy", "display": "✮✩✩✩" },
  72. { "level": 2, "name": "Normal", "display": "✮✮✩✩" },
  73. { "level": 3, "name": "Hard", "display": "✮✮✮✩" },
  74. { "level": 4, "name": "Insane", "display": "✮✮✮✮" }
  75. ],
  76. "itemViewGenerators": {
  77. "default": {
  78. "type": "method",
  79. "object": "GameController",
  80. "method": "DifficultyView"
  81. }
  82. }
  83. }
  84. ]
  85. }
  86. ]
  87. },
  88. "eventHandlers": {
  89. "onRefresh": {
  90. "type": "method",
  91. "object": "GameController",
  92. "method": "OnRefresh"
  93. }
  94. }
  95. },
  96. {
  97. "type": "window",
  98. "name": "gameboard.Window",
  99. "content": {
  100. "type": "panel",
  101. "name": "gameSurface",
  102. "width": 400,
  103. "height": 400,
  104. "children": [
  105. {
  106. "type": "table",
  107. "verticalAlignment": "stretch",
  108. "horizontalAlignment": "stretch",
  109. "name": "gameBoard",
  110. "strata": 0.1,
  111. "cellSpacing": [1, 1],
  112. "rows": [
  113. { "heightFactor": 0.1 },
  114. { "heightFactor": 0.1 },
  115. { "heightFactor": 0.1 },
  116. { "heightFactor": 0.1 },
  117. { "heightFactor": 0.1 },
  118. { "heightFactor": 0.1 },
  119. { "heightFactor": 0.1 },
  120. { "heightFactor": 0.1 },
  121. { "heightFactor": 0.1 },
  122. { "heightFactor": 0.1 }
  123. ],
  124. "columns": [
  125. { "widthFactor": 0.1 },
  126. { "widthFactor": 0.1 },
  127. { "widthFactor": 0.1 },
  128. { "widthFactor": 0.1 },
  129. { "widthFactor": 0.1 },
  130. { "widthFactor": 0.1 },
  131. { "widthFactor": 0.1 },
  132. { "widthFactor": 0.1 },
  133. { "widthFactor": 0.1 },
  134. { "widthFactor": 0.1 }
  135. ]
  136. }
  137. ]
  138. }
  139. }
  140. ]
  141. }
  142. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement