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

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

Public Methods

Method Description
MouseOver ( UIMouseEvent evt ) : void
SetImage ( Texture2D texture ) : void
SetVisibility ( float whenActive, float whenInactive ) : void
UIImageButton ( Texture2D texture ) : Microsoft.Xna.Framework

Protected Methods

Method Description
DrawSelf ( SpriteBatch spriteBatch ) : void

Method Details

DrawSelf() protected method

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

MouseOver() public method

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

SetImage() public method

public SetImage ( Texture2D texture ) : void
texture Texture2D
return void

SetVisibility() public method

public SetVisibility ( float whenActive, float whenInactive ) : void
whenActive float
whenInactive float
return void

UIImageButton() public method

public UIImageButton ( Texture2D texture ) : Microsoft.Xna.Framework
texture Texture2D
return Microsoft.Xna.Framework