tibia-client/modules/game_interface/gameinterface.otui

76 lines
1.8 KiB
Plaintext
Raw Normal View History

GameSidePanel < UIMiniWindowContainer
image-source: /images/ui/panel_side
image-border: 4
padding: 4
width: 198
2013-01-25 20:26:51 +01:00
layout:
type: verticalBox
//spacing: 1
GameBottomPanel < Panel
image-source: /images/ui/panel_bottom
image-border: 4
GameMapPanel < UIGameMap
padding: 4
image-source: /images/ui/panel_map
image-border: 4
2013-01-25 20:26:51 +01:00
$on:
padding: 0
UIWidget
id: gameRootPanel
2011-08-29 05:04:23 +02:00
anchors.fill: parent
2011-11-02 04:02:56 +01:00
anchors.top: topMenu.bottom
2011-08-29 05:04:23 +02:00
2012-03-23 04:06:00 +01:00
GameMapPanel
id: gameMapPanel
anchors.left: gameLeftPanel.right
anchors.right: gameRightPanel.left
anchors.top: parent.top
anchors.bottom: gameBottomPanel.top
focusable: false
GameBottomPanel
id: gameBottomPanel
anchors.left: gameLeftPanel.right
anchors.right: gameRightPanel.left
2012-03-26 20:33:00 +02:00
anchors.top: bottomSplitter.top
2012-03-23 04:06:00 +01:00
anchors.bottom: parent.bottom
GameSidePanel
2012-03-26 20:33:00 +02:00
id: gameLeftPanel
anchors.left: parent.left
anchors.top: parent.top
anchors.bottom: parent.bottom
focusable: false
2012-06-21 21:31:22 +02:00
visible: true
on: true
$!on:
width: 0
visible: false
GameSidePanel
2012-03-26 20:33:00 +02:00
id: gameRightPanel
anchors.right: parent.right
anchors.top: parent.top
anchors.bottom: parent.bottom
focusable: false
2012-06-21 21:31:22 +02:00
on: true
2012-03-26 20:33:00 +02:00
Splitter
id: bottomSplitter
anchors.left: gameLeftPanel.right
anchors.right: gameRightPanel.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
2012-03-26 20:33:00 +02:00
UIWidget
id: mouseGrabber
focusable: false
visible: false