summaryrefslogtreecommitdiff
path: root/src/ui.h
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2022-12-13 19:35:48 +0100
committerEkaitz Zarraga <ekaitz@elenq.tech>2022-12-13 19:35:48 +0100
commite45e92e0ff294e6a1899b01b8cfdd8ab25d8dcdc (patch)
tree6021345d94502db896ca0174abf270b51e89e306 /src/ui.h
parent70c0be5b2cfb3b9cfe86d5a6e6624e28fb845453 (diff)
Make a better text rendering system and a simple example in titlestate
Diffstat (limited to 'src/ui.h')
-rw-r--r--src/ui.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui.h b/src/ui.h
index 16027ae..34127fe 100644
--- a/src/ui.h
+++ b/src/ui.h
@@ -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);
};