Classes

Concepts

Libraries

Objects

contractor »

conversationAnswerData »

engineStatData »

issueData »

playerPlatformSpecialistData »

projectReviewConclusion »

projectReviewRemark »

randomEventData »

statusIcon »

isEligible

Description

Called when checking for legibility of a hint. Returns true by default. You can override this to define the behavior of when this hint should be displayed.

Example

-- taken from game/hint_system.lua


hintSystem.registerNew({
	id = "remaining_loan",
	weight = 20,
	displayText = _T("REMAINING_LOAN_HINT", "You still have a loan of LOAN that you have to return."),

	isEligible = function(self)
		return studio:getLoan() > 0 
	end,
	
	getDisplayText = function(self)
		return _format(self.displayText, "LOAN", string.roundtobigcashnumber(studio:getLoan()))
	end
})