diff options
author | hop311 <hop3114@gmail.com> | 2024-04-15 01:13:46 +0200 |
---|---|---|
committer | hop311 <hop3114@gmail.com> | 2024-04-15 01:24:07 +0200 |
commit | 083365191bd5f586edd850e0bd6a0190de782ab1 (patch) | |
tree | c03b31ed54afbd0cba57b37e47a16fb560131b8f /src/openvic-simulation/interface/UI.hpp | |
parent | a7f125a5f276e2951d1236fe88e32c5c08271504 (diff) |
Rework GFX::Actor Attachments and Animations
Diffstat (limited to 'src/openvic-simulation/interface/UI.hpp')
-rw-r--r-- | src/openvic-simulation/interface/UI.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/openvic-simulation/interface/UI.hpp b/src/openvic-simulation/interface/UI.hpp index ada540a..9aec96c 100644 --- a/src/openvic-simulation/interface/UI.hpp +++ b/src/openvic-simulation/interface/UI.hpp @@ -7,10 +7,11 @@ namespace OpenVic { class UIManager { NamedInstanceRegistry<GFX::Sprite> IDENTIFIER_REGISTRY(sprite); - NamedInstanceRegistry<GUI::Scene, UIManager const&> IDENTIFIER_REGISTRY(scene); IdentifierRegistry<GFX::Font> IDENTIFIER_REGISTRY(font); NamedInstanceRegistry<GFX::Object> IDENTIFIER_REGISTRY(object); + NamedInstanceRegistry<GUI::Scene, UIManager const&> IDENTIFIER_REGISTRY(scene); + bool _load_font(ast::NodeCPtr node); NodeTools::NodeCallback auto _load_fonts(std::string_view font_key); @@ -20,6 +21,8 @@ namespace OpenVic { uint32_t height ); + void lock_gfx_registries(); + bool load_gfx_file(ast::NodeCPtr root); bool load_gui_file(std::string_view scene_name, ast::NodeCPtr root); }; |