XtreemNodes/include/GUI.h

24 lines
470 B
C++

#ifndef GUI
#defome GUI
#include <SFML/Main.hpp>
class Button {
public:
Button (sf::Image* normal,sf::Image* clicked,std::string,sf::Vector2f location);
void checkClick (sf::Vector2f);
void setState(bool);
void setText(std::string);
bool getVar();
sf::Sprite* getSprite();
sf::String * getText();
private:
sf::Sprite normal;
sf::Sprite clicked;
sf::Sprite* currentSpr;
sf::String String;
bool current;
};
#endif // GUI