C# Class SunsetHigh.Panel

Inheritance: PopInOutSprite
Mostrar archivo Open project: ErraticUnicorn/MOSH Class Usage Examples

Public Methods

Method 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 method

public Panel ( ) : System
return System

Panel() public method

public Panel ( int x, int y, int width, int height ) : System
x int
y int
width int
height int
return System

draw() public method

public draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

getXMargin() public method

public getXMargin ( ) : int
return int

getYMargin() public method

public getYMargin ( ) : int
return int

isHighlighted() public method

public isHighlighted ( ) : bool
return bool

isPanelBackgroundVisible() public method

public isPanelBackgroundVisible ( ) : bool
return bool

loadContent() public method

public loadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
return void

onConfirm() public abstract method

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

onEnter() public method

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

onExit() public method

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

onFocus() public method

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

onKeyInput() public method

Invoked when the user types any key
public onKeyInput ( Keys key ) : bool
key Keys The key
return bool

onMoveCursor() public method

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

onRefocus() public method

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

onUnfocus() public method

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

setHighlighted() public method

public setHighlighted ( bool highlighted ) : void
highlighted bool
return void

setPanelBackgroundVisible() public method

public setPanelBackgroundVisible ( bool visible ) : void
visible bool
return void

setXMargin() public method

public setXMargin ( int margin ) : void
margin int
return void

setYMargin() public method

public setYMargin ( int margin ) : void
margin int
return void