From 4e9764ee29fb7b453862835d5aa3a081b0f9a269 Mon Sep 17 00:00:00 2001 From: hop311 Date: Mon, 18 Dec 2023 23:38:54 +0000 Subject: Back to UI Work - UIAdapter -> UITools with cleaner API - GUIOverlappingElementsBox (for core and modifier icons) - Improved GUINode API - Province building slots - TypeHints for files in the GameSession folder - Incorporate SIM strong colour types --- extension/src/openvic-extension/utility/UITools.hpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 extension/src/openvic-extension/utility/UITools.hpp (limited to 'extension/src/openvic-extension/utility/UITools.hpp') 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 + +#include +#include + +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 + ); +} -- cgit v1.2.3-56-ga3b1