Compare commits

..

8 Commits

Author SHA1 Message Date
Wilson E. Alvarez f95df990f6
Merge 05a28f5adb into e9884589a8 2024-12-15 18:46:45 -05:00
Wilson E. Alvarez 05a28f5adb
Refactor EditorHelpBit usage
Compiles yet need to take another look -- unsure if this is a proper
patch.

Due to upstream change:

	4e19ab8afe
2024-12-15 18:46:29 -05:00
Wilson E. Alvarez 92768dc579
Fix unhandled oneshot property hint
Due to upstream change:

	761a20f7a7
2024-12-11 18:50:11 -05:00
Wilson E. Alvarez 4ddf308485
Fix forbidden comparisons between Ref and nullptr.
Necessary when compiling with strict_checks=yes.

Due to upstream change:

	df29cc696f
2024-12-11 18:50:11 -05:00
Wilson E. Alvarez f0c2d383b6
Fix internal Button set_icon calls to set_button_icon
Due to upstream change:

    562c666e3d
2024-12-11 18:50:11 -05:00
Wilson E. Alvarez cc16d5a226
Fix unhandled tool button property hint
Due to upstream change:

	85dfd89653
2024-12-11 18:50:11 -05:00
Wilson E. Alvarez 714a771b82
Fix unhandled dictionary property hint
Due to upstream change:

	9853a69144
2024-12-11 18:50:11 -05:00
Wilson E. Alvarez 28466a3ecb
Update EditorMainScreen calls after its extraction
Due to upstream change:

	5e1c9d68aa
2024-12-11 18:50:11 -05:00
1 changed files with 2 additions and 9 deletions

View File

@ -68,9 +68,6 @@ 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.
@ -84,14 +81,10 @@ Control *TaskButton::_do_make_tooltip() const {
desc = _module_get_help_description(task_meta);
}
}
if (desc.is_empty() && help_bit->get_description().is_empty()) {
if (desc.is_empty()) {
desc = "[i]" + TTR("No description.") + "[/i]";
}
if (!desc.is_empty()) {
help_bit->set_description(desc);
}
EditorHelpBitTooltip::show_tooltip(help_bit, const_cast<TaskButton *>(this));
EditorHelpBitTooltip::show_tooltip(const_cast<TaskButton *>(this), help_symbol, desc);
#endif // LIMBOAI_MODULE
#ifdef LIMBOAI_GDEXTENSION