PDA

View Full Version : Pointer and Pointer Color APIs?



Farratto
December 25th, 2024, 15:17
I'm sorry if this information is available. I haven't been able to find it. I'm wondering if it's possible for me to create a pointer (the things that appear when you click and drag with both mouse buttons down) using script in an extension?

Second question: Is there an API or command where I can retreive the chosen pointer/character color for a character?

Thank you for your help.

Zacchaeus
December 25th, 2024, 15:22
The character colour is, as far as I know, in the CampaignRegistry.lua file for each campaign.

I don't think there is any way for you to access the pointers.

LordEntrails
December 25th, 2024, 16:07
The Developer Guide is here (if you didn't know) https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/996644285/Developer+Guide
But it has no mention of such an API I could find. Nor have I heard of it being available from other conversations.

Characters can have active colors assigned, but I don't think via API. Here is the info on that: Characters and Pointer Color - Fantasy Grounds Customer Portal - Fantasy Grounds (https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/2167406621/Characters+and+Pointer+Color)

Moon Wizard
December 27th, 2024, 02:35
User.getIdentityColor will retrieve the color assigned to a character ID.

There are no APIs to interact with pointers.

Regards,
JPG