No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

gameinterface.otui 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. GameSidePanel < UIMiniWindowContainer
  2. image-source: /images/sidepanel.png
  3. image-border: 4
  4. padding: 4
  5. width: 198
  6. GameBottomPanel < Panel
  7. image-source: /images/bottompanel.png
  8. image-border: 4
  9. GameMapPanel < UIGameMap
  10. padding: 4
  11. image-source: /images/mappanel.png
  12. image-border: 4
  13. UIWidget
  14. id: gameRootPanel
  15. anchors.fill: parent
  16. anchors.top: topMenu.bottom
  17. GameMapPanel
  18. id: gameMapPanel
  19. anchors.left: gameLeftPanel.right
  20. anchors.right: gameRightPanel.left
  21. anchors.top: parent.top
  22. anchors.bottom: gameBottomPanel.top
  23. focusable: false
  24. GameBottomPanel
  25. id: gameBottomPanel
  26. anchors.left: gameLeftPanel.right
  27. anchors.right: gameRightPanel.left
  28. anchors.top: bottomSplitter.top
  29. anchors.bottom: parent.bottom
  30. GameSidePanel
  31. id: gameLeftPanel
  32. layout: verticalBox
  33. anchors.left: parent.left
  34. anchors.top: parent.top
  35. anchors.bottom: parent.bottom
  36. focusable: false
  37. visible: true
  38. on: true
  39. $!on:
  40. width: 0
  41. visible: false
  42. GameSidePanel
  43. id: gameRightPanel
  44. layout: verticalBox
  45. anchors.right: parent.right
  46. anchors.top: parent.top
  47. anchors.bottom: parent.bottom
  48. focusable: false
  49. on: true
  50. Splitter
  51. id: bottomSplitter
  52. anchors.left: gameLeftPanel.right
  53. anchors.right: gameRightPanel.left
  54. anchors.bottom: parent.bottom
  55. relative-margin: bottom
  56. margin-bottom: 172
  57. @canUpdateMargin: function(self, newMargin) return math.max(math.min(newMargin, self:getParent():getHeight() - 300), 100) end
  58. @onGeometryChange: function(self) self:setMarginBottom(math.min(math.max(self:getParent():getHeight() - 300, 100), self:getMarginBottom())) end
  59. UIWidget
  60. id: mouseGrabber
  61. focusable: false
  62. visible: false