2 #ifndef CLIENT__BUTTON__H
3 #define CLIENT__BUTTON__H
6 #include <SFML/Graphics.hpp>
13 #include "PopUpWindow.hpp"
22 std::shared_ptr<sf::RectangleShape> buttonRect;
23 std::shared_ptr<sf::Text> buttonText;
29 Button (sf::Vector2f buttonSize, sf::Vector2f buttonPos, sf::Color buttonColor,
bool border =
false);
30 void setText (
int textSize, sf::Vector2f textOffset, std::string text, sf::Font& font,
int size = 0);
33 void centerText (
bool centerAllAxis =
true, sf::Vector2f textOffset = {0, 0});
37 void drawButton (std::shared_ptr<sf::RenderWindow> window);