CorsixTH Lua Documentation

UIPlaceStaff Class

Invisible window which handles placing a `Staff` member in the world.

Declared on: line 25 of Lua/dialogs/place_staff.lua.
Inheritance: UIPlaceStaff ยป Window

Method Index

Member Index

(*) only used in superclass methods
function UIPlaceStaff:UIPlaceStaff(ui, profile, x, y)

Parameters:

NameTypeDescription
ui ? ?
profile ? ?
x ? ?
y ? ?

Declared on: line 31 of Lua/dialogs/place_staff.lua.

function UIPlaceStaff:_isValidStaffPlacement()

Private function. Is the staff member (self) permitted to be placed where the user is hovering or clicking?

Declared on: line 93 of Lua/dialogs/place_staff.lua.

function UIPlaceStaff:draw(canvas)

Parameters:

NameTypeDescription
canvas ? ?

Overrides: Window:draw.
Declared on: line 127 of Lua/dialogs/place_staff.lua.

function UIPlaceStaff:onMouseUp(button, x, y)

Parameters:

NameTypeDescription
button ? ?
x ? ?
y ? ?

Overrides: Window:onMouseUp.
Declared on: line 144 of Lua/dialogs/place_staff.lua.