C# Class SunsetHigh.Panel

Inheritance: PopInOutSprite
Afficher le fichier Open project: ErraticUnicorn/MOSH Class Usage Examples

Méthodes publiques

Méthode Description
Panel ( ) : System
Panel ( int x, int y, int width, int height ) : System
draw ( SpriteBatch sb ) : void
getXMargin ( ) : int
getYMargin ( ) : int
isHighlighted ( ) : bool
isPanelBackgroundVisible ( ) : bool
loadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
onConfirm ( ) : void

Invoked when the user types the "Action" or "Confirm" key

onEnter ( ) : void

Invoked when this panel has entered the user's view

onExit ( ) : void

Invoked when this panel is exiting the user's view

onFocus ( ) : void

Invoked when this panel now has focus (i.e. user is navigating this panel)

onKeyInput ( Keys key ) : bool

Invoked when the user types any key

onMoveCursor ( Direction dir ) : void

Invoked when the user types a directional key

onRefocus ( ) : void

Invoked when a newer panel has been unfocused, bringing the focus back to this panel

onUnfocus ( ) : void

Invoked when another panel now has the focus (but this panel may still be in view)

setHighlighted ( bool highlighted ) : void
setPanelBackgroundVisible ( bool visible ) : void
setXMargin ( int margin ) : void
setYMargin ( int margin ) : void

Method Details

Panel() public méthode

public Panel ( ) : System
Résultat System

Panel() public méthode

public Panel ( int x, int y, int width, int height ) : System
x int
y int
width int
height int
Résultat System

draw() public méthode

public draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void

getXMargin() public méthode

public getXMargin ( ) : int
Résultat int

getYMargin() public méthode

public getYMargin ( ) : int
Résultat int

isHighlighted() public méthode

public isHighlighted ( ) : bool
Résultat bool

isPanelBackgroundVisible() public méthode

public isPanelBackgroundVisible ( ) : bool
Résultat bool

loadContent() public méthode

public loadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
Résultat void

onConfirm() public abstract méthode

Invoked when the user types the "Action" or "Confirm" key
public abstract onConfirm ( ) : void
Résultat void

onEnter() public méthode

Invoked when this panel has entered the user's view
public onEnter ( ) : void
Résultat void

onExit() public méthode

Invoked when this panel is exiting the user's view
public onExit ( ) : void
Résultat void

onFocus() public méthode

Invoked when this panel now has focus (i.e. user is navigating this panel)
public onFocus ( ) : void
Résultat void

onKeyInput() public méthode

Invoked when the user types any key
public onKeyInput ( Keys key ) : bool
key Keys The key
Résultat bool

onMoveCursor() public méthode

Invoked when the user types a directional key
public onMoveCursor ( Direction dir ) : void
dir Direction The direction
Résultat void

onRefocus() public méthode

Invoked when a newer panel has been unfocused, bringing the focus back to this panel
public onRefocus ( ) : void
Résultat void

onUnfocus() public méthode

Invoked when another panel now has the focus (but this panel may still be in view)
public onUnfocus ( ) : void
Résultat void

setHighlighted() public méthode

public setHighlighted ( bool highlighted ) : void
highlighted bool
Résultat void

setPanelBackgroundVisible() public méthode

public setPanelBackgroundVisible ( bool visible ) : void
visible bool
Résultat void

setXMargin() public méthode

public setXMargin ( int margin ) : void
margin int
Résultat void

setYMargin() public méthode

public setYMargin ( int margin ) : void
margin int
Résultat void