display:DisplayObject [read-only]Implementation
public function get display():DisplayObject
public function SciDialogController(pLayer:Sprite, pSettings:XML)
Constructor
Parameters
| pLayer:Sprite — The dialogs layer.
|
| |
| pSettings:XML — XMl with the dialogs settings.
|
public function ActivateOption(pTopicId:String):void
Parameters
public function CharacterSay(pChar:AdventureCharacter, pTextToSay:String, pOnComplete:Function = null):void
Makes a character say something.
Parameters
| pChar:AdventureCharacter — The speaker character.
|
| |
| pTextToSay:String — The text that the character will way.
|
| |
| pOnComplete:Function (default = null) — Callback function called when the character finished to talk.
|
protected function CreateDialogMenu(pDialogId:String):SciDialogMenuParameters
Returns
public function DisplayInfo(pText:String, pOnCompleteFunction:Function = null):void
Display an information message.
Parameters
| pText:String — message to display
|
| |
| pOnCompleteFunction:Function (default = null) — callback function to be called after the message was displayed.
|
public function Initialize():void
protected function LoadSettings(pSettings:XML):void
Load the settings of the dialogs using the parameters in pSettings
Parameters
| pSettings:XML — XML with the settings.
|
public function PlayTopic(pTopic:Topic, pOnCompleteFunc:Function):void
Start to play a dialog topic.
Parameters
| pTopic:Topic — the topic to play
|
| |
| pOnCompleteFunc:Function — callaback function called when the topic finish.
|
public function SetOptionVisible(pDialogId:String, pTopicId:String, value:Boolean):voidParameters
| pDialogId:String |
| |
| pTopicId:String |
| |
| value:Boolean |
public function StartDialog(pDialog:AdventureDialog):voidParameters
public function UpdateScrollButtons():void