mirror of
https://github.com/mehah/otclient
synced 2026-08-15 16:29:06 -04:00
255 lines
5.9 KiB
Text
255 lines
5.9 KiB
Text
GameSidePanel < UIMiniWindowContainer
|
|
image-source: /images/ui/2pixel_up_frame_borderimage
|
|
image-border: 4
|
|
width: 176
|
|
layout:
|
|
type: verticalBox
|
|
//spacing: 1
|
|
|
|
SelectColumnButton < CheckBox
|
|
visible: false
|
|
opacity: 0.3
|
|
$hover:
|
|
opacity: 1
|
|
|
|
GameBottomPanel < UIWindow
|
|
image-source: /images/ui/background_dark
|
|
image-repeated: true
|
|
padding-top: 6
|
|
draggable:false
|
|
|
|
UIWidget
|
|
image-source: /images/ui/divider_horizontal
|
|
anchors.left: parent.left
|
|
anchors.right: parent.right
|
|
anchors.top: parent.top
|
|
margin-top: -6
|
|
height: 5
|
|
focusable: false
|
|
|
|
ResizeBorder
|
|
id: bottomResizeBorder
|
|
anchors.bottom: parent.bottom
|
|
anchors.left: parent.left
|
|
anchors.right: parent.right
|
|
enabled: false
|
|
border: 4 red
|
|
height: 5
|
|
margin-top: 5
|
|
minimum: 170
|
|
|
|
ResizeBorder
|
|
id: rightResizeBorder
|
|
anchors.right: parent.right
|
|
anchors.top: parent.top
|
|
anchors.bottom: parent.bottom
|
|
enabled: false
|
|
border: 3 blue
|
|
minimum: 300
|
|
|
|
|
|
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: gameLeftExtraPanel.right
|
|
anchors.right: gameRightExtraPanel.left
|
|
anchors.top: gameTopPanel.bottom
|
|
anchors.bottom: gameBottomPanel.top
|
|
|
|
focusable: false
|
|
|
|
Button
|
|
id: showTopMenuButton
|
|
anchors.top: parent.top
|
|
anchors.left: parent.left
|
|
!text: tr('Show Top Menu')
|
|
height: 32
|
|
visible: false
|
|
|
|
GameBottomPanel
|
|
id: gameBottomPanel
|
|
anchors.left: gameLeftExtraPanel.right
|
|
anchors.right: gameRightExtraPanel.left
|
|
anchors.top: gameBottomStatsBarPanel.bottom
|
|
anchors.bottom: parent.bottom
|
|
|
|
GameSidePanel
|
|
id: gameLeftPanel
|
|
anchors.left: parent.left
|
|
anchors.top: parent.top
|
|
anchors.bottom: parent.bottom
|
|
focusable: false
|
|
visible: true
|
|
on: true
|
|
$!on:
|
|
width: 0
|
|
visible: false
|
|
|
|
GameSidePanel
|
|
id: gameLeftExtraPanel
|
|
anchors.left: prev.right
|
|
anchors.top: parent.top
|
|
anchors.bottom: parent.bottom
|
|
margin-left: 1
|
|
focusable: false
|
|
visible: true
|
|
on: true
|
|
$!on:
|
|
width: 0
|
|
visible: false
|
|
|
|
GameSidePanel
|
|
id: gameMainRightPanel
|
|
anchors.right: parent.right
|
|
anchors.top: parent.top
|
|
&ignoreFillAll: true
|
|
&onlyPhantomDrop: true
|
|
height: 200
|
|
focusable: false
|
|
on: true
|
|
|
|
GameSidePanel
|
|
id: gameRightPanel
|
|
anchors.right: parent.right
|
|
anchors.top: gameMainRightPanel.bottom
|
|
anchors.bottom: parent.bottom
|
|
focusable: false
|
|
on: true
|
|
|
|
GameSidePanel
|
|
id: gameRightExtraPanel
|
|
anchors.right: prev.left
|
|
anchors.top: parent.top
|
|
anchors.bottom: parent.bottom
|
|
margin-right: 1
|
|
focusable: false
|
|
visible: true
|
|
on: true
|
|
$!on:
|
|
width: 0
|
|
visible: false
|
|
|
|
SelectColumnButton
|
|
id: gameSelectLeftColumn
|
|
anchors.right: gameLeftPanel.right
|
|
anchors.bottom: gameLeftPanel.bottom
|
|
|
|
SelectColumnButton
|
|
id: gameSelectRightColumn
|
|
anchors.right: gameRightPanel.right
|
|
anchors.bottom: gameRightPanel.bottom
|
|
|
|
SelectColumnButton
|
|
id: gameSelectRightExtraColumn
|
|
anchors.right: gameRightExtraPanel.right
|
|
anchors.bottom: gameRightExtraPanel.bottom
|
|
|
|
SelectColumnButton
|
|
id: gameSelectLeftExtraColumn
|
|
anchors.right: gameLeftExtraPanel.right
|
|
anchors.bottom: gameLeftExtraPanel.bottom
|
|
|
|
Splitter
|
|
id: bottomSplitter
|
|
anchors.left: gameLeftExtraPanel.right
|
|
anchors.right: gameRightExtraPanel.left
|
|
anchors.bottom: parent.bottom
|
|
relative-margin: bottom
|
|
margin-bottom: 172
|
|
image-source: /images/ui/divider_horizontal
|
|
height: 5
|
|
@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), 160) end
|
|
@onGeometryChange: function(self) self:setMarginBottom(math.min(math.max(self:getParent():getHeight() - 300, 160), self:getMarginBottom())) end
|
|
|
|
UIWidget
|
|
id: mouseGrabber
|
|
focusable: false
|
|
visible: false
|
|
|
|
TopStatsBar
|
|
id: gameTopPanel
|
|
anchors.left: gameLeftExtraPanel.right
|
|
anchors.right: gameRightExtraPanel.left
|
|
anchors.top: parent.top
|
|
focusable: false
|
|
|
|
TopStatsBar
|
|
id: gameBottomStatsBarPanel
|
|
anchors.left: gameLeftExtraPanel.right
|
|
anchors.right: gameRightExtraPanel.left
|
|
anchors.top: bottomSplitter.bottom
|
|
margin-left: 1
|
|
margin-right: 1
|
|
focusable: false
|
|
|
|
Button
|
|
id: leftIncreaseSidePanels
|
|
anchors.left: gameLeftExtraPanel.right
|
|
anchors.top: parent.top
|
|
image-source: /images/ui/topstats_button_panel
|
|
image-clip: 27 0 9 27
|
|
size: 9 27
|
|
@onClick: onIncreaseLeftPanels()
|
|
|
|
$pressed !disabled:
|
|
image-clip: 36 0 9 27
|
|
|
|
$disabled:
|
|
image-clip: 45 0 9 27
|
|
|
|
Button
|
|
id: leftDecreaseSidePanels
|
|
anchors.left: leftIncreaseSidePanels.left
|
|
anchors.top: leftIncreaseSidePanels.bottom
|
|
image-source: /images/ui/topstats_button_panel
|
|
image-clip: 0 0 9 27
|
|
size: 9 27
|
|
@onClick: onDecreaseLeftPanels()
|
|
|
|
$pressed !disabled:
|
|
image-clip: 9 0 9 27
|
|
|
|
$disabled:
|
|
image-clip: 18 0 9 27
|
|
|
|
Button
|
|
id: rightIncreaseSidePanels
|
|
anchors.right: gameRightExtraPanel.left
|
|
anchors.top: parent.top
|
|
image-source: /images/ui/topstats_button_panel
|
|
image-clip: 27 27 9 27
|
|
size: 9 27
|
|
@onClick: onIncreaseRightPanels()
|
|
|
|
$pressed !disabled:
|
|
image-clip: 36 27 9 27
|
|
|
|
$disabled:
|
|
image-clip: 45 27 9 27
|
|
|
|
Button
|
|
id: rightDecreaseSidePanels
|
|
anchors.right: rightIncreaseSidePanels.right
|
|
anchors.top: rightIncreaseSidePanels.bottom
|
|
image-source: /images/ui/topstats_button_panel
|
|
image-clip: 0 27 9 27
|
|
size: 9 27
|
|
@onClick: onDecreaseRightPanels()
|
|
|
|
$pressed !disabled:
|
|
image-clip: 9 27 9 27
|
|
|
|
$disabled:
|
|
image-clip: 18 27 9 27
|