mirror of
https://github.com/edubart/otclient.git
synced 2025-10-16 04:24:54 +02:00
Fix issue #21, but miniwindows can be a lot smarter
This commit is contained in:
@@ -21,11 +21,12 @@ function init()
|
||||
|
||||
g_keyboard.bindKeyDown('Ctrl+I', toggle)
|
||||
|
||||
inventoryButton = TopMenu.addRightGameToggleButton('inventoryButton', tr('Inventory') .. ' (Ctrl+I)', 'inventory.png', toggle)
|
||||
inventoryButton:setOn(true)
|
||||
|
||||
inventoryWindow = g_ui.loadUI('inventory.otui', modules.game_interface.getRightPanel())
|
||||
inventoryWindow:disableResize()
|
||||
inventoryPanel = inventoryWindow:getChildById('contentsPanel')
|
||||
inventoryButton = TopMenu.addRightGameToggleButton('inventoryButton', tr('Inventory') .. ' (Ctrl+I)', 'inventory.png', toggle)
|
||||
inventoryButton:setOn(true)
|
||||
|
||||
refresh()
|
||||
end
|
||||
|
Reference in New Issue
Block a user