mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 19:44:54 +02:00
major UIWidget rewrite with new features
This commit is contained in:
@@ -13,7 +13,7 @@ local function moveToolTip(tooltip)
|
||||
else
|
||||
pos.x = pos.x + 10
|
||||
end
|
||||
tooltip:moveTo(pos)
|
||||
tooltip:setPos(pos)
|
||||
end
|
||||
|
||||
-- public functions
|
||||
@@ -28,7 +28,7 @@ function ToolTip.display(text)
|
||||
local size = label:getSize()
|
||||
size.width = size.width + 4
|
||||
size.height = size.height + 4
|
||||
currentToolTip:resize(size)
|
||||
currentToolTip:setSize(size)
|
||||
moveToolTip(currentToolTip)
|
||||
end
|
||||
end
|
||||
|
@@ -1,4 +1,4 @@
|
||||
RectPanel
|
||||
Panel
|
||||
background-color: #111111bb
|
||||
size: 200 200
|
||||
id: toolTip
|
||||
|
Reference in New Issue
Block a user