PDA

View Full Version : Drawing lines in windowclasses



Oberoten
October 31st, 2018, 00:35
Is there any way to draw lines from inside a windowclass? I was thinking to generate a clockface and then draw lines over it which would then update when I forward a "timer". Think Doomsday clock, as events happend the clock comes closer to midnight.

Can FG draw lines or even dots programaticaly unless it is on a image?

- Obe

damned
October 31st, 2018, 02:34
Dunno if you can draw lines programmatically... you can draw pointers programmatically...

I did something like this as a WiP for Blades in teh Dark...

https://www.fantasygrounds.com/forums/attachment.php?attachmentid=22463

Bidmaron
October 31st, 2018, 03:29
The way I would do it is through a series of png images of the hands where you want them and then selectively hide/show the ones you want. Or you could do it with a token you programmatically rotate.

Oberoten
October 31st, 2018, 14:06
The way I would do it is through a series of png images of the hands where you want them and then selectively hide/show the ones you want. Or you could do it with a token you programmatically rotate.

A think a token is probably the best way to go. I can include the tokens inside the ruleset as well so that should work out fine. Thanks for the tip.

- Obe

Ikael
October 31st, 2018, 16:44
Short answer is no, you cannot draw lines programmatically. Nor can you draw pointers programmatically, however you must define their drawn pattern in lua.