diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-09-06 07:19:15 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-09-06 07:19:15 +0300 |
commit | 26c17b0ab12d90ecbee8bc3a1188215ed3c30ddd (patch) | |
tree | c4f8aa9f61fefab9daee98fcd68ba30995eb513a /source/blender/windowmanager/gizmo | |
parent | 59572cbbc454e6439c7a1fdcb4982697d24371e2 (diff) |
UI: delay tool label tip display
Displaying the labels tip immediately feels too intrusive,
make this work more like regular tooltips, displaying more quickly.
Tooltips can now uses multiple passes, each pass with it's own delay
for the next pass to show.
Diffstat (limited to 'source/blender/windowmanager/gizmo')
-rw-r--r-- | source/blender/windowmanager/gizmo/WM_gizmo_api.h | 2 | ||||
-rw-r--r-- | source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/windowmanager/gizmo/WM_gizmo_api.h b/source/blender/windowmanager/gizmo/WM_gizmo_api.h index b59bdd4cf63..b2a8719d5f0 100644 --- a/source/blender/windowmanager/gizmo/WM_gizmo_api.h +++ b/source/blender/windowmanager/gizmo/WM_gizmo_api.h @@ -267,7 +267,7 @@ bool WM_gizmomap_minmax( float r_min[3], float r_max[3]); struct ARegion *WM_gizmomap_tooltip_init( - struct bContext *C, struct ARegion *ar, bool *r_exit_on_event); + struct bContext *C, struct ARegion *ar, int *pass, double *pass_delay, bool *r_exit_on_event); /* -------------------------------------------------------------------- */ /* wmGizmoMapType */ diff --git a/source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c b/source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c index 2c0d0ff34a7..6100905d5cf 100644 --- a/source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c +++ b/source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c @@ -1056,7 +1056,7 @@ void WM_gizmomap_message_subscribe( * \{ */ struct ARegion *WM_gizmomap_tooltip_init( - struct bContext *C, struct ARegion *ar, bool *r_exit_on_event) + struct bContext *C, struct ARegion *ar, int *UNUSED(r_pass), double *UNUSED(pass_delay), bool *r_exit_on_event) { wmGizmoMap *gzmap = ar->gizmo_map; *r_exit_on_event = true; |