diff options
author | Ekaitz Zarraga <ekaitz@elenq.tech> | 2022-12-13 19:35:48 +0100 |
---|---|---|
committer | Ekaitz Zarraga <ekaitz@elenq.tech> | 2022-12-13 19:35:48 +0100 |
commit | e45e92e0ff294e6a1899b01b8cfdd8ab25d8dcdc (patch) | |
tree | 6021345d94502db896ca0174abf270b51e89e306 /src/ui.h | |
parent | 70c0be5b2cfb3b9cfe86d5a6e6624e28fb845453 (diff) |
Make a better text rendering system and a simple example in titlestate
Diffstat (limited to 'src/ui.h')
-rw-r--r-- | src/ui.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -2,6 +2,7 @@ #define UI_H #include<SFML/Graphics.hpp> +#include"graphics/text.h" enum class MouseButton{ Left, @@ -37,8 +38,8 @@ class UI{ void finishImUI(); bool button(sf::RenderWindow *win, int id, const std::string &text, sf::Vector2i pos, sf::Vector2i size); - bool radioButton(sf::RenderWindow *win, int id, - const std::string &text, bool state, sf::Vector2i pos, + bool radioButton(sf::RenderWindow *win, Graphics::TextureFont font, + int id, const std::string &text, bool state, sf::Vector2i pos, sf::Vector2i size); }; |