Classes

Concepts

Libraries

advertisement »

ambientSounds »

bitser »

contentPoints »

eventBoxText »

factValidity »

frameBuffer »

officeBuildingInserter »

priorityRenderer »

randomEvents »

scaling »

spritesheetParser »

statusIcons »

test3 »

util »

Objects

registerNew

Description

Registers a new preference.

Arguments

1 table data

the new preference data to register.

Example

-- taken from game/preferences.lua


preferences:registerNew({
	id = developer.ALWAYS_APPROVE_RAISES_PREFERENCE,
	display = _T("AUTO_APPROVE_RAISES", "Auto-approve raise requests"),
	description = _T("AUTO_APPROVE_RAISES_DESCRIPTION", "When employees are confident that their abilities have improved they will ask for a raise. It is up to you to decide whether a raise should be approved or not, but with this enabled raise requests will be approved automatically.

Whenever a raise is approved you will be notified, but in a way that does not halt gameplay.")
})