Looking to improve my Template Switcher indicator. The indicator adds 2 buttons to the top menu bar that cycles through the available templates for a given object. I would like to add an option to change the template based on a drop down list.
There are 2 ways I'm thinking of programming this.
(1) Every time a new object is drawn, that updates the template switcher drop-down list to reflect the available templates for said object. If an object is selected then update the list to that object's templates.
(2) As soon as the drop-down button is selected, the indicator switches the list to the last drawn object or selected object.
The second option seems to be the better option as it's not constantly updating the list, but perhaps that will take too much time to process and the user will see the swapping of buttons.
To save on resources, the indicator would retrieve available templates for objects first and store them for future use.
My question, is option 1 or 2 possible?

Comment