Button tabs in PC and NPC sheet
I'm unsure what is being done with tabs now.
Previously had overridden common/scripts/buttongroup_tabs.lua to provide a call back function so that I knew when tabs were clicked. This required overriding numerous functions to allow the trigger of the callback. The code is common for both PC and NPC sheets so does not need to distinguish which is which.
When I ran with TEST - the PC sheet did not seem to have an issue. All good.
But as soon as I brought up an NPC sheet the
self.parentcontrol.window.tabs.setCallback (PolymorphismManager.TabsCallback, self);
function call setting the callback (same as in PC) claimed "tabs" was nil.
I need to understand how to recreate my stuff in this new world where PC and NPC tabs have somehow diverged.
So what has happened with "tabs" and how to do I implement my buttongroup_tabs.lua functionality that lets me know when tabs have been clicked or double clicked or whatever I do in my override.
I have had to replace code that added a tab into an NPC sheet - but that does not really tell me how or where the functionality I had in this buttongroup_tabs.lua would go.