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:
Eduardo Bart
2012-03-22 22:52:31 -03:00
parent 33458a3e39
commit 79a1d66f3f
9 changed files with 99 additions and 2 deletions

View File

@@ -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