Fixed some of Kacperks's code.
This commit is contained in:
@@ -1,23 +1,26 @@
|
||||
#ifndef GUI
|
||||
#defome GUI
|
||||
|
||||
#define GUI
|
||||
#include "Base.h"
|
||||
#include <SFML/Main.hpp>
|
||||
#include <SFML/Graphics.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;
|
||||
class Button
|
||||
{
|
||||
public:
|
||||
Button(sf::Image* normal, sf::Image* clicked, std::string text, Position2D location);
|
||||
void checkClick(Position2D);
|
||||
void setState(bool state);
|
||||
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
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user