mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
ui changes
* create UIResizeBorder * restore miniwindow * scroll fixes
This commit is contained in:
@@ -114,11 +114,15 @@ function Terminal.init()
|
||||
terminalWindow.onDoubleClick = function(self)
|
||||
if poped then
|
||||
self:fill('parent')
|
||||
self:getChildById('bottomResizeBorder'):disable()
|
||||
self:getChildById('rightResizeBorder'):disable()
|
||||
poped = false
|
||||
else
|
||||
self:breakAnchors()
|
||||
self:resize(g_window.getWidth()/2, g_window.getHeight()/2)
|
||||
self:move(g_window.getWidth()/2, g_window.getHeight()/2)
|
||||
self:getChildById('bottomResizeBorder'):enable()
|
||||
self:getChildById('rightResizeBorder'):enable()
|
||||
poped = true
|
||||
end
|
||||
end
|
||||
|
@@ -41,4 +41,16 @@ UIWindow
|
||||
margin-left: 5
|
||||
font: terminus-14px-bold
|
||||
|
||||
|
||||
ResizeBorder
|
||||
id: bottomResizeBorder
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
enabled: false
|
||||
|
||||
ResizeBorder
|
||||
id: rightResizeBorder
|
||||
anchors.right: parent.right
|
||||
anchors.top: parent.top
|
||||
anchors.bottom: parent.bottom
|
||||
enabled: false
|
||||
|
Reference in New Issue
Block a user