aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic-extension/classes/GUINode.hpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2024-02-19 21:35:07 +0100
committer GitHub <noreply@github.com>2024-02-19 21:35:07 +0100
commit275cfbb62fe69828aeb9968110ad822447322a4e (patch)
tree15fe433ba9259623e2cb90a0ea7ae6a5c2f364b8 /extension/src/openvic-extension/classes/GUINode.hpp
parente4de451ce753dd8786546b9e2c94c579c8dab52e (diff)
parent1455861632cd50f48f6e8ef8c50004087eff36f1 (diff)
Merge pull request #202 from OpenVicProject/nation-management-screens
Basic Nation Management Screen framework
Diffstat (limited to 'extension/src/openvic-extension/classes/GUINode.hpp')
-rw-r--r--extension/src/openvic-extension/classes/GUINode.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/extension/src/openvic-extension/classes/GUINode.hpp b/extension/src/openvic-extension/classes/GUINode.hpp
index e38ed1f..0fbfc66 100644
--- a/extension/src/openvic-extension/classes/GUINode.hpp
+++ b/extension/src/openvic-extension/classes/GUINode.hpp
@@ -25,13 +25,15 @@ namespace OpenVic {
GUINode();
static godot::Control* generate_gui_element(
- godot::String const& gui_file, godot::String const& gui_element, godot::String const& name = ""
+ godot::String const& gui_scene, godot::String const& gui_element, godot::String const& name = ""
);
godot::Error add_gui_element(
- godot::String const& gui_file, godot::String const& gui_element, godot::String const& name = ""
+ godot::String const& gui_scene, godot::String const& gui_element, godot::String const& name = ""
);
+ static godot::Vector2 get_gui_position(godot::String const& gui_scene, godot::String const& gui_position);
+
static godot::Button* get_button_from_node(godot::Node* node);
static godot::CheckBox* get_check_box_from_node(godot::Node* node);
static godot::Label* get_label_from_node(godot::Node* node);