Home   Help Search Login Register  

Author Topic: Pictures in dialog  (Read 564 times)

0 Members and 2 Guests are viewing this topic.

TC

  • Guest
Pictures in dialog
« on: 23 Nov 2005, 22:56:58 »
I have created my very first dialog, but wanted to put a pic in it, but whenever i activate my dialog, i get an error msg saying i havnt set the dimenions for the pic? how do i set them?!

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:Pictures in dialog
« Reply #1 on: 24 Nov 2005, 08:42:01 »
pictures in flashpoint need to be created at a certain size. they can be stretched and squashed to any size afterwards, but the original size needs to be a power of 2, so 4,8,16,32,64,128.... you get the picture... no pun intended :P

the only other reason could be that the description file is missing the sizing. it should look something like this

Code: [Select]
class main_bg : RscText
  {
   idc = 100;
   style = ST_PICTURE;
   colorBackground[] = {0.3, 0.3, 0.3, 1};
       x = 0.6;
       y = 0.72;
       w = 0.38;
       h = 0.23;
       text = "graphics\fia.paa";
  };

where x & y are the coordinates on screen, and w & h are width and height respectively.

congratulations, by the way :)
« Last Edit: 24 Nov 2005, 08:44:06 by bedges »