diff options
author | hop311 <hop3114@gmail.com> | 2024-02-24 14:17:07 +0100 |
---|---|---|
committer | hop311 <hop3114@gmail.com> | 2024-02-24 14:17:07 +0100 |
commit | 843edde55306e3fbdb5e37ef9b7c09c7b53f50c4 (patch) | |
tree | 487fea19d42106c08b60f5bba99bc76485073002 /extension/src/openvic-extension/classes/GUINode.hpp | |
parent | 5d7c6eafe35e2c6e952bc0b3f91d27d760c8e75e (diff) |
Added GUIScrollbar and GFXCorneredTileSupportingTexturescrollbar
Diffstat (limited to 'extension/src/openvic-extension/classes/GUINode.hpp')
-rw-r--r-- | extension/src/openvic-extension/classes/GUINode.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/extension/src/openvic-extension/classes/GUINode.hpp b/extension/src/openvic-extension/classes/GUINode.hpp index 42074e3..f935683 100644 --- a/extension/src/openvic-extension/classes/GUINode.hpp +++ b/extension/src/openvic-extension/classes/GUINode.hpp @@ -13,6 +13,7 @@ #include "openvic-extension/classes/GFXMaskedFlagTexture.hpp" #include "openvic-extension/classes/GFXPieChartTexture.hpp" #include "openvic-extension/classes/GUIOverlappingElementsBox.hpp" +#include "openvic-extension/classes/GUIScrollbar.hpp" namespace OpenVic { class GUINode : public godot::Control { @@ -41,6 +42,7 @@ namespace OpenVic { static godot::TextureProgressBar* get_progress_bar_from_node(godot::Node* node); static godot::TextureRect* get_texture_rect_from_node(godot::Node* node); static GUIOverlappingElementsBox* get_gui_overlapping_elements_box_from_node(godot::Node* node); + static GUIScrollbar* get_gui_scrollbar_from_node(godot::Node* node); godot::Button* get_button_from_nodepath(godot::NodePath const& path) const; godot::CheckBox* get_check_box_from_nodepath(godot::NodePath const& path) const; @@ -49,6 +51,7 @@ namespace OpenVic { godot::TextureProgressBar* get_progress_bar_from_nodepath(godot::NodePath const& path) const; godot::TextureRect* get_texture_rect_from_nodepath(godot::NodePath const& path) const; GUIOverlappingElementsBox* get_gui_overlapping_elements_box_from_nodepath(godot::NodePath const& path) const; + GUIScrollbar* get_gui_scrollbar_from_nodepath(godot::NodePath const& path) const; /* Helper functions to get textures from TextureRects and Buttons. */ static godot::Ref<godot::Texture2D> get_texture_from_node(godot::Node* node); @@ -63,5 +66,8 @@ namespace OpenVic { godot::Error hide_node(godot::NodePath const& path) const; godot::Error hide_nodes(godot::TypedArray<godot::NodePath> const& paths) const; + + static godot::String int_to_formatted_string(int64_t val); + static godot::String float_to_formatted_string(float val, int32_t decimal_places); }; } |