Starfinder Playlist
  1. #1

    Join Date
    Mar 2009
    Location
    Lidingö, Sweden, Europe
    Posts
    403

    Adding new menu items

    I've added a few new items to the menu. One of the shows up under "Character" which is what I expected but two shows up under "Campaign". Where do I specify under which menu category an item should appear?

    FGU_menu_additions.png

  2. #2
    You would need to set the sSidebarCategory in your library entry. The string you use here will then need to be declared as a string resource with the prefix library_category_label_

    An example:
    Code:
    --data_library_<ruleset>.lua
    aRecordOverrides = {
    	["location"] = {
    		aDataMap = { "location", "reference.location" },
    		aGMListButtons = { "button_settlement_structures", "button_settlement_rooms", "button_settlement_objects" },
    		sSidebarCategory = "world",
    		tOptions = {
    			bExport = true,
    		},
    	},
    };
    
    function onInit()
    	LibraryData.overrideRecordTypes(aRecordOverrides);
    end
    
    --your string file
    <string name="library_category_label_world">World</string>
    Dominic Morta
    Ruleset Developer
    Smiteworks

    How to zip up your campaign if the Developers ask for it-How to zip up your campaign if the Developers ask for it

    How to provide an Unity Connection issue?-Connection Issues and What to Provide

    Unity Updater issue?-Updater Issues

    Classic and Unity Port Forwarding?-Fantasy Grounds Connections Explained

    Comcast or Cox ISP User?-Comcast XFinity and Cox Users

    Have a suggestion?-Feature Request

  3. #3

    Join Date
    Mar 2009
    Location
    Lidingö, Sweden, Europe
    Posts
    403
    Yes, I managed to show them in a new category. But I want to have them shown under the "Character" category. I tried "sSidebarCategory = "character" but that created a new category...

  4. #4
    Oh apologies, the category name is 'create'
    Dominic Morta
    Ruleset Developer
    Smiteworks

    How to zip up your campaign if the Developers ask for it-How to zip up your campaign if the Developers ask for it

    How to provide an Unity Connection issue?-Connection Issues and What to Provide

    Unity Updater issue?-Updater Issues

    Classic and Unity Port Forwarding?-Fantasy Grounds Connections Explained

    Comcast or Cox ISP User?-Comcast XFinity and Cox Users

    Have a suggestion?-Feature Request

  5. #5

    Join Date
    Mar 2009
    Location
    Lidingö, Sweden, Europe
    Posts
    403
    Yes! That did it. Thanks!

Thread Information

Users Browsing this Thread

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

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