CorsixTH Lua Documentation

UIDirectoryBrowser Class

Prompter for Theme Hospital install directory

Declared on: line 97 of Lua/dialogs/resizables/directory_browser.lua.
Inheritance: UIDirectoryBrowser » UIResizable » Window

Method Index

Member Index

(*) only used in superclass methods
function UIDirectoryBrowser:UIDirectoryBrowser(ui, mode, instruction, treenode_class, callback)

valid are "menu" or "dir_browser".

a path string as argument.

Parameters:

NameTypeDescription
ui ? The active UI to hook into.
mode ? Whether the dialog has been opened from the main_menu or somewhere else. Currently
instruction ? The textual instruction what the user should do in the dialog.
treenode_class ? What TreeNode subclass the nodes will be built from. E.g. "InstallDirTreeNode"
callback ? The function that is called when the user has chosen a directory. Gets

Declared on: line 100 of Lua/dialogs/resizables/directory_browser.lua.

function UIDirectoryBrowser:draw(canvas, x, y)

Parameters:

NameTypeDescription
canvas ? ?
x ? ?
y ? ?

Overrides: UIResizable:draw.
Declared on: line 189 of Lua/dialogs/resizables/directory_browser.lua.

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