| Package | org.flixel.data |
| Class | public class FlxPanel |
| Inheritance | FlxPanel FlxObject FlxRect FlxPoint Object |
FlxGame and you
can toggle the visibility via FlxG.
| Method | Defined By | ||
|---|---|---|---|
FlxPanel()
Constructor. | FlxPanel | ||
![]() | FlxObject | ||
![]() | destroy():void
Called by FlxGroup, commonly when game states are changed. | FlxObject | |
![]() | flicker(Duration:Number = 1):void
Tells this object to flicker, retro-style. | FlxObject | |
![]() | flickering():Boolean
Check to see if the object is still flickering. | FlxObject | |
![]() |
Call this function to figure out the on-screen position of the object. | FlxObject | |
hide():void
Hide the support panel. | FlxPanel | ||
![]() |
Called when this object's bottom edge collides with the top of another FlxObject. | FlxObject | |
![]() |
Called when this object's left side collides with another FlxObject's right. | FlxObject | |
![]() |
Called when this object's right side collides with another FlxObject's left. | FlxObject | |
![]() |
Called when this object's top collides with the bottom of another FlxObject. | FlxObject | |
![]() | hurt(Damage:Number):void
Call this function to "damage" (or give health bonus) to this sprite. | FlxObject | |
![]() | kill():void
Call this function to "kill" a sprite so that it no longer 'exists'. | FlxObject | |
onClose():void
Called when the player presses the Close button. | FlxPanel | ||
onDelicious():void
Called when the player presses the del.icio.us button. | FlxPanel | ||
onDigg():void
Called when the player presses the Digg button. | FlxPanel | ||
onDonate():void
Called when the player presses the Donate button. | FlxPanel | ||
onReddit():void
Called when the player presses the Reddit button. | FlxPanel | ||
![]() | onScreen():Boolean
Check and see if this object is currently on screen. | FlxObject | |
onStumble():void
Called when the player presses the StumbleUpon button. | FlxPanel | ||
onTwitter():void
Called when the player presses the Twitter button. | FlxPanel | ||
![]() |
Checks to see if some FlxObject object overlaps this FlxObject object. | FlxObject | |
![]() | overlapsPoint(X:Number, Y:Number, PerPixel:Boolean = false):Boolean
Checks to see if a point in 2D space overlaps this FlxObject object. | FlxObject | |
![]() | preCollide(Object:FlxObject):void
FlxU.collide() (and thus FlxObject.collide()) call
this function each time two objects are compared to see if they collide. | FlxObject | |
![]() | refreshHulls():void
Called by FlxObject.updateMotion() and some constructors to
rebuild the basic collision data for this object. | FlxObject | |
render():void [override]
Actually draws the bar to the screen. | FlxPanel | ||
![]() | reset(X:Number, Y:Number):void
Handy function for reviving game objects. | FlxObject | |
setup(PayPalID:String, PayPalAmount:Number, GameTitle:String, GameURL:String, Caption:String):void
Set up the support panel with donation and aggregation info. | FlxPanel | ||
show(Top:Boolean = true):void
Show the support panel. | FlxPanel | ||
![]() | toString():String
Convert object to readable string name. | FlxPoint | |
update():void [override]
Updates and animates the panel. | FlxPanel | ||
| FlxPanel | () | Constructor |
public function FlxPanel()Constructor.
| hide | () | method |
public function hide():voidHide the support panel.
| onClose | () | method |
public function onClose():voidCalled when the player presses the Close button.
| onDelicious | () | method |
public function onDelicious():voidCalled when the player presses the del.icio.us button.
| onDigg | () | method |
public function onDigg():voidCalled when the player presses the Digg button.
| onDonate | () | method |
public function onDonate():voidCalled when the player presses the Donate button.
| onReddit | () | method |
public function onReddit():voidCalled when the player presses the Reddit button.
| onStumble | () | method |
public function onStumble():voidCalled when the player presses the StumbleUpon button.
| onTwitter | () | method |
public function onTwitter():voidCalled when the player presses the Twitter button.
| render | () | method |
override public function render():voidActually draws the bar to the screen.
| setup | () | method |
public function setup(PayPalID:String, PayPalAmount:Number, GameTitle:String, GameURL:String, Caption:String):void
Set up the support panel with donation and aggregation info.
Like show() and hide() this function is usually
called through FlxGame or FlxG, not directly.
Parameters
PayPalID:String — Your paypal username, usually your email address (leave it blank to disable donations).
| |
PayPalAmount:Number — The default amount of the donation.
| |
GameTitle:String — The text that you would like to appear in the aggregation services (usually just the name of your game).
| |
GameURL:String — The URL you would like people to use when trying to find your game.
| |
Caption:String |
| show | () | method |
public function show(Top:Boolean = true):voidShow the support panel.
Parameters
Top:Boolean (default = true) — Whether the visor should appear at the top or bottom of the screen.
|
| update | () | method |
override public function update():voidUpdates and animates the panel.