Buttons for the drop down menu buttons when selecting units.
More...
Buttons for the drop down menu buttons when selecting units.
§ Button()
Model.Unit_Module.Button.Button |
( |
ButtonType |
type, |
|
|
Vector2 |
coordinates, |
|
|
Texture2D |
image |
|
) |
| |
Constructor for button. Button is by defaalt active, and has no item.
- Parameters
-
type | What the button type is. |
coordinates | The pixel coordinate of the button. |
image | The texture for the button. |
§ getButtonType()
ButtonType Model.Unit_Module.Button.getButtonType |
( |
| ) |
|
§ getImage()
Texture2D Model.Unit_Module.Button.getImage |
( |
| ) |
|
Returns the button image.
§ getPixelCoordinates()
Vector2 Model.Unit_Module.Button.getPixelCoordinates |
( |
| ) |
|
Returns the pixel coordinate of the button.
§ setPixelCoordinates()
void Model.Unit_Module.Button.setPixelCoordinates |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
Sets the pixelCoordinate of button.
- Parameters
-
x | The x coordinate of the button. |
y | the y coordinate of the button. |
§ Active
bool Model.Unit_Module.Button.Active |
|
getset |
sets and gets whether button is active.
§ hasItem
bool Model.Unit_Module.Button.hasItem |
|
getset |
Sets and gets whether an item is currently bounded to button.
§ item
String Model.Unit_Module.Button.item |
|
getset |
Sets and gets string name for item name.
§ weapon
Weapon Model.Unit_Module.Button.weapon |
|
getset |
Sets and gets weapon associated with the button.
The documentation for this class was generated from the following file:
- C:/Users/Thien Trandinh/Documents/Blaze-Brigade/src/Blaze-Brigade/Blaze_Brigade/Button.cs