C# Class Source.Graphics.Button

ファイルを表示 Open project: HarkerGameDev/TheGame

Public Properties

Property Type Description
OnClick System.Action

Public Methods

Method Description
Button ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 topLeft, Vector2 scale, System.Action onClick, Color color ) : System
Button ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 topLeft, Vector2 scale, System.Action onClick, Color color, SpriteFont font, string text, Color textColor ) : System
Draw ( SpriteBatch spriteBatch ) : void
TestPoint ( Point point ) : bool

Method Details

Button() public method

public Button ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 topLeft, Vector2 scale, System.Action onClick, Color color ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
topLeft Vector2
scale Vector2
onClick System.Action
color Color
return System

Button() public method

public Button ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 topLeft, Vector2 scale, System.Action onClick, Color color, SpriteFont font, string text, Color textColor ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
topLeft Vector2
scale Vector2
onClick System.Action
color Color
font Microsoft.Xna.Framework.Graphics.SpriteFont
text string
textColor Color
return System

Draw() public method

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

TestPoint() public method

public TestPoint ( Point point ) : bool
point Point
return bool

Property Details

OnClick public_oe property

public Action,System OnClick
return System.Action