From e45e92e0ff294e6a1899b01b8cfdd8ab25d8dcdc Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Tue, 13 Dec 2022 19:35:48 +0100 Subject: Make a better text rendering system and a simple example in titlestate --- src/ui.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ui.h') 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 +#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); }; -- cgit v1.2.3