Merge pull request #27902 from Calinou/decrease-tooltip-delay

Decrease the default tooltip delay to 0.5 seconds
This commit is contained in:
Rémi Verschelde 2019-04-11 08:46:30 +02:00 committed by GitHub
commit 0e7f116b52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3222,7 +3222,7 @@ Viewport::Viewport() {
gui.tooltip_timer = -1;
//gui.tooltip_timer->force_parent_owned();
gui.tooltip_delay = GLOBAL_DEF("gui/timers/tooltip_delay_sec", 0.7);
gui.tooltip_delay = GLOBAL_DEF("gui/timers/tooltip_delay_sec", 0.5);
ProjectSettings::get_singleton()->set_custom_property_info("gui/timers/tooltip_delay_sec", PropertyInfo(Variant::REAL, "gui/timers/tooltip_delay_sec", PROPERTY_HINT_RANGE, "0,5,0.01,or_greater")); // No negative numbers
gui.tooltip = NULL;