Button with an Ability and cooldown visualization.
More...
#include <AbilityButton.hpp>
|
|
| AbilityButton (int x, int y, const tinyxml2::XMLElement *xmlButtonDefinition, std::shared_ptr< Ability const > const &ability) |
| |
|
void | updateCooldownVisuals (sf::Time const &elapsedTime) |
| |
|
| Button (int x, int y, const tinyxml2::XMLElement *xmlButtonDefinition) |
| |
|
virtual void | update (sf::Vector2i const &mousePos) |
| |
|
bool | checkClick () const |
| |
|
void | enable () |
| |
|
void | disable () |
| |
|
bool | containsMouse () const |
| |
|
std::string const & | getName () const |
| |
|
void | setPosition (sf::Vector2f const &position) |
| |
|
sf::Vector2f const & | getPosition () const |
| |
|
sf::Vector2f const & | getSize () const |
| |
|
sf::Vector2f const & | getScale () const |
| |
|
|
void | draw (sf::RenderTarget &target, sf::RenderStates states) const override |
| |
|
void | draw (sf::RenderTarget &target, sf::RenderStates states) const override |
| |
|
void | setState (State newState) |
| |
|
|
sf::RectangleShape | mCooldownVisual |
| |
|
thor::Animator< sf::RectangleShape, std::string > | mCooldownAnimator |
| |
|
std::weak_ptr< Ability const > | mAbility |
| |
|
sf::Text | mHotkeyText |
| |
|
| enum | State { NORMAL,
HOVER,
DISABLED
} |
| |
|
enum gui::Button::State | mState |
| |
Button with an Ability and cooldown visualization.
The documentation for this class was generated from the following file: