Deprecated: str_replace(): Passing null to parameter #1 ($search) of type array|string is deprecated in /var/www/vhosts/gamedevstudiogame.com/httpdocs/classes/client.php on line 124

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/vhosts/gamedevstudiogame.com/httpdocs/classes/client.php on line 124
Game dev studio

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)
})