PDA

View Full Version : FGU built in functionality



Ken L
May 30th, 2017, 20:21
I was wonder what built-in functionality we're going to be looking at.

We know that Layers will be built in, but what about the CT. I'd be nice if an interface were to hook into CT events (on turn change). For Tokens it would be great to have a hook whenever they're moved. I scouted a bit earlier for where to put in a graphical 'tracker' but without these additions, it's harder than it needs to be.

Moon Wizard
May 30th, 2017, 20:40
We have no plans to announce any new FGU functionality over what has been announced already. If you'd like to see other things added to the client in general, please add them to the the ish list in my signature.

Cheers,
JPG

Trenloe
May 30th, 2017, 21:13
Unless I'm confused as to what you're asking, both of these are available now:

... but what about the CT. I'd be nice if an interface were to hook into CT events (on turn change).
In manager_combat.lua there is a setCustomTurnEnd package function - which you can hook into for when a turn ends, or use setCustomTurnStart for when a turn starts.

See the extension here: https://www.fantasygrounds.com/forums/showthread.php?34589-The-5e-rule-I-learned-today&p=295808&viewfull=1#post295808 for an example of using these custom CombatManager package functions.


For Tokens it would be great to have a hook whenever they're moved.
You can't move a token on a map/image without dragging it. The <tokeninstance>.onDragEnd event can be used to trigger code when a token is moved: https://www.fantasygrounds.com/refdoc/tokeninstance.xcp#onDragEnd

Ken L
May 30th, 2017, 22:35
I must have missed that, I was fishing through the Lua for a hook. It looks like there will need to be a cross reference with the NPC record, but it's something to work with at least.

@Moon I knew that, but afaik the only confirmed built in, formerly extension add-ons that we know about is layers.