STAR TREK 2d20

Thread: Sidebar buttons

  1. #1
    Xarxus's Avatar
    Join Date
    Mar 2019
    Location
    Rome (Italy)
    Posts
    244

    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.
    FGU ULTIMATE License
    Click here for RPG Music or here for Dwarves songs on Spotify

  2. #2

  3. #3
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,291
    Quote Originally Posted by Xarxus View Post
    Also I don't quite understand how to choose in which category a new button should be.
    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" },	
    		},
    	},
    The defaults are set in CoreRPG scripts\manager_desktop.lua in the _tDefaultRecordTypeCategories table.
    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!

  4. #4
    Xarxus's Avatar
    Join Date
    Mar 2019
    Location
    Rome (Italy)
    Posts
    244
    Ty both!
    FGU ULTIMATE License
    Click here for RPG Music or here for Dwarves songs on Spotify

  5. #5
    Xarxus's Avatar
    Join Date
    Mar 2019
    Location
    Rome (Italy)
    Posts
    244
    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?
    FGU ULTIMATE License
    Click here for RPG Music or here for Dwarves songs on Spotify

  6. #6
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,291
    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!

  7. #7
    Xarxus's Avatar
    Join Date
    Mar 2019
    Location
    Rome (Italy)
    Posts
    244
    Ty again!
    FGU ULTIMATE License
    Click here for RPG Music or here for Dwarves songs on Spotify

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
DICE PACKS BUNDLE

Log in

Log in