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