Classes

Concepts

Libraries

Objects

contractor »

conversationAnswerData »

engineStatData »

issueData »

playerPlatformSpecialistData »

projectReviewConclusion »

projectReviewRemark »

randomEventData »

statusIcon »

getDisplayText

Description

Returns the text to display from the displayText variable.

Returns

1 string

the text to display.

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