PDA

View Full Version : Show portrait in a window?



zuilin
October 13th, 2020, 06:28
I have a reference to a character's portrait. I want to display that portrait image in a window. I've been scouring XML for hours and I can't find anything that I can stick in a window's XML and display the portrait in. I'm sure I'm just missing something.

1. What control can I place in my XML that represents an image?
2. Am I able to programatically change the image?

(FYI... In my mucking around, I've been able to stick my image into the "icon" slot of a windowtitlebar so I know my reference to the portrait is good.)

Thanks.

zuilin
October 13th, 2020, 07:17
Aaaaaaaaaauuuuugh.

Every control I tried didn't work. Every one. For hours.

When I created a <genericcontrol>, I could setIcon() on it just fine programmatically. *sigh*

Trenloe
October 13th, 2020, 09:19
Are you aware of the developer API documentation in the Wiki? This details what can be done with each control type. For example: https://fantasygroundsunity.atlassian.net/wiki/spaces/FGU/pages/4162233/genericcontrol

zuilin
October 13th, 2020, 15:36
No I was not. Why is this magical site not more prominently linked from somewhere?!

All I've been looking at is this: https://www.fantasygrounds.com/refdoc/