Skip to content

Commit

Permalink
Update EditorHelpBit calls
Browse files Browse the repository at this point in the history
Due to upstream change:

	godotengine/godot@a714cb9
  • Loading branch information
Rubonnek committed Apr 21, 2024
1 parent 662339d commit 02d4921
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions editor/task_palette.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand All @@ -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
Expand Down

0 comments on commit 02d4921

Please sign in to comment.