| Package | org.wak.dialog.scumm |
| Class | public class DialogMenu |
| Inheritance | DialogMenu flash.display.Sprite |
| Subclasses | ModernDialogMenu |
| Property | Defined 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 | ||
| Method | Defined 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 | ||
| Constant | Defined by | ||
|---|---|---|---|
| TEXT_SELECTED : String = "text_selected" [static]
| DialogMenu | ||
| optionHeight | property |
optionHeight:Number [read-only]The height of the menu option and the menu separator space.
Implementation public function get optionHeight():Number
| separatorY | property |
separatorY:Number [read-only]The vertical space between dialog options.
Implementation public function get separatorY():Number
| 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
ParameterspDialog: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) |
| ActivateOption | () | method |
public function ActivateOption(pTopicId:String):voidActivates a dialog option asociated to the topic id in pTopicId
ParameterspTopicId:String — topic id to activate.
|
| SetOptionVisible | () | method |
public function SetOptionVisible(pTopicId:String, value:Boolean):voidIdem ActivateOption, but you can use it to disable an option.
ParameterspTopicId:String — topic id to change.
|
|
value:Boolean — true or false.
|
| TEXT_SELECTED | constant |
public static const TEXT_SELECTED:String = "text_selected"