Hello,
Can someone please direct me to a good code example for adding a footer bar at the bottom of the Graph Editor with collapsing behavior to the status bar? I would like to also add a button similar to the one for the User Prefs’ Header [^].
Would it be best to go by space_statusbar.c?
/* regions: footer */
art = MEM_callocN(sizeof(ARegionType), "spacetype graphedit region");
art->regionid = RGN_TYPE_UI;
art->prefsizey = 0.8f * HEADERY;
art->keymapflag = ED_KEYMAP_UI | ED_KEYMAP_VIEW2D | ED_KEYMAP_HEADER;
art->listener = graph_footer_listener;
art->init = graph_footer_region_init;
art->draw = graph_footer_region_draw;
Thank you!