CorsixTH Lua Documentation

Graphics Class

Layer for loading (and subsequently caching) graphical resources.

Declared on: line 27 of Lua/graphics.lua.
Full description:
The Graphics class handles loading and caching of graphics resources. It can adapt as the API to C changes, and hide these changes from most of the other Lua code.

Method Index

Member Index

function Graphics:Graphics(app)

Parameters:

NameTypeDescription
app ? ?

Declared on: line 62 of Lua/graphics.lua.

function Graphics:hasLanguageFont(font)

Parameters:

NameTypeDescription
font ? ?

Declared on: line 270 of Lua/graphics.lua.

function Graphics:loadAnimations(dir, prefix)

Parameters:

NameTypeDescription
dir ? ?
prefix ? ?

Declared on: line 388 of Lua/graphics.lua.

function Graphics:loadCursor(sheet, index, hot_x, hot_y)

Parameters:

NameTypeDescription
sheet ? ?
index ? ?
hot_x ? ?
hot_y ? ?

Declared on: line 127 of Lua/graphics.lua.

function Graphics:loadFont(sprite_table, x_sep, y_sep, ...)

Parameters:

NameTypeDescription
sprite_table ? ?
x_sep ? ?
y_sep ? ?
... ? ?

Declared on: line 343 of Lua/graphics.lua.

function Graphics:loadFontFile()

Tries to load the font file given in the config file as unicode_font.

If it is not found it tries to find one in the operating system.

Declared on: line 93 of Lua/graphics.lua.

function Graphics:loadGhost(dir, name, index)

Parameters:

NameTypeDescription
dir ? ?
name ? ?
index ? ?

Declared on: line 202 of Lua/graphics.lua.

function Graphics:loadLanguageFont(name, sprite_table, ...)

Parameters:

NameTypeDescription
name ? ?
sprite_table ? ?
... ? ?

Declared on: line 320 of Lua/graphics.lua.

function Graphics:loadMainCursor(id)

Parameters:

NameTypeDescription
id ? ?

Declared on: line 114 of Lua/graphics.lua.

function Graphics:loadPalette(dir, name)

Parameters:

NameTypeDescription
dir ? ?
name ? ?

Declared on: line 186 of Lua/graphics.lua.

function Graphics:loadRaw(name, width, height, dir, paldir, pal)

Parameters:

NameTypeDescription
name ? ?
width ? ?
height ? ?
dir ? ?
paldir ? ?
pal ? ?

Declared on: line 212 of Lua/graphics.lua.

function Graphics:loadSpriteTable(dir, name, complex, palette)

Parameters:

NameTypeDescription
dir ? ?
name ? ?
complex ? ?
palette ? ?

Declared on: line 410 of Lua/graphics.lua.

function Graphics:makeGreyscaleGhost(pal)

Parameters:

NameTypeDescription
pal ? ?

Declared on: line 156 of Lua/graphics.lua.

function Graphics:updateTarget(target)

Parameters:

NameTypeDescription
target ? ?

Declared on: line 436 of Lua/graphics.lua.

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