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

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