From 2f1fd6fb6254274cb89fcd6da1a1ee0655835a96 Mon Sep 17 00:00:00 2001 From: "Wilson E. Alvarez" Date: Sun, 21 Apr 2024 16:26:10 -0400 Subject: [PATCH] Update EditorHelpBit calls Due to upstream change: https://github.com/godotengine/godot/commit/a714cb9f65faefaa21bef240397ca6d249edd53c --- editor/task_palette.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/task_palette.cpp b/editor/task_palette.cpp index 1987322..f49bb93 100644 --- a/editor/task_palette.cpp +++ b/editor/task_palette.cpp @@ -60,7 +60,7 @@ void TaskButton::_bind_methods() { Control *TaskButton::_do_make_tooltip(const String &p_text) const { #ifdef LIMBOAI_MODULE EditorHelpBit *help_bit = memnew(EditorHelpBit); - help_bit->get_rich_text()->set_custom_minimum_size(Size2(360 * EDSCALE, 1)); + help_bit->set_content_height_limits(1, 360 * EDSCALE); String help_text; if (!p_text.is_empty()) { @@ -69,7 +69,7 @@ Control *TaskButton::_do_make_tooltip(const String &p_text) const { help_text = "[i]" + TTR("No description.") + "[/i]"; } - help_bit->set_text(help_text); + help_bit->set_custom_text(String(), String(), help_text); return help_bit; #endif // LIMBOAI_MODULE