mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 19:44:54 +02:00
new lua function for creating widgets: createWidget
This commit is contained in:
@@ -10,7 +10,7 @@ function MessageBox.create(title, text, flags)
|
||||
setmetatable(box, MessageBox)
|
||||
|
||||
-- create messagebox window
|
||||
local window = UI.display('messagebox.otui', { locked = true })
|
||||
local window = displayUI('messagebox.otui', { locked = true })
|
||||
window:setTitle(title)
|
||||
|
||||
local label = window:getChildById('messageBoxLabel')
|
||||
|
Reference in New Issue
Block a user