Animation Channels Drawing Tweak:
A solid color backdrop is now drawn behind the mute/protect toggles and sliders, reducing the visual clutter with long names still appearing behind the UI widgets.
This commit is contained in:
@@ -327,6 +327,8 @@ typedef enum eAnimChannel_Settings {
|
||||
/* Drawing, mouse handling, and flag setting behaviour... */
|
||||
typedef struct bAnimChannelType {
|
||||
/* drawing */
|
||||
/* get RGB color that is used to draw the majority of the backdrop */
|
||||
void (*get_backdrop_color)(bAnimContext *ac, bAnimListElem *ale, float *color);
|
||||
/* draw backdrop strip for channel */
|
||||
void (*draw_backdrop)(bAnimContext *ac, bAnimListElem *ale, float yminc, float ymaxc);
|
||||
/* get depth of indention (relative to the depth channel is nested at) */
|
||||
@@ -334,7 +336,6 @@ typedef struct bAnimChannelType {
|
||||
/* get offset in pixels for the start of the channel (in addition to the indent depth) */
|
||||
short (*get_offset)(bAnimContext *ac, bAnimListElem *ale);
|
||||
|
||||
|
||||
/* get name (for channel lists) */
|
||||
void (*name)(bAnimListElem *ale, char *name);
|
||||
/* get icon (for channel lists) */
|
||||
|
||||
Reference in New Issue
Block a user