CorsixTH Lua Documentation

UIConfirmDialog Class

Dialog for "Are you sure you want to quit?" and similar yes/no questions.

Declared on: line 21 of Lua/dialogs/confirm_dialog.lua.
Inheritance: UIConfirmDialog ยป Window

Method Index

Member Index

(*) only used in superclass methods
function UIConfirmDialog:UIConfirmDialog(ui, text, callback_ok, callback_cancel)

Parameters:

NameTypeDescription
ui ? ?
text ? ?
callback_ok ? ?
callback_cancel ? ?

Declared on: line 24 of Lua/dialogs/confirm_dialog.lua.

function UIConfirmDialog:close(ok)

Closes the confirm dialog

Parameters:

NameTypeDescription
ok boolean or or or nil whether to call the confirm callback (true) or cancel callback (false/nil)

Overrides: Window:close.
Declared on: line 70 of Lua/dialogs/confirm_dialog.lua.

function UIConfirmDialog:draw(canvas, x, y)

Parameters:

NameTypeDescription
canvas ? ?
x ? ?
y ? ?

Overrides: Window:draw.
Declared on: line 86 of Lua/dialogs/confirm_dialog.lua.

Page generated on Sat Feb 07, 2015 at 18:38:28 by LDocGen.