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 [^].
I’m not getting any errors, but I’m also not seeing anything in the Graph Editor. I haven’t worked with the draw code in C before. Can you please let me know what I need to do to see my Footer region? Thank you!
Nevermind, I think it’s working. I had to create a new Editor window and make it a Graph Editor. There is still an issue: the context menu for the Text Editor shows a checkbox while the Graph Editor’s is text-only:
How can I show the checkbox instead? I looked in space_text.py, but didn’t see anything about the Footer. I am also getting this error:
uiItemR: property not found: SpaceGraphEditor.show_region_footer
The create() callback will not be called for existing editors that are saved and loaded from files. Neither is it when opening an editor that was open in that area (basically the sub-window rectangle containing the editors) before, where we just re-activate an editor. It’s only called when an editor is opened for the first time in an area.
To add the footer to editors stored in files, you have to write versioning code. Best search for do_versions_add_region_if_not_found() and see how that’s used.