Thread: Sidebar buttons
-
March 2nd, 2023, 00:24 #1
Sidebar buttons
Regarding the Sidebar, I'm trying to figure out how to remove a button provided by CoreRPG (vehicle
for example). I suppose it should be set to nil, but it's not clear to me how to do it.
Also I don't quite understand how to choose in which category a new button should be.
-
March 2nd, 2023, 00:41 #2
LibraryData.setRecordTypeInfo("vehicle", nil);
-
March 2nd, 2023, 09:01 #3
Set the sSidebarCategory variable in the library data record. For example:
Code:["trait"] = { bExport = true, aDataMap = { "trait", "reference.traits" }, sListDisplayClass = "masterindexitem_trait", sRecordDisplayClass = "reference_trait", sSidebarCategory = "campaign"; aCustomFilters = { ["Type"] = { sField = "traittype" }, }, },
Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
March 2nd, 2023, 11:20 #4
-
March 2nd, 2023, 11:43 #5
Looking for vehicle in CoreRPG I found the declaration in data_library.lua. As far as I can see,
there is no sSidebarCategory declared for it, so I looked for it in manager_desktop.lua,
but it's not even there.
Where does CoreRPG define where vehicle is positioned in the Sidebar? Or how does it?
-
March 2nd, 2023, 12:26 #6
The default is "campaign" if there's no sSidebarCategory or no default listed in the _tDefaultRecordTypeCategories table in CoreRPG scripts\manager_desktop.lua
This is set with the following code in manager_desktop.lua:
Code:local sRecordCategory = tRecordTypeInfo.sSidebarCategory or DesktopManager.getSidebarDefaultCategoryByRecordType(sRecordType);
Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
March 2nd, 2023, 18:53 #7
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks