PDA

View Full Version : Hiding dice



Redwulfe
March 7th, 2013, 15:21
Not all games use all dice. Is there a way to get ride of the dice not used through a ruleset?

Red

tdewitt274
March 7th, 2013, 17:02
While you can't remove them, you can move them. Open the "gameelements.xml" file and set the position elements to the same values to make them overlap (see below). The Rolemaster ruleset moves the off to the right sidebar.


<die name="d4">
<icon>d4icon</icon>
<position>360,-88</position>
</die>

<die name="d6">
<icon>d6icon</icon>
<position>160,-88</position>
</die>

<die name="d8">
<icon>d8icon</icon>
<position>360,-88</position>
</die>

Moon Wizard
March 7th, 2013, 20:04
Actually, as of v2.9.2, you can disable or hide dice in the ruleset definition.


[DEV] customdie - If standard die (d4,d6,d8,d10,d12,d20) defined as customdie, it will not appear on desktop, but will still be accessible.
[DEV] die - If standard die (d4,d6,d8,d10,d12,d20) not defined, it will not appear on desktop or be accessible at all.


v2.9.2 Full Patch Notes (https://www.fantasygrounds.com/filelibrary/patchnotes.html)

Regards,
JPG

tdewitt274
March 7th, 2013, 22:15
Sweet! Snagged and implemented!

tdewitt274
March 9th, 2013, 20:28
I tried this in an Extension (folder, not .ext) and it doesn't work. Is this due to the way FG loads?

Moon Wizard
March 9th, 2013, 21:12
It would need to be handled in the ruleset right now, since most rulesets have already defined the dice and there is no way to remove dice via extensions.

One of the long-term features I am working on is layered rulesets, which will allow things like this to happen and will probably end up enhancing extensions as well.

Regards,
JPG