I am wanting to do something with a mod that involves simulating closing the current crafting station and re-activating it. Basically, I want the cooking station to return to the default tab and display no matter where you are.
Well, I think I found a hack to make what I want to do work by catching the open state of navigation menus in a table of controls then running ZO_TreeHeader_OnMouseUp(control, true) manually on each one that's open.
I want to say I tried that and it threw a nil value error. Was giving it PROVISIONER_SCENE for the scene...
I still think it is possible to do through scene manipulation, but all I really wanted to do was add a button to close all categories. I hack the cooking station in ESO Master Recipe List to add colors, various icons, and remove the exclusive flags so you can open multiple categories at once, plus have all categories closed at startup, etc.
I wanted to have a button that would close all categories so you could quickly return to the category overview where I put the marks for whether each category contains a writ requirement or tracked recipe. The latest version contains the method I ended up using.