Packageorg.wak.dialog.sci
Classpublic class SciDialogController
InheritanceSciDialogController Inheritance flash.display.Sprite
ImplementsIDialogsController



Public Properties
 PropertyDefined by
  display : DisplayObject
[read-only]
SciDialogController
Public Methods
 MethodDefined by
  
SciDialogController(pLayer:Sprite, pSettings:XML)
Constructor
SciDialogController
  
ActivateOption(pTopicId:String):void
SciDialogController
  
CharacterSay(pChar:AdventureCharacter, pTextToSay:String, pOnComplete:Function = null):void
Makes a character say something.
SciDialogController
  
DisplayInfo(pText:String, pOnCompleteFunction:Function = null):void
Display an information message.
SciDialogController
  
Initialize():void
SciDialogController
  
PlayTopic(pTopic:Topic, pOnCompleteFunc:Function):void
Start to play a dialog topic.
SciDialogController
  
SetOptionVisible(pDialogId:String, pTopicId:String, value:Boolean):void
SciDialogController
  
SciDialogController
  
SciDialogController
Protected Methods
 MethodDefined by
  
CreateDialogMenu(pDialogId:String):SciDialogMenu
SciDialogController
  
LoadSettings(pSettings:XML):void
Load the settings of the dialogs using the parameters in pSettings
SciDialogController
Property detail
displayproperty
display:DisplayObject  [read-only]Implementation
    public function get display():DisplayObject
Constructor detail
SciDialogController()constructor
public function SciDialogController(pLayer:Sprite, pSettings:XML)

Constructor

Parameters
pLayer:Sprite — The dialogs layer.
 
pSettings:XML — XMl with the dialogs settings.
Method detail
ActivateOption()method
public function ActivateOption(pTopicId:String):void

Parameters
pTopicId:String
CharacterSay()method 
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.
CreateDialogMenu()method 
protected function CreateDialogMenu(pDialogId:String):SciDialogMenuParameters
pDialogId:String

Returns
SciDialogMenu
DisplayInfo()method 
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.
Initialize()method 
public function Initialize():void
LoadSettings()method 
protected function LoadSettings(pSettings:XML):void

Load the settings of the dialogs using the parameters in pSettings

Parameters
pSettings:XML — XML with the settings.
PlayTopic()method 
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.
SetOptionVisible()method 
public function SetOptionVisible(pDialogId:String, pTopicId:String, value:Boolean):voidParameters
pDialogId:String
 
pTopicId:String
 
value:Boolean
StartDialog()method 
public function StartDialog(pDialog:AdventureDialog):voidParameters
pDialog:AdventureDialog
UpdateScrollButtons()method 
public function UpdateScrollButtons():void