rmilmine
April 2nd, 2026, 23:47
I'm looking at tabs and ways to use them.
I wanted to have a tab show up on a window only if the item in question was on a character or npc, but...
I can't seem to see a way to do this.
I found buttongroup_tabs.lua but it doesn't have a way to set visibility of individual tabs.
It has activateTabEntry(n) and deactivateTabEntry(n).
I'm unsure what deactivate actually does as when I try using it the tab is still visible, and active, clicks still work, I can change data on the tab.
Is there something else that needs to be done with the contents of the tab?
Is there an actual way to set a tabs visibility?
The work around I did was to do the following.
<windowclass name="skill_tabbed" copy="record_window_tabbed">
<windowclass name="skill" copy="record_window" />
<windowclass name="skill_header" copy="record_header" />
<windowclass name="skill_main">
In the shortcut on the character sheet the shortcut uses "skill_tabbed".
The registering of the skill data uses "skill".
So when creating new skills it uses "skill", but when opening the shortcut on the character sheet it uses "skill_tabbed".
Other than the icon for the shortcut on the character sheet being different than everywhere else it works fine, but would prefer to just use one windowclass.
Thanks,
Robert.
I wanted to have a tab show up on a window only if the item in question was on a character or npc, but...
I can't seem to see a way to do this.
I found buttongroup_tabs.lua but it doesn't have a way to set visibility of individual tabs.
It has activateTabEntry(n) and deactivateTabEntry(n).
I'm unsure what deactivate actually does as when I try using it the tab is still visible, and active, clicks still work, I can change data on the tab.
Is there something else that needs to be done with the contents of the tab?
Is there an actual way to set a tabs visibility?
The work around I did was to do the following.
<windowclass name="skill_tabbed" copy="record_window_tabbed">
<windowclass name="skill" copy="record_window" />
<windowclass name="skill_header" copy="record_header" />
<windowclass name="skill_main">
In the shortcut on the character sheet the shortcut uses "skill_tabbed".
The registering of the skill data uses "skill".
So when creating new skills it uses "skill", but when opening the shortcut on the character sheet it uses "skill_tabbed".
Other than the icon for the shortcut on the character sheet being different than everywhere else it works fine, but would prefer to just use one windowclass.
Thanks,
Robert.