C# Class Ballz.Renderer.MenuRenderer

Inheritance: Microsoft.Xna.Framework.DrawableGameComponent
显示文件 Open project: SpagAachen/Ballz Class Usage Examples

Public Methods

Method Description
Draw ( GameTime gameTime ) : void
HandleMessage ( object sender, Message message ) : void
MenuRenderer ( Ballz game, System.Item defaultMenu = null ) : Ballz.Menu

Protected Methods

Method Description
LoadContent ( ) : void
UnloadContent ( ) : void

Private Methods

Method Description
ComputeFadeProgress ( GameTime gameTime ) : float
DecorateInputBox ( System.Item menu, System.Item item, bool showUnderscore ) : string
EaseOut ( float t ) : float
RenderInterpolatedMenu ( float fadeProgress ) : void
RenderMenu ( System.Item menu, bool showUnderscore, float fadeProgress ) : void
RenderMenuBackground ( System.Item menu, float fadeProgress ) : void
RenderMenuSubItems ( System.Item menu, float leftOffset, float topOffset, bool showUnderscore, float fadeProgress ) : void
RenderMenuTitle ( System.Item menu, float fadeProgress, float leftOffset, float topOffset ) : void
StringHeight ( string text ) : float
StringWidth ( string text ) : float

Method Details

Draw() public method

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

HandleMessage() public method

public HandleMessage ( object sender, Message message ) : void
sender object
message Ballz.Messages.Message
return void

LoadContent() protected method

protected LoadContent ( ) : void
return void

MenuRenderer() public method

public MenuRenderer ( Ballz game, System.Item defaultMenu = null ) : Ballz.Menu
game Ballz
defaultMenu System.Item
return Ballz.Menu

UnloadContent() protected method

protected UnloadContent ( ) : void
return void