aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic-extension/classes/GUILabel.hpp
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2024-09-20 00:48:10 +0200
committer GitHub <noreply@github.com>2024-09-20 00:48:10 +0200
commit8f0538b74fd274721a3178bff9b1294a71af3431 (patch)
tree6dbafe4337ceb672a6e5972b0155333f73cbf262 /extension/src/openvic-extension/classes/GUILabel.hpp
parent110a6ad29fb84e4507698897e97aab3f36b24242 (diff)
parentc26247464feabe0fbb9d6a8527b242d667faa066 (diff)
Merge pull request #270 from OpenVicProject/tall-tooltip
Allow tooltips to be as tall as the window + shift them to stay inside it
Diffstat (limited to 'extension/src/openvic-extension/classes/GUILabel.hpp')
-rw-r--r--extension/src/openvic-extension/classes/GUILabel.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/extension/src/openvic-extension/classes/GUILabel.hpp b/extension/src/openvic-extension/classes/GUILabel.hpp
index 67981d7..f04e3ab 100644
--- a/extension/src/openvic-extension/classes/GUILabel.hpp
+++ b/extension/src/openvic-extension/classes/GUILabel.hpp
@@ -74,6 +74,8 @@ namespace OpenVic {
GUI::Text const* new_gui_text, GFX::Font::colour_codes_t const* override_colour_codes = nullptr
);
+ void force_update_lines();
+
void set_text(godot::String const& new_text);
void add_substitution(godot::String const& key, godot::String const& value);
@@ -81,6 +83,7 @@ namespace OpenVic {
void clear_substitutions();
void set_horizontal_alignment(godot::HorizontalAlignment new_horizontal_alignment);
+ godot::Size2 get_base_max_size() const;
void set_max_size(godot::Size2 new_max_size);
void set_border_size(godot::Size2 new_border_size);
void set_auto_adjust_to_content_size(bool new_auto_adjust_to_content_size);