PDA

View Full Version : data_library - Sidebar button



Xarxus
April 27th, 2023, 15:13
I have a doubt. Reading the 5e code I noticed file data_library_5e.lua


["background"] = {
bExport = true,
aDataMap = { "background", "reference.backgrounddata" },
sRecordDisplayClass = "reference_background",
},As far as I know, to create a Sidebar entry within the Character group it was necessary this varable
sSidebarCategory = "create"But I don't see any use of sSidebarCategory. Is it deprecated?
If yes, how is the entry placed under Character?

Moon Wizard
April 27th, 2023, 16:51
There are many built into the CoreRPG base manager_desktop.lua script (line 32). That was done to avoid most rulesets from having to make any changes at the time that the sidebar was revamped.

In general, it's best to specify a sSidebarCategory if you need a record type anywhere other than "campaign"

Regards,
JPG

Trenloe
April 27th, 2023, 16:52
If sSidebarCategory is not present then it defaults to "campaign". Information when we last discussed this can be found here: https://www.fantasygrounds.com/forums/showthread.php?77079-Sidebar-buttons&p=680148&viewfull=1#post680148

Xarxus
April 27th, 2023, 18:10
You're right, sometimes I forget things. I should have searched better even among what I myself had asked for. :p