C# Class Source.Graphics.Button

Afficher le fichier Open project: HarkerGameDev/TheGame

Méthodes publiques

Свойство Type Description
OnClick System.Action

Méthodes publiques

Méthode 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 méthode

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
Résultat System

Button() public méthode

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
Résultat System

Draw() public méthode

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void

TestPoint() public méthode

public TestPoint ( Point point ) : bool
point Point
Résultat bool

Property Details

OnClick public_oe property

public Action,System OnClick
Résultat System.Action