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 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. GameSidePanel < UIMiniWindowContainer
  2. image-source: /images/ui/panel_side
  3. image-border: 4
  4. padding: 4
  5. width: 198
  6. layout:
  7. type: verticalBox
  8. //spacing: 1
  9. GameBottomPanel < Panel
  10. image-source: /images/ui/panel_bottom
  11. image-border: 4
  12. GameMapPanel < UIGameMap
  13. padding: 4
  14. image-source: /images/ui/panel_map
  15. image-border: 4
  16. $on:
  17. padding: 0
  18. UIWidget
  19. id: gameRootPanel
  20. anchors.fill: parent
  21. anchors.top: topMenu.bottom
  22. GameMapPanel
  23. id: gameMapPanel
  24. anchors.left: gameLeftPanel.right
  25. anchors.right: gameRightPanel.left
  26. anchors.top: parent.top
  27. anchors.bottom: gameBottomPanel.top
  28. focusable: false
  29. Button
  30. id: showTopMenuButton
  31. anchors.top: parent.top
  32. anchors.left: parent.left
  33. !text: tr('Show Top Menu')
  34. height: 32
  35. visible: false
  36. GameBottomPanel
  37. id: gameBottomPanel
  38. anchors.left: gameLeftPanel.right
  39. anchors.right: gameRightPanel.left
  40. anchors.top: bottomSplitter.top
  41. anchors.bottom: parent.bottom
  42. GameSidePanel
  43. id: gameLeftPanel
  44. anchors.left: parent.left
  45. anchors.top: parent.top
  46. anchors.bottom: parent.bottom
  47. focusable: false
  48. visible: true
  49. on: true
  50. $!on:
  51. width: 0
  52. visible: false
  53. GameSidePanel
  54. id: gameRightPanel
  55. anchors.right: parent.right
  56. anchors.top: parent.top
  57. anchors.bottom: parent.bottom
  58. focusable: false
  59. on: true
  60. Splitter
  61. id: bottomSplitter
  62. anchors.left: gameLeftPanel.right
  63. anchors.right: gameRightPanel.left
  64. anchors.bottom: parent.bottom
  65. relative-margin: bottom
  66. margin-bottom: 172
  67. @canUpdateMargin: function(self, newMargin) if modules.client_options.getOption('dontStretchShrink') then return self:getMarginBottom() end return math.max(math.min(newMargin, self:getParent():getHeight() - 300), 100) end
  68. @onGeometryChange: function(self) self:setMarginBottom(math.min(math.max(self:getParent():getHeight() - 300, 100), self:getMarginBottom())) end
  69. UIWidget
  70. id: mouseGrabber
  71. focusable: false
  72. visible: false