Tipclass
The Tip class. Each actual tip should be represented by an instance of this class. To show the tip, just call tipName.showTip(). If the tip has already been shown, or if the tips have been turned off completely, then nothing will be displayed.
class
Tip
: object
Superclass Tree (in declaration order)
Tip
` object`
Subclass Tree
(none)
Global Objects
exitsTip
footnotesTip
fullScoreTip
oopsTip
scoreChangeTip
undoTip
Summary of Properties
Summary of Methods
makeShown
shouldShowTip
showTip
showTipDesc
Properties
desc
The actual text to display when this tip is shown. We’ll wrap it in <.tip> tags automatically, and also add a paragraph break before it.
shown
flag: has this tip been shown before?
Methods
makeShown ( )
Mark this tip as shown. This method can be called by outside code before the tip has been triggered. If the tip informs the player of a certain command, for instance, then it would become redundant if the player has already used that command.
shouldShowTip ( )
should we show this tip when asked to?
showTip ( )
show this tip
showTipDesc ( )
display our tip description, I.E. the actual tip
TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3