PDA

View Full Version : Looking for help a with 5e extension I am trying to create



Aedus Amaterasu
October 3rd, 2019, 16:04
So I finally broke down and decided to try and make a FG extension, more specifically a extension for the 5e rule set. My goal is to remedy something that has really annoyed me for a while now with FG as both a player and a gm, and that is that aside from the "party sheet" there are no inventories separate from the PC character sheet inventory. So I started looking into adding a new tab to the pc sheet that is a separate inventory from the pc's main inventory. To be used for like a home or vehicle etc. So far I have been able to create the new tab.

Though I can't seem to work out how to put a text name on the tab itself. (resolved)

29263

Also I have not be able to work out how to get the new tab to create a separate inventory list so right now the new tab is showing the same inventory list as the main inventory.

29264

Any help would be greatly appreciated.

Thanks :)







Update: I have got the tab icon issue resolved. Thanks for the help on that one.

dberkompas
October 3rd, 2019, 16:13
The text on the tab is actually a graphic/image.

Trenloe
October 3rd, 2019, 16:25
They're graphics files defined as icons - see the <tabs_charsheet> in record_char.xml:


<tabs_charsheet>
<tab>
<icon>tab_main</icon>
<subwindow>main</subwindow>
</tab>
<tab>
<icon>tab_skills</icon>
<subwindow>skills</subwindow>
</tab>
<tab>
<icon>tab_abilities</icon>
<subwindow>abilities</subwindow>
</tab>

These are icon resources that point to a graphics file. For 5E these are all in CoreRPG, but you'll need to do a new graphic and put it in your extension, and define the icon resource (https://www.fantasygrounds.com/refdoc/icon.xcp) to use it in your tab definition.

Aedus Amaterasu
October 3rd, 2019, 16:55
The text on the tab is actually a graphic/image.



They're graphics files defined as icons - see the <tabs_charsheet> in record_char.xml:


<tabs_charsheet>
<tab>
<icon>tab_main</icon>
<subwindow>main</subwindow>
</tab>
<tab>
<icon>tab_skills</icon>
<subwindow>skills</subwindow>
</tab>
<tab>
<icon>tab_abilities</icon>
<subwindow>abilities</subwindow>
</tab>

These are icon resources that point to a graphics file. For 5E these are all in CoreRPG, but you'll need to do a new graphic and put it in your extension, and define the icon resource (https://www.fantasygrounds.com/refdoc/icon.xcp) to use it in your tab definition.

Thank you guys. Got the tab fixed. I forgot the 5e ruleset pulls somestuff for CoreRPG thats why I wasn't finding the graphic and therefore assumed it was text :/

29269

Now if I can get the inventory list in that tab to work right it will be perfect.

thanks again for the help with the tab part.