CorsixTH Lua Documentation

UICustomCampaign Class

Custom Campaign Window

Declared on: line 21 of Lua/dialogs/resizables/menu_list_dialogs/custom_campaign.lua.
Inheritance: UICustomCampaign » UIMenuList » UIResizable » Window

Method Index

Member Index

(*) only used in superclass methods
function UICustomCampaign:_createCampaignList()

Search the user and CorsixTH campaign folders and one-level deep subfolders for campaign files.

Declared on: line 98 of Lua/dialogs/resizables/menu_list_dialogs/custom_campaign.lua.

function UICustomCampaign:_readCampaignFile(folder, file)

Fetch uniquely named campaigns from given campaign file

Parameters:

NameTypeDescription
folder ? ?
file ? ?

Declared on: line 70 of Lua/dialogs/resizables/menu_list_dialogs/custom_campaign.lua.

function UICustomCampaign:buttonClicked(num)

Overrides the function in the UIMenuList, choosing what should happen when the player clicks a choice in the list.

Parameters:

NameTypeDescription
num ? ?

Overrides: UIMenuList:buttonClicked.
Declared on: line 121 of Lua/dialogs/resizables/menu_list_dialogs/custom_campaign.lua.