mirror of
https://github.com/godotengine/godot.git
synced 2025-02-23 23:15:07 +08:00
Decrease the default tooltip delay to 0.5 seconds
This matches other applications' and OS' tooltip behaviors more closely.
This commit is contained in:
parent
07b76c0376
commit
73ad31c0fa
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user