Package | verlocity.display.gui |
Class | public class PauseButton |
Inheritance | PauseButton Button Text UIElement flash.display.Sprite |
Method | Defined By | ||
---|---|---|---|
PauseButton(sText:String, tfFormat:TextFormat, iPosX:int, iPosY:int, fButton:Function, fCondition:Function = null, iSetWidth:int = 20) | PauseButton | ||
Clear():void
Clears all graphics drawn on the UI element. | UIElement | ||
Dispose():void [override]
Destroys the entire button
| Button | ||
DoButton():void
Preforms the button's function
| Button | ||
DrawRect(uiColor:uint = 0xFFFFFF, nAlpha:Number = 1, iWidth:int = 0, iHeight:int = 0, bLine:Boolean = false, iLineThickness:int = 1, uiLineColor:uint = 0xFFFFFF, nLineAlpha:Number = 1, bRounded:Boolean = false, iRoundness:int = 10, iOffsetX:int = 0, iOffsetY:int = 1):void [override] | Text | ||
GetHeight():int | Text | ||
GetScale():Number
Returns the scale of the UI element. | UIElement | ||
GetState():int
Returns the current state of the button. | Button | ||
GetWidth():int | Text | ||
IsDisabled():Boolean
Returns if the button is disabled
| Button | ||
IsHighlighted():Boolean
Returns if the button is highlighted
| Button | ||
IsSelected():Boolean
Returns if the button is selected
| Button | ||
RemoveCondition():void
Removes the condition of the button. | Button | ||
ResetPos():void
Resets the X and Y position of the UI element to its original spawn position. | UIElement | ||
ResetState():void
Resets the state of the button to its default. | Button | ||
SetButton(fSetFunction:Function, fSetCondition:Function = null):void
Sets the functions of the button
| Button | ||
SetEnabled(bEnable:Boolean):void
Enables/disables the button for use
| Button | ||
SetHeight(iHeight:int):void | Text | ||
SetHighlighted(bHighlight:Boolean):void
Enables/disables highlighting the button, as if the mouse was over it. | Button | ||
SetOriginPos(nPosX:Number, nPosY:Number):void
Overrides origin position
| UIElement | ||
SetPos(nPosX:Number, nPosY:Number):void
Sets the X and Y position of the UI element. | UIElement | ||
SetScale(nSetScale:Number):void
Sets the scale of the UI element. | UIElement | ||
SetSelected(bSelect:Boolean):void
Enables/disables selection of the button. | Button | ||
SetText(sText:String, tfTextFormat:TextFormat = null):void [override]
Sets the text to display on the button
| Button | ||
SetTextColor(uiColor:uint):void | Text | ||
SetWidth(iWidth:int):void [override]
Sets the width of the button
| Button |
Method | Defined By | ||
---|---|---|---|
Disabled():void [override] | PauseButton | ||
Down():void [override] | PauseButton | ||
DrawBG():void [override] | PauseButton | ||
Out():void [override] | PauseButton | ||
Over():void [override] | PauseButton | ||
Press():void | Button | ||
Selected():void [override] | PauseButton | ||
Up():void [override] | PauseButton |
PauseButton | () | Constructor |
public function PauseButton(sText:String, tfFormat:TextFormat, iPosX:int, iPosY:int, fButton:Function, fCondition:Function = null, iSetWidth:int = 20)
sText:String | |
tfFormat:TextFormat | |
iPosX:int | |
iPosY:int | |
fButton:Function | |
fCondition:Function (default = null )
| |
iSetWidth:int (default = 20 )
|
Disabled | () | method |
override protected function Disabled():void
Down | () | method |
override protected function Down():void
DrawBG | () | method |
override protected function DrawBG():void
Out | () | method |
override protected function Out():void
Over | () | method |
override protected function Over():void
Selected | () | method |
override protected function Selected():void
Up | () | method |
override protected function Up():void