C# Class Terraria.GameContent.UI.Elements.UIToggleImage

Inheritance: Terraria.UI.UIElement
Mostra file Open project: EmuDevs/EDTerraria Class Usage Examples

Public Methods

Method Description
Click ( UIMouseEvent evt ) : void
SetState ( bool value ) : void
Toggle ( ) : void
UIToggleImage ( Microsoft.Xna.Framework.Graphics.Texture2D texture, int width, int height, Point onTextureOffset, Point offTextureOffset ) : Microsoft.Xna.Framework

Protected Methods

Method Description
DrawSelf ( SpriteBatch spriteBatch ) : void

Method Details

Click() public method

public Click ( UIMouseEvent evt ) : void
evt Terraria.UI.UIMouseEvent
return void

DrawSelf() protected method

protected DrawSelf ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

SetState() public method

public SetState ( bool value ) : void
value bool
return void

Toggle() public method

public Toggle ( ) : void
return void

UIToggleImage() public method

public UIToggleImage ( Microsoft.Xna.Framework.Graphics.Texture2D texture, int width, int height, Point onTextureOffset, Point offTextureOffset ) : Microsoft.Xna.Framework
texture Microsoft.Xna.Framework.Graphics.Texture2D
width int
height int
onTextureOffset Microsoft.Xna.Framework.Point
offTextureOffset Microsoft.Xna.Framework.Point
return Microsoft.Xna.Framework