Browse Source

Decrease the default tooltip delay to 0.5 seconds

This matches other applications' and OS' tooltip behaviors
more closely.
Hugo Locurcio 6 years ago
parent
commit
73ad31c0fa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scene/main/viewport.cpp

+ 1 - 1
scene/main/viewport.cpp

@@ -3222,7 +3222,7 @@ Viewport::Viewport() {
 	gui.tooltip_timer = -1;
 	gui.tooltip_timer = -1;
 
 
 	//gui.tooltip_timer->force_parent_owned();
 	//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
 	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;
 	gui.tooltip = NULL;