Packageorg.wak.dialog.scumm
Classpublic class DialogMenu
InheritanceDialogMenu Inheritance flash.display.Sprite
SubclassesModernDialogMenu

Display a scumm style dialog menu.



Public Properties
 PropertyDefined by
  optionHeight : Number
[read-only] The height of the menu option and the menu separator space.
DialogMenu
  separatorY : Number
[read-only] The vertical space between dialog options.
DialogMenu
Public Methods
 MethodDefined by
  
DialogMenu(pDialog:AdventureDialog, pWidth:Number, pMenuOptionHeight:Number, pFont:String = "acknowtt", pUpColor:uint = 0xFFFFFF, pOverColor:uint = 0xFF0000, pSize:int = 13, pBold:Boolean = true, pEmbedFont:Boolean = true)
Constructor
DialogMenu
  
ActivateOption(pTopicId:String):void
Activates a dialog option asociated to the topic id in pTopicId
DialogMenu
  
SetOptionVisible(pTopicId:String, value:Boolean):void
Idem ActivateOption, but you can use it to disable an option.
DialogMenu
Public Constants
 ConstantDefined by
  TEXT_SELECTED : String = "text_selected"
[static]
DialogMenu
Property detail
optionHeightproperty
optionHeight:Number  [read-only]

The height of the menu option and the menu separator space.

Implementation
    public function get optionHeight():Number
separatorYproperty 
separatorY:Number  [read-only]

The vertical space between dialog options.

Implementation
    public function get separatorY():Number
Constructor detail
DialogMenu()constructor
public function DialogMenu(pDialog:AdventureDialog, pWidth:Number, pMenuOptionHeight:Number, pFont:String = "acknowtt", pUpColor:uint = 0xFFFFFF, pOverColor:uint = 0xFF0000, pSize:int = 13, pBold:Boolean = true, pEmbedFont:Boolean = true)

Constructor

Parameters
pDialog:AdventureDialog — AdventureDialog to display
 
pWidth:Number — width of a text option 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 = 0xFFFFFF) — 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
ActivateOption()method
public function ActivateOption(pTopicId:String):void

Activates a dialog option asociated to the topic id in pTopicId

Parameters
pTopicId:String — topic id to activate.
SetOptionVisible()method 
public function SetOptionVisible(pTopicId:String, value:Boolean):void

Idem ActivateOption, but you can use it to disable an option.

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