Okay, I'm also studying the sidebar buttons and I have many doubts, I'm not understanding them.
I created a
data_library_personalized.lua file with the following code.
Code:
aRecordOverrides = {
["vocation"] = {
bExport = true,
aDataMap = { "vocation", "reference.vocationdata" },
sRecordDisplayClass = "reference_vocation",
sSidebarCategory = "create",
},
};
function onInit()
LibraryData.overrideRecordTypes(aRecordOverrides);
end
The button I get is devoid of writing. First problem, how do I add it and how do I change the icon?
My second problem is that pressing the button opens a generic window. I don't know what it is, I don't know how to implement it, and I don't even know how to make a title appear on it.