CorsixTH Lua Documentation

UIAnnualReport Class

Annual Report fullscreen window shown at the start of each year.

Declared on: line 23 of Lua/dialogs/fullscreen/annual_report.lua.
Inheritance: UIAnnualReport » UIFullscreen » Window

Method Index

Member Index

(*) only used in superclass methods
function UIAnnualReport:addAward(text, award_type, amount)

Adds an award frame with some text if the player clicks on it.

Parameters:

NameTypeDescription
text string The text to show as motivation.
award_type string Should be one of "reputation" or "money"
amount integer How much the player got/lost.

Declared on: line 348 of Lua/dialogs/fullscreen/annual_report.lua.

function UIAnnualReport:addTrophy(text, award_type, amount)

Adds a trophy figure with some text if the player clicks on it.

Parameters:

NameTypeDescription
text string The text to show as motivation.
award_type string Should be one of "reputation" or "money"
amount integer How much the player got/lost.

Declared on: line 319 of Lua/dialogs/fullscreen/annual_report.lua.

function UIAnnualReport:changePage(page_no)

Changes the page of the annual report

Parameters:

NameTypeDescription
page_no ? The page to go to, either page 1, 2 or 3. Default is currently page 2.

Declared on: line 468 of Lua/dialogs/fullscreen/annual_report.lua.

function UIAnnualReport:checkTrophiesAndAwards(world)

Finds out which awards and/or trophies the player has been awarded this year.

Parameters:

NameTypeDescription
world ? ?

Declared on: line 163 of Lua/dialogs/fullscreen/annual_report.lua.

function UIAnnualReport:close()

Overridden close function. The game should be unpaused again when closing the dialog.

Overrides: Window:close.
Declared on: line 453 of Lua/dialogs/fullscreen/annual_report.lua.

function UIAnnualReport:draw(canvas, x, y)

Parameters:

NameTypeDescription
canvas ? ?
x ? ?
y ? ?

Overrides: UIFullscreen:draw.
Declared on: line 502 of Lua/dialogs/fullscreen/annual_report.lua.

function UIAnnualReport:setActive(button, active)

Helper function that enables and makes visible button or table of buttons/panels.

Parameters:

NameTypeDescription
button ? The button or table of buttons that should be activated/deactivated. If a table is given it needs to have the is_table flag set to true.
active ? Defines if the new state is active (true) or inactive (false).

Declared on: line 437 of Lua/dialogs/fullscreen/annual_report.lua.

function UIAnnualReport:showAwardMotivation(text_index_to_show)

Activates the motivation scroll with the given text on it.

Parameters:

NameTypeDescription
text_index_to_show ? The index of the award to show info from.

Declared on: line 397 of Lua/dialogs/fullscreen/annual_report.lua.

function UIAnnualReport:showTrophyMotivation(text_index_to_show)

Activates the motivation plaque with the given text on it.

Parameters:

NameTypeDescription
text_index_to_show ? The index of the trophy to show info from.

Declared on: line 419 of Lua/dialogs/fullscreen/annual_report.lua.

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