mirror of
https://github.com/edubart/otclient.git
synced 2025-10-16 04:24:54 +02:00
change loadUI/UI.display lua API
This commit is contained in:
@@ -16,7 +16,7 @@ local InventorySlotAmmo = 10
|
||||
|
||||
-- public functions
|
||||
function Inventory.create()
|
||||
window = loadUI("/inventory/inventory.otui", Game.gameRightPanel)
|
||||
window = UI.display('inventory.otui', { parent = Game.gameRightPanel })
|
||||
|
||||
local itemWidget = window:getChildById('feet')
|
||||
window:setHeight(itemWidget:getPosition().y + itemWidget:getHeight() - window:getPosition().y)
|
||||
|
Reference in New Issue
Block a user