aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic-extension/UIAdapter.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'extension/src/openvic-extension/UIAdapter.hpp')
-rw-r--r--extension/src/openvic-extension/UIAdapter.hpp27
1 files changed, 18 insertions, 9 deletions
diff --git a/extension/src/openvic-extension/UIAdapter.hpp b/extension/src/openvic-extension/UIAdapter.hpp
index d54a6b5..258b5e9 100644
--- a/extension/src/openvic-extension/UIAdapter.hpp
+++ b/extension/src/openvic-extension/UIAdapter.hpp
@@ -7,13 +7,22 @@
#include "openvic-extension/singletons/AssetManager.hpp"
namespace OpenVic::GodotGUIBuilder {
- bool generate_element(GUI::Element const* element, AssetManager& asset_manager, godot::Control*& result);
-
- bool generate_icon(GUI::Element const& element, AssetManager& asset_manager, godot::Control*& result);
- bool generate_button(GUI::Element const& element, AssetManager& asset_manager, godot::Control*& result);
- bool generate_checkbox(GUI::Element const& element, AssetManager& asset_manager, godot::Control*& result);
- bool generate_text(GUI::Element const& element, AssetManager& asset_manager, godot::Control*& result);
- bool generate_overlapping_elements(GUI::Element const& element, AssetManager& asset_manager, godot::Control*& result);
- bool generate_listbox(GUI::Element const& element, AssetManager& asset_manager, godot::Control*& result);
- bool generate_window(GUI::Element const& element, AssetManager& asset_manager, godot::Control*& result);
+
+ bool generate_element(
+ GUI::Element const* element, godot::String const& name, AssetManager& asset_manager, godot::Control*& result
+ );
+
+#define GEN_GUI_ARGS \
+ GUI::Element const& element, godot::String const& name, AssetManager& asset_manager, godot::Control*& result
+
+ bool generate_icon(GEN_GUI_ARGS);
+ bool generate_button(GEN_GUI_ARGS);
+ bool generate_checkbox(GEN_GUI_ARGS);
+ bool generate_text(GEN_GUI_ARGS);
+ bool generate_overlapping_elements(GEN_GUI_ARGS);
+ bool generate_listbox(GEN_GUI_ARGS);
+ bool generate_window(GEN_GUI_ARGS);
+
+#undef GEN_GUI_ARGS
+
}