mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 19:44:54 +02:00
Minor Edits to UIMiniWindow
Allow for a double click on the Top Bar of a UIMiniWindow to function the same as pessing the minimize/maximize button.
This commit is contained in:
@@ -81,6 +81,15 @@ function UIMiniWindow:setup()
|
||||
self:minimize()
|
||||
end
|
||||
end
|
||||
|
||||
self:getChildById('miniwindowTopBar').onDoubleClick =
|
||||
function()
|
||||
if self:isOn() then
|
||||
self:maximize()
|
||||
else
|
||||
self:minimize()
|
||||
end
|
||||
end
|
||||
|
||||
local oldParent = self:getParent()
|
||||
|
||||
|
Reference in New Issue
Block a user