Packageorg.wak.dialog.sci
Classpublic class SciDialogMenu
InheritanceSciDialogMenu Inheritance flash.display.Sprite

Display a SCI style dialog options menu.



Public Methods
 MethodDefined by
  
SciDialogMenu(pDialog:AdventureDialog, pBg:DisplayObject, pMenuOptionWidth:Number, pMenuOptionHeight:Number, pFont:String = "acknowtt", pUpColor:uint = 0x000000, pOverColor:uint = 0xFF0000, pSize:int = 13, pBold:Boolean = true, pEmbedFont:Boolean = true)
Constructor
SciDialogMenu
  
SetBulletAsset(pBullet:Class):void
Set the asset for the bullet before the text option.
SciDialogMenu
  
SetDefaultBgColor(pColor:uint):void
Set the color used to draw the background when no image is provided.
SciDialogMenu
  
SetDefaultBgSize(pW:Number, pH:Number):void
Sets the dimensions of the default drawn background when no image is provided.
SciDialogMenu
  
SetMargins(pBulletMargin:Number, pLeftMargin:Number):void
Set the margins to the left of the options
SciDialogMenu
  
SetOptionVisible(pTopicId:String, value:Boolean):void
Activates or disable a dialog option asociated to the topic id in pTopicId
SciDialogMenu
Public Constants
 ConstantDefined by
  TEXT_SELECTED : String = "text_selected"
[static]
SciDialogMenu
Constructor detail
SciDialogMenu()constructor
public function SciDialogMenu(pDialog:AdventureDialog, pBg:DisplayObject, pMenuOptionWidth:Number, pMenuOptionHeight:Number, pFont:String = "acknowtt", pUpColor:uint = 0x000000, pOverColor:uint = 0xFF0000, pSize:int = 13, pBold:Boolean = true, pEmbedFont:Boolean = true)

Constructor

Parameters
pDialog:AdventureDialog — AdventureDialog to display
 
pBg:DisplayObject — Menu Background.
 
pMenuOptionWidth:Number — width of a text options in pixels
 
pMenuOptionHeight:Number — height of a text options in pixels
 
pFont:String (default = "acknowtt") — font name to use in the options
 
pUpColor:uint (default = 0x000000) — color used in the options for the up state.
 
pOverColor:uint (default = 0xFF0000) — color used in the options for the over state.
 
pSize:int (default = 13) — size of the font in the options.
 
pBold:Boolean (default = true) — bold the font used in the option.
 
pEmbedFont:Boolean (default = true)
Method detail
SetBulletAsset()method
public function SetBulletAsset(pBullet:Class):void

Set the asset for the bullet before the text option.

Parameters
pBullet:Class — class to create a DisplayObject as bullet.
SetDefaultBgColor()method 
public function SetDefaultBgColor(pColor:uint):void

Set the color used to draw the background when no image is provided.

Parameters
pColor:uint — background color.
SetDefaultBgSize()method 
public function SetDefaultBgSize(pW:Number, pH:Number):void

Sets the dimensions of the default drawn background when no image is provided.

Parameters
pW:Number — width of the background.
 
pH:Number — height of the background.
SetMargins()method 
public function SetMargins(pBulletMargin:Number, pLeftMargin:Number):void

Set the margins to the left of the options

Parameters
pBulletMargin:Number — space between the bullet and the text option.
 
pLeftMargin:Number — space between the left border and the bullet.
SetOptionVisible()method 
public function SetOptionVisible(pTopicId:String, value:Boolean):void

Activates or disable a dialog option asociated to the topic id in pTopicId

Parameters
pTopicId:String — topic id to activate.
 
value:Boolean
Constant detail
TEXT_SELECTEDconstant
public static const TEXT_SELECTED:String = "text_selected"