mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
Fix rsa change, messagebox and remove lua variable from c++
This commit is contained in:
@@ -51,18 +51,24 @@ function UIMessageBox.display(title, message, buttons, onEnterCallback, onEscape
|
||||
end
|
||||
|
||||
function displayInfoBox(title, message)
|
||||
local defaultCallback = function(self) self:ok() end
|
||||
return UIMessageBox.display(title, message, {{text='Ok', callback=defaultCallback}}, defaultCallback, defaultCallback)
|
||||
local messageBox
|
||||
local defaultCallback = function() messageBox:ok() end
|
||||
messageBox = UIMessageBox.display(title, message, {{text='Ok', callback=defaultCallback}}, defaultCallback, defaultCallback)
|
||||
return messageBox
|
||||
end
|
||||
|
||||
function displayErrorBox(title, message)
|
||||
local defaultCallback = function(self) self:ok() end
|
||||
return UIMessageBox.display(title, message, {{text='Ok', callback=defaultCallback}}, defaultCallback, defaultCallback)
|
||||
local messageBox
|
||||
local defaultCallback = function() messageBox:ok() end
|
||||
messageBox = UIMessageBox.display(title, message, {{text='Ok', callback=defaultCallback}}, defaultCallback, defaultCallback)
|
||||
return messageBox
|
||||
end
|
||||
|
||||
function displayCancelBox(title, message)
|
||||
local defaultCallback = function(self) self:cancel() end
|
||||
return UIMessageBox.display(title, message, {{text='Cancel', callback=defaultCallback}}, defaultCallback, defaultCallback)
|
||||
local messageBox
|
||||
local defaultCallback = function() messageBox:cancel() end
|
||||
messageBox = UIMessageBox.display(title, message, {{text='Cancel', callback=defaultCallback}}, defaultCallback, defaultCallback)
|
||||
return messageBox
|
||||
end
|
||||
|
||||
function displayGeneralBox(title, message, buttons, onEnterCallback, onEscapeCallback)
|
||||
|
Reference in New Issue
Block a user