Packageorg.wak.dialog.scumm
Classpublic class DialogTextDisplay
InheritanceDialogTextDisplay Inheritance flash.display.Sprite

Class to display the dialog texts on screen for a certain amount of time.



Public Properties
 PropertyDefined by
  clickEndEnabled : Boolean
Enable or the disable to end the text displaying with a click.
DialogTextDisplay
  speakerDisplay : AbstractCharacterDisplay
[read-only] The AbstractCharacterDisplay who is talking.
DialogTextDisplay
  x : Number
[write-only]
DialogTextDisplay
  y : Number
[write-only]
DialogTextDisplay
Public Methods
 MethodDefined by
  
DialogTextDisplay(pText:String, pTime:int, pContainer:DisplayObjectContainer, pSpeakerDisplay:AbstractCharacterDisplay, pFont:String = "acknowtt", pFSize:int = 14, pColor:uint = 0xFFFFFF, pBold:Boolean = true, pEmbedFont:Boolean = true)
Constructor
DialogTextDisplay
  
Finish():void
In the case you need to remove the DialogTextDisplay before the time expires, use this.
DialogTextDisplay
Property detail
clickEndEnabledproperty
clickEndEnabled:Boolean  [read-write]

Enable or the disable to end the text displaying with a click.

Implementation
    public function get clickEndEnabled():Boolean
    public function set clickEndEnabled(value:Boolean):void
speakerDisplayproperty 
speakerDisplay:AbstractCharacterDisplay  [read-only]

The AbstractCharacterDisplay who is talking.

Implementation
    public function get speakerDisplay():AbstractCharacterDisplay
xproperty 
x:Number  [write-only]Implementation
    public function set x(value:Number):void
yproperty 
y:Number  [write-only]Implementation
    public function set y(value:Number):void
Constructor detail
DialogTextDisplay()constructor
public function DialogTextDisplay(pText:String, pTime:int, pContainer:DisplayObjectContainer, pSpeakerDisplay:AbstractCharacterDisplay, pFont:String = "acknowtt", pFSize:int = 14, pColor:uint = 0xFFFFFF, pBold:Boolean = true, pEmbedFont:Boolean = true)

Constructor

Parameters
pText:String — text to display.
 
pTime:int — time in milliseconds of for how long show the text
 
pContainer:DisplayObjectContainer — the container of this DialogTextDisplay
 
pSpeakerDisplay:AbstractCharacterDisplay — the speaker's character display/
 
pFont:String (default = "acknowtt") — an optional font name to use.
 
pFSize:int (default = 14) — an optional font size to use.
 
pColor:uint (default = 0xFFFFFF) — an optional text color
 
pBold:Boolean (default = true) — optional bold the text font.
 
pEmbedFont:Boolean (default = true)
Method detail
Finish()method
public function Finish():void

In the case you need to remove the DialogTextDisplay before the time expires, use this.