mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 19:44:54 +02:00
add splitter widget
* add horizontal/vertical cursor * possibildiade to resize game map with the new splitter widget * fix reload warnings in textmessage
This commit is contained in:
@@ -38,6 +38,7 @@ UIWidget
|
||||
anchors.left: gameLeftPanel.right
|
||||
anchors.right: gameRightPanel.left
|
||||
anchors.bottom: parent.bottom
|
||||
@onGeometryChange: self:getParent():getChildById('mapSplitter'):setGrow(self:getHeight() > 100)
|
||||
|
||||
GameMapPanel
|
||||
id: gameMapPanel
|
||||
@@ -46,6 +47,16 @@ UIWidget
|
||||
anchors.top: parent.top
|
||||
anchors.bottom: gameBottomPanel.top
|
||||
focusable: false
|
||||
@onGeometryChange: self:getParent():getChildById('mapSplitter'):setShrink(self:getHeight() > 300)
|
||||
|
||||
UISplitter
|
||||
id: mapSplitter
|
||||
anchors.left: gameBottomPanel.left
|
||||
anchors.right: gameBottomPanel.right
|
||||
anchors.top: gameBottomPanel.top
|
||||
attached-to: gameBottomPanel
|
||||
height: 4
|
||||
margin-top: -2
|
||||
|
||||
UIWidget
|
||||
id: mouseGrabber
|
||||
|
Reference in New Issue
Block a user