CorsixTH Lua Documentation

UIMapEditor Class

Declared on: line 27 of Lua/dialogs/map_editor.lua.
Inheritance: UIMapEditor ยป Window

Method Index

Member Index

(*) only used in superclass methods
function UIMapEditor:UIMapEditor(ui)

Parameters:

NameTypeDescription
ui ? ?

Declared on: line 32 of Lua/dialogs/map_editor.lua.

function UIMapEditor:doLargePaint(x, y)

Parameters:

NameTypeDescription
x ? ?
y ? ?

Declared on: line 318 of Lua/dialogs/map_editor.lua.

function UIMapEditor:draw(canvas, ...)

Parameters:

NameTypeDescription
canvas ? ?
... ? ?

Overrides: Window:draw.
Declared on: line 157 of Lua/dialogs/map_editor.lua.

function UIMapEditor:finishPaint(apply)

Remove the paint preview from the UI layer, and optionally apply the paint to the actual layers.

Parameters:

NameTypeDescription
apply ? ?

Declared on: line 395 of Lua/dialogs/map_editor.lua.

function UIMapEditor:onMouseDown(button, x, y)

Parameters:

NameTypeDescription
button ? ?
x ? ?
y ? ?

Overrides: Window:onMouseDown.
Declared on: line 234 of Lua/dialogs/map_editor.lua.

function UIMapEditor:onMouseMove(x, y, dx, dy)

Parameters:

NameTypeDescription
x ? ?
y ? ?
dx ? ?
dy ? ?

Overrides: Window:onMouseMove.
Declared on: line 166 of Lua/dialogs/map_editor.lua.

function UIMapEditor:onMouseUp(button, x, y)

Parameters:

NameTypeDescription
button ? ?
x ? ?
y ? ?

Overrides: Window:onMouseUp.
Declared on: line 269 of Lua/dialogs/map_editor.lua.

function UIMapEditor:sampleBlock(x, y)

Parameters:

NameTypeDescription
x ? ?
y ? ?

Declared on: line 579 of Lua/dialogs/map_editor.lua.

function UIMapEditor:setBlockBrush(f, w1, w2)

Called by the UI to set what should be painted.

Parameters:

NameTypeDescription
f ? ?
w1 ? ?
w2 ? ?

Declared on: line 627 of Lua/dialogs/map_editor.lua.

function UIMapEditor:setBlockBrushParcel(parcel)

Parameters:

NameTypeDescription
parcel ? ?

Declared on: line 642 of Lua/dialogs/map_editor.lua.

function UIMapEditor:setPaintRect(x, y, w, h, xstep, ystep)

Move/resize the rectangle to be painted, and update the UI preview layer to reflect the new rectangle.

Parameters:

NameTypeDescription
x ? ?
y ? ?
w ? ?
h ? ?
xstep ? ?
ystep ? ?

Declared on: line 492 of Lua/dialogs/map_editor.lua.

function UIMapEditor:startPaint(x, y)

Parameters:

NameTypeDescription
x ? ?
y ? ?

Declared on: line 286 of Lua/dialogs/map_editor.lua.

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