Метод | Описание | |
---|---|---|
Button ( Microsoft.Xna.Framework.Content.ContentManager content, string buttonName, Vector2 buttonPosition ) : System | ||
Draw ( |
||
LoadContent ( ) : void | ||
Update ( |
||
hitImage ( float tx, float ty, Texture2D texture, int x, int y ) : bool | ||
hitImageAlpha ( Rectangle rect, Texture2D texture, int x, int y ) : bool |
Метод | Описание | |
---|---|---|
hitImageAlpha ( float tx, float ty, Texture2D texture, int x, int y ) : bool |
public Button ( Microsoft.Xna.Framework.Content.ContentManager content, string buttonName, Vector2 buttonPosition ) : System | ||
content | Microsoft.Xna.Framework.Content.ContentManager | |
buttonName | string | |
buttonPosition | Vector2 | |
Результат | System |
public Draw ( |
||
gameTime | ||
spriteBatch | ||
Результат | void |
public Update ( |
||
gameTime | ||
mx | int | |
my | int | |
mpressed | bool | |
prev_mpressed | bool | |
Результат | bool |
public hitImage ( float tx, float ty, Texture2D texture, int x, int y ) : bool | ||
tx | float | |
ty | float | |
texture | Texture2D | |
x | int | |
y | int | |
Результат | bool |
public hitImageAlpha ( Rectangle rect, Texture2D texture, int x, int y ) : bool | ||
rect | Rectangle | |
texture | Texture2D | |
x | int | |
y | int | |
Результат | bool |