mirror of
https://github.com/edubart/otclient.git
synced 2025-10-17 04:53:27 +02:00
improve combobox and menu design
This commit is contained in:
@@ -33,6 +33,8 @@ function UIComboBox:onMousePress(mousePos, mouseButton)
|
||||
end
|
||||
menu:setWidth(self:getWidth())
|
||||
menu:display({ x = self:getX(), y = self:getY() + self:getHeight() })
|
||||
connect(menu, { onDestroy = function() self:setOn(false) end })
|
||||
self:setOn(true)
|
||||
return true
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user