Buttons for the drop down menu buttons when selecting units.
More...
Buttons for the drop down menu buttons when selecting units.
§ Button()
Model.Button.Button |
( |
ButtonType |
type, |
|
|
Vector2 |
coordinates, |
|
|
Texture2D |
image |
|
) |
| |
|
inline |
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()
§ getImage()
Texture2D Model.Button.getImage |
( |
| ) |
|
|
inline |
Returns the button image.
§ getPixelCoordinates()
Vector2 Model.Button.getPixelCoordinates |
( |
| ) |
|
|
inline |
Returns the pixel coordinate of the button.
§ setPixelCoordinates()
void Model.Button.setPixelCoordinates |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
inline |
Sets the pixelCoordinate of button.
- Parameters
-
x | The x coordinate of the button. |
y | the y coordinate of the button. |
§ Active
sets and gets whether button is active.
§ hasItem
bool Model.Button.hasItem |
|
getset |
Sets and gets whether an item is currently bounded to button.
§ item
Sets and gets string name for item name.
§ weapon
Sets and gets weapon associated with the button.
The documentation for this class was generated from the following file: