aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic-extension/utility/UITools.hpp
blob: 6092853c87a5fded6afc9beb78a5b470ee54c924 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#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_scene, godot::String const& gui_element);
   GUI::Position const* get_gui_position(godot::String const& gui_scene, godot::String const& gui_position);

   bool generate_gui_element(
      GUI::Element const* element, godot::String const& name, godot::Control*& result
   );
   bool generate_gui_element(
      godot::String const& gui_scene, godot::String const& gui_element, godot::String const& name, godot::Control*& result
   );
}