aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic-extension/UIAdapter.hpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2023-12-11 12:08:55 +0100
committer GitHub <noreply@github.com>2023-12-11 12:08:55 +0100
commit0b3a162d3db840996c3d89e65dfe9270faebffe5 (patch)
treeb22d464dbf8e0e2569b9be5aa130e4def2e51207 /extension/src/openvic-extension/UIAdapter.hpp
parenta6952efba078e49d6555b0586230986a2cb7ed40 (diff)
parentfd375bdb35d8a7b2ac9cf3dd02cdb0f197451a0b (diff)
Merge pull request #169 from OpenVicProject/guinode
Big UI commit - GUINode, MaskedFlag, PieChart, etc
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
+
}