Package | org.flixel.data |
Class | public class FlxPanel |
Inheritance | FlxPanel ![]() ![]() ![]() |
FlxGame
and you
can toggle the visibility via FlxG
.
Method | Defined by | ||
---|---|---|---|
FlxPanel()
Constructor.
| FlxPanel | ||
![]() |
If you don't want to call
FlxU.collide() you can use this instead. | 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 | |
![]() |
getBoundingColor():uint
Returns the appropriate color for the bounding box depending on object state.
| 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 | |
![]() |
Since most games have identical behavior for running into walls,
you can just override this function instead of overriding both hitLeft and hitRight.
| 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
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
Updates and animates the panel.
| FlxPanel |
FlxPanel | () | constructor |
public function FlxPanel()
Constructor.
hide | () | method |
public function hide():void
Hide the support panel.
onClose | () | method |
public function onClose():void
Called when the player presses the Close button.
onDelicious | () | method |
public function onDelicious():void
Called when the player presses the del.icio.us button.
onDigg | () | method |
public function onDigg():void
Called when the player presses the Digg button.
onDonate | () | method |
public function onDonate():void
Called when the player presses the Donate button.
onReddit | () | method |
public function onReddit():void
Called when the player presses the Reddit button.
onStumble | () | method |
public function onStumble():void
Called when the player presses the StumbleUpon button.
onTwitter | () | method |
public function onTwitter():void
Called when the player presses the Twitter button.
render | () | method |
public override function render():void
Actually 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.
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):void
Show the support panel.
ParametersTop:Boolean (default = true ) — Whether the visor should appear at the top or bottom of the screen.
|
update | () | method |
public override function update():void
Updates and animates the panel.