Merge pull request #87183 from hakro/where-is-my-tooltip
Add tooltips to the export buttons
This commit is contained in:
commit
9e65c5c0f4
1 changed files with 2 additions and 0 deletions
|
@ -1396,12 +1396,14 @@ ProjectExportDialog::ProjectExportDialog() {
|
||||||
|
|
||||||
set_cancel_button_text(TTR("Close"));
|
set_cancel_button_text(TTR("Close"));
|
||||||
set_ok_button_text(TTR("Export PCK/ZIP..."));
|
set_ok_button_text(TTR("Export PCK/ZIP..."));
|
||||||
|
get_ok_button()->set_tooltip_text(TTR("Export the project resources as a PCK or ZIP package. This is not a playable build, only the project data without a Godot executable."));
|
||||||
get_ok_button()->set_disabled(true);
|
get_ok_button()->set_disabled(true);
|
||||||
#ifdef ANDROID_ENABLED
|
#ifdef ANDROID_ENABLED
|
||||||
export_button = memnew(Button);
|
export_button = memnew(Button);
|
||||||
export_button->hide();
|
export_button->hide();
|
||||||
#else
|
#else
|
||||||
export_button = add_button(TTR("Export Project..."), !DisplayServer::get_singleton()->get_swap_cancel_ok(), "export");
|
export_button = add_button(TTR("Export Project..."), !DisplayServer::get_singleton()->get_swap_cancel_ok(), "export");
|
||||||
|
export_button->set_tooltip_text(TTR("Export the project as a playable build (Godot executable and project data) for the selected preset."));
|
||||||
#endif
|
#endif
|
||||||
export_button->connect("pressed", callable_mp(this, &ProjectExportDialog::_export_project));
|
export_button->connect("pressed", callable_mp(this, &ProjectExportDialog::_export_project));
|
||||||
// Disable initially before we select a valid preset
|
// Disable initially before we select a valid preset
|
||||||
|
|
Loading…
Reference in a new issue