otclientv8/modules/game_interface/gameinterface.otui
2019-10-02 03:38:52 +02:00

80 lines
1.9 KiB
Plaintext

GameSidePanel < UIMiniWindowContainer
image-source: /images/ui/panel_side
image-border: 4
padding: 4
padding-top: 0
width: 198
focusable: false
on: true
layout:
type: verticalBox
//spacing: 1
GameBottomPanel < Panel
GameMapPanel < UIGameMap
padding: 4
image-source: /images/ui/panel_map
image-border: 4
$on:
padding: 0
UIWidget
id: gameRootPanel
anchors.fill: parent
anchors.top: topMenu.bottom
GameMapPanel
id: gameMapPanel
anchors.left: gameLeftPanels.right
anchors.right: gameRightPanels.left
anchors.top: parent.top
anchors.bottom: gameBottomPanel.top
focusable: false
Panel
id: gameLeftPanels
anchors.left: parent.left
anchors.top: parent.top
anchors.bottom: parent.bottom
focusable: false
layout:
type: horizontalBox
fit-children: true
spacing: -1
Panel
id: gameRightPanels
anchors.right: parent.right
anchors.top: parent.top
anchors.bottom: parent.bottom
focusable: false
layout:
type: horizontalBox
fit-children: true
spacing: -1
GameBottomPanel
id: gameBottomPanel
anchors.left: gameLeftPanels.right
anchors.right: gameRightPanels.left
anchors.top: bottomSplitter.top
anchors.bottom: parent.bottom
Splitter
id: bottomSplitter
anchors.left: gameLeftPanels.right
anchors.right: gameRightPanels.left
anchors.bottom: parent.bottom
relative-margin: bottom
margin-bottom: 172
@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
@onGeometryChange: function(self) self:setMarginBottom(math.min(math.max(self:getParent():getHeight() - 300, 100), self:getMarginBottom())) end
UIWidget
id: mouseGrabber
focusable: false
visible: false