diff --git a/include/gui.hpp b/include/gui.hpp index 01a33372..f0abb36a 100644 --- a/include/gui.hpp +++ b/include/gui.hpp @@ -230,6 +230,12 @@ namespace GraphicalUserInterface Vector Buttons; public: + void ReplaceFont(Video::Font *NewFont) + { + delete this->CurrentFont; + this->CurrentFont = NewFont; + } + Handle CreatePanel(Rect rect, uint32_t Color); Handle CreateButton(Rect rect, const char *Text, uintptr_t OnClick = (uintptr_t) nullptr); Handle CreateLabel(Rect rect, const char *Text);