Advertisement
Kevick

era no gameinterface.otui

Jun 29th, 2016
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.89 KB | None | 0 0
  1. ameSidePanel < 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.   GameBottomPanel
  30.     id: gameBottomPanel
  31.     anchors.left: gameLeftPanel.right
  32.     anchors.right: gameRightPanel.left
  33.     anchors.top: bottomSplitter.top
  34.     anchors.bottom: parent.bottom
  35.   GameSidePanel
  36.     id: gameLeftPanel
  37.     anchors.left: parent.left
  38.     anchors.top: parent.top
  39.     anchors.bottom: parent.bottom
  40.     focusable: false
  41.     visible: true
  42.     on: true
  43.     $!on:
  44.       width: 0
  45.       visible: false
  46.   GameSidePanel
  47.     id: gameRightPanel
  48.     anchors.right: parent.right
  49.     anchors.top: parent.top
  50.     anchors.bottom: parent.bottom
  51.     focusable: false
  52.     on: true
  53.   Splitter
  54.     id: bottomSplitter
  55.     anchors.left: gameLeftPanel.right
  56.     anchors.right: gameRightPanel.left
  57.     anchors.bottom: parent.bottom
  58.     relative-margin: bottom
  59.     margin-bottom: 172
  60.     @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
  61.     @onGeometryChange: function(self) self:setMarginBottom(math.min(math.max(self:getParent():getHeight() - 300, 100), self:getMarginBottom())) end
  62.   UIWidget
  63.     id: mouseGrabber
  64.     focusable: false
  65.     visible: false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement