mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 03:54:54 +02:00
add command completion to console
This commit is contained in:
@@ -10,6 +10,8 @@ Module
|
||||
- core_ui
|
||||
|
||||
onLoad: |
|
||||
require 'ext/table'
|
||||
require 'ext/string'
|
||||
require 'constants'
|
||||
require 'util'
|
||||
require 'widget'
|
||||
|
@@ -19,7 +19,7 @@ function MessageBox.create(title, text, flags)
|
||||
label:resizeToText()
|
||||
|
||||
-- set window size based on label size
|
||||
window:setWidth(label:getWidth() + 48)
|
||||
window:setWidth(math.max(label:getWidth() + 48, 120))
|
||||
window:setHeight(label:getHeight() + 64)
|
||||
window:updateParentLayout()
|
||||
|
||||
|
@@ -24,3 +24,9 @@ function connect(object, signalsAndSlots)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function dumpWidgets()
|
||||
for i=1,UI.root:getChildCount() do
|
||||
print(UI.root:getChildByIndex(i):getId())
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user