Blaze-Brigade
Public Member Functions | Properties | List of all members
View.Button Class Reference

Buttons for the drop down menu buttons when selecting units More...

Public Member Functions

 Button (ButtonType type, Vector2 coordinates, Texture2D image)
 
Vector2 getPixelCoordinates ()
 
ButtonType getButtonType ()
 
Texture2D getImage ()
 
void setPixelCoordinates (int x, int y)
 

Properties

bool Active [get, set]
 
String item [get, set]
 
bool hasItem [get, set]
 
Weapon weapon [get, set]
 

Detailed Description

Buttons for the drop down menu buttons when selecting units

Constructor & Destructor Documentation

§ Button()

View.Button.Button ( ButtonType  type,
Vector2  coordinates,
Texture2D  image 
)

Constructor for button. Button is by defaalt active, and has no item.

Parameters
typeWhich button type
coordinatesThe pixel coordinate of the button
imageThe texture for the button

Member Function Documentation

§ getButtonType()

ButtonType View.Button.getButtonType ( )

Returns the button type

§ getImage()

Texture2D View.Button.getImage ( )

Returns the button image

§ getPixelCoordinates()

Vector2 View.Button.getPixelCoordinates ( )

Returns the pixel coordinate of the button

§ setPixelCoordinates()

void View.Button.setPixelCoordinates ( int  x,
int  y 
)

Sets the pixelCoordinate

Parameters
xThe x coordinate of the button
ythe y coordinate of the button

Property Documentation

§ Active

bool View.Button.Active
getset

sets and gets whether button is active

§ hasItem

bool View.Button.hasItem
getset

Sets and gets whether an item is currently bounded to button

§ item

String View.Button.item
getset

sets and gets string name for item name

§ weapon

Weapon View.Button.weapon
getset

Sets and gets weapon associated with button


The documentation for this class was generated from the following file: