aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic-extension/utility/UITools.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'extension/src/openvic-extension/utility/UITools.hpp')
-rw-r--r--extension/src/openvic-extension/utility/UITools.hpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/extension/src/openvic-extension/utility/UITools.hpp b/extension/src/openvic-extension/utility/UITools.hpp
new file mode 100644
index 0000000..65cf17a
--- /dev/null
+++ b/extension/src/openvic-extension/utility/UITools.hpp
@@ -0,0 +1,18 @@
+#pragma once
+
+#include <godot_cpp/classes/control.hpp>
+
+#include <openvic-simulation/interface/GFX.hpp>
+#include <openvic-simulation/interface/GUI.hpp>
+
+namespace OpenVic::UITools {
+ GFX::Sprite const* get_gfx_sprite(godot::String const& gfx_sprite);
+ GUI::Element const* get_gui_element(godot::String const& gui_file, godot::String const& gui_element);
+
+ bool generate_gui_element(
+ GUI::Element const* element, godot::String const& name, godot::Control*& result
+ );
+ bool generate_gui_element(
+ godot::String const& gui_file, godot::String const& gui_element, godot::String const& name, godot::Control*& result
+ );
+}