Jump to content
Sign in to follow this  
Bon

Images in Dialogues

Recommended Posts

Hi all,

have some trouble integrating pictures in a dialogue.

I have converted the pictures to .paa format as it is required, then created the classes for my dialogue, here on of them:

...
  class FOPPicture {
	idc = 10093;
	type = CT_STATIC;
	style = ST_PICTURE;
	colorText[] = { 0, 0, 0, 1 };
	colorBackground[] = { 0, 0, 0, 0.6 };
	font = FontM;
	sizeEx = 0.023;
	x = 0.6; y = 0.2;
	w = 0.4; h = 0.4;
	text = "dialog\images\FOB.paa";
};
...

But opening the dialogue then ingame, the pictures are only their black shapes.

http://10th-community.com/picture.php?id=618

Is there anything else to consider, for example the resoultion or size of the images?

Edited by Bon

Share this post


Link to post
Share on other sites

Ok, problem was that both the lines

		colorText[] = { 0, 0, 0, 1 };
	colorBackground[] = { 0, 0, 0, 0.6 };

must have no entries.

...
  class FOPPicture {
	idc = 10093;
	type = CT_STATIC;
	style = ST_PICTURE;
	colorText[] = { };
	colorBackground[] = { };
	font = FontM;
	sizeEx = 0.023;
	x = 0.6; y = 0.2;
	w = 0.4; h = 0.4;
	text = "dialog\images\FOB.paa";
};
...

Share this post


Link to post
Share on other sites

Thank you my friend, you saved my day. :yay:

I was messin' araound with this stuff for hours unable to find the problem, because actually there was no problem.

Thanks for this information :)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×