C# Class Nez.UICanvas

simple component that houses a Stage and delegates update/render/debugRender calls
Inheritance: RenderableComponent, IUpdatable
显示文件 Open project: prime31/Nez Class Usage Examples

Public Properties

Property Type Description
stage Stage

Public Methods

Method Description
UICanvas ( ) : System
debugRender ( Graphics graphics ) : void
onAddedToEntity ( ) : void
onRemovedFromEntity ( ) : void
render ( Graphics graphics, Camera camera ) : void
showDialog ( string title, string messageText, string closeButtonText ) : Dialog

displays a simple dialog with a button to close it

Private Methods

Method Description
IUpdatable ( ) : void

Method Details

UICanvas() public method

public UICanvas ( ) : System
return System

debugRender() public method

public debugRender ( Graphics graphics ) : void
graphics Graphics
return void

onAddedToEntity() public method

public onAddedToEntity ( ) : void
return void

onRemovedFromEntity() public method

public onRemovedFromEntity ( ) : void
return void

render() public method

public render ( Graphics graphics, Camera camera ) : void
graphics Graphics
camera Camera
return void

showDialog() public method

displays a simple dialog with a button to close it
public showDialog ( string title, string messageText, string closeButtonText ) : Dialog
title string Title.
messageText string Message text.
closeButtonText string Close button text.
return Nez.UI.Dialog

Property Details

stage public_oe property

public Stage stage
return Stage