CorsixTH Lua Documentation

UISaveGame Class

Save Game Window

Declared on: line 21 of Lua/dialogs/resizables/file_browsers/save_game.lua.
Inheritance: UISaveGame » UIFileBrowser » UIResizable » Window

Method Index

Member Index

(*) only used in superclass methods
function UISaveGame:abortName()

Function called when textbox is aborted (e.g. by pressing escape)

Declared on: line 61 of Lua/dialogs/resizables/file_browsers/save_game.lua.

function UISaveGame:choiceMade(name)

Function called by clicking button of existing save #num

Parameters:

NameTypeDescription
name ? ?

Overrides: UIFileBrowser:choiceMade.
Declared on: line 86 of Lua/dialogs/resizables/file_browsers/save_game.lua.

function UISaveGame:confirmName()

Function called when textbox is confirmed (e.g. by pressing enter)

Overrides: UIFileBrowser:confirmName.
Declared on: line 74 of Lua/dialogs/resizables/file_browsers/save_game.lua.

function UISaveGame:doSave(filename)

Actually do save the game with given filename.

Parameters:

NameTypeDescription
filename ? ?

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

function UISaveGame:setInputValue(label)

Updates the textbox to selected file

Parameters:

NameTypeDescription
label string Selected file name

Overrides: UIFileBrowser:setInputValue.
Declared on: line 67 of Lua/dialogs/resizables/file_browsers/save_game.lua.

function UISaveGame:trySave(filename)

Try to save the game with given filename; if already exists, create confirmation window first.

Parameters:

NameTypeDescription
filename ? ?

Declared on: line 91 of Lua/dialogs/resizables/file_browsers/save_game.lua.