Property | Type | Description | |
---|---|---|---|
Normal | |||
Pressed | |||
Selected |
Method | Description | |
---|---|---|
Button ( string fontPath, string text ) : System |
Creates a new instance
|
|
Clone ( ) : |
||
LoadContent ( IContentCatalogue catalogue, Microsoft.Xna.Framework.Content.ContentManager manager ) : void |
Load all XNA ContentManager content
|
|
Refresh ( GraphicsDevice device ) : void |
Refreshes the control properties when it requires to be redrawn to the RenderTarget
|
|
Render ( |
Renders the control
|
|
UnloadContent ( IContentCatalogue catalogue ) : void |
Unload all XNA ContentManager content
|
Method | Description | |
---|---|---|
OnButtonClicked ( object button, |
|
|
OnFocusAcquired ( object button, |
|
|
OnFocusLost ( object button, |
|
public Button ( string fontPath, string text ) : System | ||
fontPath | string | The font used by this control and its inner default ButtonSkins |
text | string | The initial text for this button |
return | System |
public LoadContent ( IContentCatalogue catalogue, Microsoft.Xna.Framework.Content.ContentManager manager ) : void | ||
catalogue | IContentCatalogue | |
manager | Microsoft.Xna.Framework.Content.ContentManager | XNA content manage |
return | void |
public Refresh ( GraphicsDevice device ) : void | ||
device | GraphicsDevice | |
return | void |
public Render ( |
||
spriteRenderer | ||
return | void |
public UnloadContent ( IContentCatalogue catalogue ) : void | ||
catalogue | IContentCatalogue | |
return | void |
public ButtonSkin,Indiefreaks.Xna.Rendering.Gui Pressed | ||
return |