CorsixTH Lua Documentation

UIFileBrowser Class

A file browser with a scrollbar. Used by load_game and save_game.

Declared on: line 146 of Lua/dialogs/resizables/file_browser.lua.
Inheritance: UIFileBrowser » UIResizable » Window
Subclasses: UIChooseFont, UILoadGame, UISaveGame

Method Index

Member Index

(*) only used in superclass methods
function UIFileBrowser:UIFileBrowser(ui, mode, title, vertical_size, root, show_dates)

Constructs the dialog.

Parameters:

NameTypeDescription
ui UI The active ui.
mode string Either "menu" or "game" depending on which mode the game is in right now.
title string The desired title of the dialog.
vertical_size ? ?
root ? ?
show_dates ? ?

Declared on: line 161 of Lua/dialogs/resizables/file_browser.lua.

function UIFileBrowser:choiceMade(name)

Function stub for dialogs to override. This function is called each time a file is chosen.

Parameters:

NameTypeDescription
name string Name of the file chosen.

Declared on: line 212 of Lua/dialogs/resizables/file_browser.lua.

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