PDA

View Full Version : Overriding windowclass entries?



tuoweit
May 9th, 2018, 16:39
Hi,

I'm looking to make an extension to modify a character sheet. The parts I want to modify all seem to be defined within something called a "windowclass" in XML. From some examples I can see that things that are defined as "templates" can have entries in them overridden/merged, but that doesn't seem to work for a windowclass.

For example, in the Fate Core ruleset I want to eliminate the gear/weapons/armor sections on the abilities tab of the character sheet and expand the stunts section to fill the full width.

Is there any way to do this as an extension, without having to basically copy the whole ruleset and change what I want?

Moon Wizard
May 9th, 2018, 18:02
You should read through the Developer's Guide on the wiki:
https://www.fantasygrounds.com/wiki/index.php/Developer_Guide

Especially this part:
https://www.fantasygrounds.com/wiki/index.php/Developer_Guide_-_Rulesets_-_Interface

To answer the basic question, any asset (window class, template, icon, etc.) can be redefined in an extension. Also, you can potentially merge in changes to window classes. Read the developer guide material to get more information.

Regards,
JPG

tuoweit
May 9th, 2018, 18:36
Thanks for your reply. After some further trial and error, I found that simply re-defining the element (ignoring the "merge=X" stuff that Templates use) did the trick. It wasn't clear from the documentation that I could just redefine stuff at will (I'm used to languages like C/C++/Java that have stronger rules).