Compare commits

..

7 Commits

Author SHA1 Message Date
Wilson E. Alvarez 700642cb34
Merge 27c3f1896a into e9884589a8 2024-12-12 23:34:57 +01:00
Wilson E. Alvarez 27c3f1896a
Fix unhandled oneshot property hint
Due to upstream change:

	761a20f7a7
2024-11-25 17:50:07 -05:00
Wilson E. Alvarez a00eb6df69
Fix forbidden comparisons between Ref and nullptr.
Necessary when compiling with strict_checks=yes.

Due to upstream change:

	df29cc696f
2024-11-15 15:57:26 -05:00
Wilson E. Alvarez 70994acd15
Fix internal Button set_icon calls to set_button_icon
Due to upstream change:

    562c666e3d
2024-11-15 15:57:23 -05:00
Wilson E. Alvarez 9a869115b4
Fix unhandled tool button property hint
Due to upstream change:

	85dfd89653
2024-11-15 15:54:55 -05:00
Wilson E. Alvarez 364620fee0
Fix unhandled dictionary property hint
Due to upstream change:

	9853a69144
2024-11-15 15:54:55 -05:00
Wilson E. Alvarez 63544281e5
Update EditorMainScreen calls after its extraction
Due to upstream change:

	5e1c9d68aa
2024-11-15 15:54:55 -05:00
1 changed files with 9 additions and 2 deletions

View File

@ -68,6 +68,9 @@ Control *TaskButton::_do_make_tooltip() const {
help_symbol = "class|" + task_meta + "|";
}
EditorHelpBit *help_bit = memnew(EditorHelpBit(help_symbol));
help_bit->set_content_height_limits(1, 360 * EDSCALE);
String desc = _module_get_help_description(task_meta);
if (desc.is_empty() && is_resource) {
// ! HACK: Force documentation parsing.
@ -81,10 +84,14 @@ Control *TaskButton::_do_make_tooltip() const {
desc = _module_get_help_description(task_meta);
}
}
if (desc.is_empty()) {
if (desc.is_empty() && help_bit->get_description().is_empty()) {
desc = "[i]" + TTR("No description.") + "[/i]";
}
EditorHelpBitTooltip::show_tooltip(const_cast<TaskButton *>(this), help_symbol, desc);
if (!desc.is_empty()) {
help_bit->set_description(desc);
}
EditorHelpBitTooltip::show_tooltip(help_bit, const_cast<TaskButton *>(this));
#endif // LIMBOAI_MODULE
#ifdef LIMBOAI_GDEXTENSION