From 87fa1c74281a651b23089079c4c1621d4fb66d73 Mon Sep 17 00:00:00 2001 From: hop311 Date: Sun, 4 Feb 2024 14:09:06 +0000 Subject: Added support for loading all gui files --- src/openvic-simulation/interface/UI.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/openvic-simulation/interface/UI.hpp') diff --git a/src/openvic-simulation/interface/UI.hpp b/src/openvic-simulation/interface/UI.hpp index 286e4f7..c8ffa98 100644 --- a/src/openvic-simulation/interface/UI.hpp +++ b/src/openvic-simulation/interface/UI.hpp @@ -10,9 +10,13 @@ namespace OpenVic { IdentifierRegistry IDENTIFIER_REGISTRY(font); bool _load_font(ast::NodeCPtr node); + NodeTools::NodeCallback auto _load_fonts(std::string_view font_key); public: - bool add_font(std::string_view identifier, colour_argb_t colour, std::string_view fontname); + bool add_font( + std::string_view identifier, colour_argb_t colour, std::string_view fontname, std::string_view charset, + uint32_t height + ); bool load_gfx_file(ast::NodeCPtr root); bool load_gui_file(std::string_view scene_name, ast::NodeCPtr root); -- cgit v1.2.3-56-ga3b1