Valarian
January 1st, 2022, 15:17
I'm currently creating a new unofficial ruleset for the Dune roleplaying game. I've added three new reference data categories for the ruleset in the scripts/data_library_dune.lua file and called the LibraryData.overrideRecordTypes function.
aRecordOverrides = {
-- CoreRPG overrides
-- New record types
["talent"] = {
bExport = true,
aDataMap = { "talent", "reference.talents" },
sRecordDisplayClass = "reference_talent",
},
["concept"] = {
bExport = true,
aDataMap = { "concept", "reference.concepts" },
sRecordDisplayClass = "reference_concept",
},
["archetype"] = {
bExport = true,
aDataMap = { "archetype", "reference.archetypes" },
sRecordDisplayClass = "reference_archetype",
},
};
function onInit()
LibraryData.overrideRecordTypes(aRecordOverrides);
end
Two of the new reference types appear under the Character category. The other appears under the Campaign category.
Ideally, I want to have all of the new reference types under the Character sidebar category. Is there a way to influence this in the data?
While the default icons are okay, is there a way to set the sidebar icon to use? Where are the sidebar icons located?
aRecordOverrides = {
-- CoreRPG overrides
-- New record types
["talent"] = {
bExport = true,
aDataMap = { "talent", "reference.talents" },
sRecordDisplayClass = "reference_talent",
},
["concept"] = {
bExport = true,
aDataMap = { "concept", "reference.concepts" },
sRecordDisplayClass = "reference_concept",
},
["archetype"] = {
bExport = true,
aDataMap = { "archetype", "reference.archetypes" },
sRecordDisplayClass = "reference_archetype",
},
};
function onInit()
LibraryData.overrideRecordTypes(aRecordOverrides);
end
Two of the new reference types appear under the Character category. The other appears under the Campaign category.
Ideally, I want to have all of the new reference types under the Character sidebar category. Is there a way to influence this in the data?
While the default icons are okay, is there a way to set the sidebar icon to use? Where are the sidebar icons located?