3 #include <SFML/Window.hpp> 4 #include <SFML/Graphics.hpp> 15 sf::Sprite Button_Sprite;
16 sf::Texture Button_Texture;
17 std::string Button_texturename;
18 std::string my_status;
19 std::string next_status;
20 std::function<void()> Button_function;
32 Button(std::string texturename,
unsigned int x_pos,
unsigned int y_pos, std::string nextStatus, std::string myStatus);
54 void eventHandler(
const sf::Event& event, std::string& status,
const sf::Vector2f& mouse_pos);