Compare commits
7 Commits
f95df990f6
...
700642cb34
Author | SHA1 | Date |
---|---|---|
|
700642cb34 | |
|
27c3f1896a | |
|
a00eb6df69 | |
|
70994acd15 | |
|
9a869115b4 | |
|
364620fee0 | |
|
63544281e5 |
|
@ -68,6 +68,9 @@ Control *TaskButton::_do_make_tooltip() const {
|
||||||
help_symbol = "class|" + task_meta + "|";
|
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);
|
String desc = _module_get_help_description(task_meta);
|
||||||
if (desc.is_empty() && is_resource) {
|
if (desc.is_empty() && is_resource) {
|
||||||
// ! HACK: Force documentation parsing.
|
// ! HACK: Force documentation parsing.
|
||||||
|
@ -81,10 +84,14 @@ Control *TaskButton::_do_make_tooltip() const {
|
||||||
desc = _module_get_help_description(task_meta);
|
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]";
|
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
|
#endif // LIMBOAI_MODULE
|
||||||
|
|
||||||
#ifdef LIMBOAI_GDEXTENSION
|
#ifdef LIMBOAI_GDEXTENSION
|
||||||
|
|
Loading…
Reference in New Issue