SWADE Playlist
Page 2 of 2 First 12
  1. #11
    In addition to the table registration, you also need to define string assets to give the information for what text to display.

    <string name="library_recordtype_label_npc">NPCs</string>
    <string name="library_recordtype_empty_npc">&#171; New Personality &#187;</string>

    Regards,
    JPG

  2. #12
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    30,667
    Quote Originally Posted by Xarxus View Post
    Okay, I'm also studying the sidebar buttons and I have many doubts, I'm not understanding them.

    I created a data_library_personalized.lua file with the following code.
    Code:
    aRecordOverrides = {
    	["vocation"] = {
    		bExport = true, 
    		aDataMap = { "vocation", "reference.vocationdata" }, 
    		sRecordDisplayClass = "reference_vocation", 
    		sSidebarCategory = "create",
    	},
    };
    
    function onInit()
    	LibraryData.overrideRecordTypes(aRecordOverrides);
    end
    The button I get is devoid of writing. First problem, how do I add it and how do I change the icon?


    My second problem is that pressing the button opens a generic window. I don't know what it is, I don't know how to implement it, and I don't even know how to make a title appear on it.
    What Moon Wizard said, and also some related info here: https://www.fantasygrounds.com/forum...aryData-Script
    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!

  3. #13
    Xarxus's Avatar
    Join Date
    Mar 2019
    Location
    Rome (Italy)
    Posts
    56
    Great Trenloe, that's what exactly what I was looking for.

    Ty all!
    FGU ULTIMATE License

Thread Information

Users Browsing this Thread

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
PF2E Playlist

Log in

Log in