| Package | org.wak.dialog.sci |
| Class | public class SciDialogMenu |
| Inheritance | SciDialogMenu flash.display.Sprite |
| Method | Defined 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 | ||
| Constant | Defined by | ||
|---|---|---|---|
| TEXT_SELECTED : String = "text_selected" [static]
| SciDialogMenu | ||
| 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
ParameterspDialog: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) |
| SetBulletAsset | () | method |
public function SetBulletAsset(pBullet:Class):voidSet the asset for the bullet before the text option.
ParameterspBullet:Class — class to create a DisplayObject as bullet.
|
| SetDefaultBgColor | () | method |
public function SetDefaultBgColor(pColor:uint):voidSet the color used to draw the background when no image is provided.
ParameterspColor:uint — background color.
|
| SetDefaultBgSize | () | method |
public function SetDefaultBgSize(pW:Number, pH:Number):voidSets the dimensions of the default drawn background when no image is provided.
ParameterspW:Number — width of the background.
|
|
pH:Number — height of the background.
|
| SetMargins | () | method |
public function SetMargins(pBulletMargin:Number, pLeftMargin:Number):voidSet the margins to the left of the options
ParameterspBulletMargin: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):voidActivates or disable a dialog option asociated to the topic id in pTopicId
ParameterspTopicId:String — topic id to activate.
|
|
value:Boolean |
| TEXT_SELECTED | constant |
public static const TEXT_SELECTED:String = "text_selected"