Home   Help Search Login Register  

Author Topic: Adding Images  (Read 540 times)

0 Members and 1 Guest are viewing this topic.

Offline smileynick

  • Members
  • *
  • i am smiley nick
Adding Images
« on: 08 Oct 2004, 23:08:09 »
Hello

i know i have seen it somwhere before but i cant seem to find it, i used the search button but it didnt come up with anything.

i was wondering if is is possible to set as certian image at the top of the screen which is centerd for a intro?

i have the image, is it somthing like addtext "img".jpg?

chears

Smiley
ng

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Adding Images
« Reply #1 on: 09 Oct 2004, 00:35:26 »
No.  It's slightly more complicated.   You must define the image in description.ext.   There are a couple of description.ext tutes in the Editors Depot.   The .jpg should go in the mission folder and probably needs to have sides a factor of 2 in pixels, though you can define it to appear any size you like on the screen.

For example:-

class RscPicture
{
   type=0;
   idc=-1;
   style=48;
   colorBackground[]={0,0,0,0};
   colorText[]={1,1,1,1};
   font="tahomaB24";
   size=0;
};

class RscTitles
{
   class naughty2
   {
   idd=-1;
   movingEnable=0;
   duration=8;
   name="naughty2";
   controls[]={"Title"};
   
   class Title: RscPicture
   {
         text="naughty2.jpg";
         x=0.300000;
         y=0.000000;
         w=0.450000;
         h=1.000000;
        };
   };
};


You would call the pic with

titleRsc ["naughty2","plain",0.1]
Plenty of reviewed ArmA missions for you to play

Offline smileynick

  • Members
  • *
  • i am smiley nick
Re:Adding Images
« Reply #2 on: 09 Oct 2004, 01:27:36 »
many thanks, this has helped a lot :D

how do i actually run it in a game tho? i have the image and the correct description like you said?


Smiley
« Last Edit: 09 Oct 2004, 01:50:31 by smileynick »
ng

Comrade Joe

  • Guest
Re:Adding Images
« Reply #3 on: 09 Oct 2004, 13:58:12 »
Can anyone please tell me which is the color that is discarded when you use the rscpicture command???  :(
« Last Edit: 09 Oct 2004, 13:58:33 by Comrade Joe »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Adding Images
« Reply #4 on: 09 Oct 2004, 14:24:57 »
Quote
You would call the pic with

titleRsc ["naughty2","plain",0.1]
Plenty of reviewed ArmA missions for you to play

Offline smileynick

  • Members
  • *
  • i am smiley nick
Re:Adding Images
« Reply #5 on: 09 Oct 2004, 14:48:58 »
ok sorry to sound a noob, but this is what i have got so far....



i have got a description exe with the text you displayed....

class RscPicture
{
  type=0;
  idc=-1;
  style=48;
  colorBackground[]={0,0,0,0};
  colorText[]={1,1,1,1};
  font="tahomaB24";
  size=0;
};

class RscTitles
{
  class UKF
  {
   idd=-1;
   movingEnable=0;
   duration=8;
   name="UKF";
   controls[]={"Title"};
   
   class Title: RscPicture
   {
        text="UKF.jpg";
        x=0.300000;
        y=0.000000;
        w=0.450000;
        h=1.000000;
        };
  };
};

titleRsc ["UKF","plain",0.1]



my image is called UKF and it is 755x112, its not a very large image, its more of a banner. the image is Jpeg


now do i need to have a trigger to set it off of somthing?

if you have the time please come back at explain it like im a right retard ok.


many thanks


Smiley
ng

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Adding Images
« Reply #6 on: 09 Oct 2004, 15:09:01 »
Yes, this line

titleRsc ["UKF","plain",0.1]

doesn't go in description.ext, you put that in the trigger or whereever to make the image appear.   That's what I meant by "You would call the pic with".
Plenty of reviewed ArmA missions for you to play

Offline smileynick

  • Members
  • *
  • i am smiley nick
Re:Adding Images
« Reply #7 on: 09 Oct 2004, 15:35:22 »
ooooooooooo i see, i get it now

thankyou ever so much, what size do you recommend for my image to be? i am getting a error msg saying this





this is the image i want displaying




Thanks for being so paitent and helpfull, i konw it must get anoying if you know the answer and you get these kind of questions every week.


Smiley
ng

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Adding Images
« Reply #8 on: 09 Oct 2004, 15:49:38 »
Quote
The .jpg should go in the mission folder and probably needs to have sides a factor of 2 in pixels, though you can define it to appear any size you like on the screen.

This means the picture dimensions need to be in powers of 2.

i.e.

64 X 64
128 X 128
128 X 64
256 X 128

etc etc etc

Your dimensions as displayed in the error message is:

755 X 112


Planck
I know a little about a lot, and a lot about a little.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Adding Images
« Reply #9 on: 09 Oct 2004, 15:49:57 »
Lol well at least we are getting there.   If I may refer you to my original post once more

Quote
The .jpg should go in the mission folder and probably needs to have sides a factor of 2 in pixels, though you can define it to appear any size you like on the screen.

Try saving it as 512x128.    It doesn't actually matter what size you save it, the size on the screen is defined in description.ext anyway.
Plenty of reviewed ArmA missions for you to play

Offline smileynick

  • Members
  • *
  • i am smiley nick
Re:Adding Images
« Reply #10 on: 09 Oct 2004, 16:21:41 »
 :thumbsup: IT WORKS!!!!!


thankyou Macguba and Planck for you time and helping me out so quick, i can now get on with my mission :D, credits given to you guys.

this is what its all about, i know understand how to add images and now i can help others who had the same problem as me.

you guys diserve a medal.


thankyou and keep up the good work.


Smiley
ng