Classes

Concepts

Libraries

advertisement »

ambientSounds »

bitser »

contentPoints »

eventBoxText »

factValidity »

frameBuffer »

officeBuildingInserter »

priorityRenderer »

randomEvents »

scaling »

spritesheetParser »

statusIcons »

test3 »

util »

Objects

addCostText

Description

Register a new monthlyCost type.

Arguments

1 table data

the data to register.

Example

-- taken from game/basic_monthly_costs.lua


monthlyCost.addCostText({
	id = "communal", 
	display = _T("MONTHLY_COST_COMMUNAL", "Communal"),
	description = _T("MONTHLY_COST_COMMUNAL_DESCRIPTION", "The monthly fee for communal services, including, but not limited to: cleaning.
Cost depends on office size and employee count."),
	iconQuad = "monthly_cost_communal",
	barColor = color(220, 255, 160, 255)
})