From b05fd95f8aaf3eecb88dbb87744fec7bda30fa1f Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Tue, 24 Apr 2018 19:18:22 +0200 Subject: Current Frame Indicator tweaks * Draw the frame/time number box over the scrollbar instead of above it, to reduce the clutter/clashes with markers. * Draw the box centered around the line instead of off to one side, making it clearer that the frame shown is the one being affected. * Make the box larger than the scrollbar + use white text to make it stand out from the neighbouring frame numbers (otherwise, it's easy to misread that it's just another one of those) --- source/blender/editors/include/ED_anim_api.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'source/blender/editors/include') diff --git a/source/blender/editors/include/ED_anim_api.h b/source/blender/editors/include/ED_anim_api.h index 888e9e04636..2165402b6d3 100644 --- a/source/blender/editors/include/ED_anim_api.h +++ b/source/blender/editors/include/ED_anim_api.h @@ -535,17 +535,18 @@ void ANIM_fcurve_delete_from_animdata(bAnimContext *ac, struct AnimData *adt, st enum eAnimEditDraw_CurrentFrame { /* plain time indicator with no special indicators */ DRAWCFRA_PLAIN = 0, - /* draw box indicating current frame number */ - DRAWCFRA_SHOW_NUMBOX = (1 << 0), /* time indication in seconds or frames */ - DRAWCFRA_UNIT_SECONDS = (1 << 1), + DRAWCFRA_UNIT_SECONDS = (1 << 0), /* draw indicator extra wide (for timeline) */ - DRAWCFRA_WIDE = (1 << 2) + DRAWCFRA_WIDE = (1 << 1) }; /* main call to draw current-frame indicator in an Animation Editor */ void ANIM_draw_cfra(const struct bContext *C, struct View2D *v2d, short flag); +/* main call to draw "number box" in scrollbar for current frame indicator */ +void ANIM_draw_cfra_number(const struct bContext *C, struct View2D *v2d, short flag); + /* ------------- Preview Range Drawing -------------- */ /* main call to draw preview range curtains */ -- cgit v1.2.3