CorsixTH Lua Documentation

UIEditRoom Class

Declared on: line 27 of Lua/dialogs/edit_room.lua.
Inheritance: UIEditRoom » UIPlaceObjects » Window

Method Index

Member Index

(*) only used in superclass methods
function UIEditRoom:UIEditRoom(ui, room_type)

Parameters:

NameTypeDescription
ui ? ?
room_type ? ?

Declared on: line 29 of Lua/dialogs/edit_room.lua.

function UIEditRoom:checkEnableConfirm()

checks if all required objects are placed, and enables/disables the confirm button accordingly. also returns the new state of the confirm button

Declared on: line 1377 of Lua/dialogs/edit_room.lua.

function UIEditRoom:checkReachability()

Function to check if the tiles adjacent to the room are still reachable from each other. NB: the passable flags of the room have to be set to false already before calling this function

Declared on: line 770 of Lua/dialogs/edit_room.lua.

function UIEditRoom:close(...)

Parameters:

NameTypeDescription
... ? ?

Overrides: UIPlaceObjects:close.
Declared on: line 92 of Lua/dialogs/edit_room.lua.

function UIEditRoom:computeAverageContents()

Decide contents of the new room based on average content of previous built rooms of the same type.

Declared on: line 893 of Lua/dialogs/edit_room.lua.

function UIEditRoom:confirm(force)

Parameters:

NameTypeDescription
force ? ?

Overrides: UIPlaceObjects:confirm.
Declared on: line 200 of Lua/dialogs/edit_room.lua.

function UIEditRoom:draw(canvas, ...)

Parameters:

NameTypeDescription
canvas ? ?
... ? ?

Overrides: UIPlaceObjects:draw.
Declared on: line 928 of Lua/dialogs/edit_room.lua.

function UIEditRoom:isHumanoidObscuringArea(entity, x1, x2, y1, y2)

Parameters:

NameTypeDescription
entity ? ?
x1 ? ?
x2 ? ?
y1 ? ?
y2 ? ?

Declared on: line 253 of Lua/dialogs/edit_room.lua.

function UIEditRoom:onMouseDown(button, x, y)

Parameters:

NameTypeDescription
button ? ?
x ? ?
y ? ?

Overrides: Window:onMouseDown.
Declared on: line 944 of Lua/dialogs/edit_room.lua.

function UIEditRoom:onMouseMove(x, y, ...)

Parameters:

NameTypeDescription
x ? ?
y ? ?
... ? ?

Overrides: Window:onMouseMove.
Declared on: line 991 of Lua/dialogs/edit_room.lua.

function UIEditRoom:onMouseUp(button, x, y)

Parameters:

NameTypeDescription
button ? ?
x ? ?
y ? ?

Overrides: UIPlaceObjects:onMouseUp.
Declared on: line 977 of Lua/dialogs/edit_room.lua.

function UIEditRoom:returnToWallPhase(early)

Parameters:

NameTypeDescription
early ? ?

Declared on: line 557 of Lua/dialogs/edit_room.lua.

function UIEditRoom:screenToWall(x, y)

Parameters:

NameTypeDescription
x ? ?
y ? ?

Declared on: line 672 of Lua/dialogs/edit_room.lua.

function UIEditRoom:setBlueprintRect(x, y, w, h)

Parameters:

NameTypeDescription
x ? ?
y ? ?
w ? ?
h ? ?

Declared on: line 997 of Lua/dialogs/edit_room.lua.

function UIEditRoom:setDoorBlueprint(x, y, wall)

Parameters:

NameTypeDescription
x ? ?
y ? ?
wall ? ?

Declared on: line 1051 of Lua/dialogs/edit_room.lua.

function UIEditRoom:setWindowBlueprint(x, y, wall)

Parameters:

NameTypeDescription
x ? ?
y ? ?
wall ? ?

Declared on: line 1212 of Lua/dialogs/edit_room.lua.

function UIEditRoom:verifyOrAbortRoom()

Called when building/editing of the room is about to stop because another dialog is being opened. If the room is in the objects phase and all required objects have been placed it will be completed. Otherwise it is cancelled instead. --

Declared on: line 120 of Lua/dialogs/edit_room.lua.

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