Classes

Concepts

Libraries

advertisement »

ambientSounds »

bitser »

contentPoints »

eventBoxText »

factValidity »

frameBuffer »

officeBuildingInserter »

priorityRenderer »

randomEvents »

scaling »

spritesheetParser »

statusIcons »

test3 »

util »

Objects

new

Description

Register new hint data.

Arguments

1 table data

the data to register.

2 string inherit (optional)

inherit another hintData.

Example

--taken from game/hint_system.lua


hintSystem.registerNew({
	id = "hire_employees",
	weight = 5,
	displayText = {
		_T("HIRE_EMPLOYEES_1", "Your office is empty, you should hire some developers."),
		_T("HIRE_EMPLOYEES_2", "To do any kind of game development you will need to hire developers. Do so now.")
	},
	
	isEligible = function(self) -- this hint will be shown only when you have workplaces set up

		return not hintSystem:isHintEligible("make_workplaces") and #studio:getEmployees() == 0
	end
})