PDA

View Full Version : Square portraits?



TFWoods3
June 17th, 2009, 15:34
Or rectangle really. Would it be easy to give the option of making the portraits above the chat window rectangular to give that Baldur's Gate, Neverwinter Nights vibe? I know that would go against the token shape but if we never use that for tokens it shouldn't be a problem. Also toggling names off/on would be nice.

Just bringing this up because I've been working on my players portraits :)

joshuha
June 17th, 2009, 19:39
Definitely doable with some modification to a few frame files and definitions. We did it back when I was working on the Savage Worlds ruleset. Should be some screenshots here: https://www.fantasygrounds.com/forums/showthread.php?t=7835

TFWoods3
June 17th, 2009, 20:31
Ah nice, I just have no idea how to make such modifications at this point.

Oberoten
June 18th, 2009, 08:38
There is a file called portrait.png and portrait_mask.png in the icons folder on the rulesets.

You put white into the portrait_mask file where you want the image to show.

- Obe

TFWoods3
June 19th, 2009, 02:36
There is a file called portrait.png and portrait_mask.png in the icons folder on the rulesets.

You put white into the portrait_mask file where you want the image to show.

- Obe

Will this change the circle frame around the portrait or just draw through it?

Foen
June 19th, 2009, 05:25
I think you will find that portrait.png shows the frame/background (and can be changed from a circle to whatever) while portrait_mask.png shows the portrait itself (as Obe describes).

Oberoten
June 19th, 2009, 16:11
Here. :)

I will provide you with the ones I use.

Oberoten
June 19th, 2009, 16:18
Oh and a shot of how it looks...

- Obe

TFWoods3
June 19th, 2009, 16:24
Hey thanks, I will try this out.

Oberoten
June 19th, 2009, 16:28
Let us know how it worked for ya.

- Obe

Blue Haven
June 19th, 2009, 23:31
Oh and a shot of how it looks...

- Obe

Hey Obe that screenshot is from your ruleset of Ars Magica??

Oberoten
June 20th, 2009, 05:54
Ars Magica ruleset with a 1920-30 ish skin on it.

- Obe

TFWoods3
June 20th, 2009, 18:58
Got it working. Thanks for the help!

TFWoods3
June 20th, 2009, 19:13
Now can you tell me how to move the name tag down a bit?

Oberoten
June 20th, 2009, 22:00
characterlist_entry.lua



function createWidgets(name)
identityname = name;

portraitwidget = addBitmapWidget("portrait_" .. name .. "_charlist");

namewidget = addTextWidget("sheetlabelsmall", "- Unnamed -");
namewidget.setPosition("center", 0, 27);
namewidget.setFrame("mini_name", 5, 2, 5, 2);
namewidget.setMaxWidth(75);




Change the namewidget.setPosition("center", 0, 27); to namewidget.setPosition("center", 0, 37);

- Obe

TFWoods3
June 21st, 2009, 21:57
Got it, thank you very much for the help.

TFWoods3
June 21st, 2009, 22:11
Things are coming together! Thanks for the help, i just gained a level in FG2 skills.

Oberoten
June 22nd, 2009, 00:41
Now I just started wondering if there is any way to rotate a textwidget slightly off-slant.... (I found a font that looks like one of those old Dymo-Marker strips and I figured it'd look awesome if I remade the portraitframe to look like a marked up polaroid photo with a marking in that style on it. )

- Obe

mr_h
June 22nd, 2009, 20:24
I decieded to try this as well. First I made dogtag type portraits:

https://mrh.boxofgeeks.net/Gurps/DogTags.png

Then I made the mask:

https://mrh.boxofgeeks.net/Gurps/DogTag-Mask.png

Then I put in the pictures and got....

https://mrh.boxofgeeks.net/Gurps/portraitsexample1.png

Hmmm, it's a lil squished. I tried to make the images bigger, but it messed up the portrait window pretty badly (only showed like a corner of it).
https://mrh.boxofgeeks.net/Gurps/LargerPortraitImage.jpg

Is it possible to make the portrait icon/frame larger, without breaking other things, or do I need to edit some XML file?