Thread: Adding new menu items
-
September 12th, 2024, 13:04 #1
- Join Date
- Mar 2009
- Location
- Lidingö, Sweden, Europe
- Posts
- 407
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
-
September 12th, 2024, 13:52 #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
-
September 12th, 2024, 14:06 #3
- Join Date
- Mar 2009
- Location
- Lidingö, Sweden, Europe
- Posts
- 407
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...
-
September 12th, 2024, 14:07 #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
-
September 12th, 2024, 14:14 #5
- Join Date
- Mar 2009
- Location
- Lidingö, Sweden, Europe
- Posts
- 407
Yes! That did it. Thanks!
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks