CorsixTH Lua Documentation

UISaveMap Class

Save Map Window

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

Method Index

Member Index

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

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

Declared on: line 66 of Lua/dialogs/resizables/file_browsers/save_map.lua.

function UISaveMap:choiceMade(name)

Function called by clicking button of existing save #num

Parameters:

NameTypeDescription
name ? ?

Overrides: UIFileBrowser:choiceMade.
Declared on: line 91 of Lua/dialogs/resizables/file_browsers/save_map.lua.

function UISaveMap:confirmName()

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

Overrides: UIFileBrowser:confirmName.
Declared on: line 79 of Lua/dialogs/resizables/file_browsers/save_map.lua.

function UISaveMap:doSave(filename)

Actually do save the map with given filename.

Parameters:

NameTypeDescription
filename ? ?

Declared on: line 105 of Lua/dialogs/resizables/file_browsers/save_map.lua.

function UISaveMap:setInputValue(label)

Updates the textbox to selected file

Parameters:

NameTypeDescription
label string Selected file name

Overrides: UIFileBrowser:setInputValue.
Declared on: line 72 of Lua/dialogs/resizables/file_browsers/save_map.lua.

function UISaveMap:trySave(filename)

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

Parameters:

NameTypeDescription
filename ? ?

Declared on: line 96 of Lua/dialogs/resizables/file_browsers/save_map.lua.