Welcome to the Iron Front Fan Forums!
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
Luftwaffles

Private
Registered:
Posts: 14
Reply with quote  #1 

Hello!


I've got together everything I want to make a small mission, but I would love to add a mission preview picture/icon that shows up to the right of the mission under scenarios. I'm brand new at scripting and all of this, and I'm definitely looking around and searching, but how do I add that preview picture to the right of the selected scenario?

Thank you

0
Tayuk

Avatar / Picture

Retired Admin/IFR
Registered:
Posts: 455
Reply with quote  #2 
You need an overview.html document in your mission file with this following code. use notepad, copy and paste the code into it and save the file as overview.html
<html>

<head><title>Overview</title></head>

<body bgcolor="#FFFFFF">

<p align="center"><img src="yourpic.paa" width="240" height="121"></p>

</body>

</html>


Your picture must be saved as a .paa image file and also saved in your mission file (but you may need to play around with the size/shape to get it to fit properly, but a good start is 512 pixels wide and 256 pixels high)
In the code above the picture is named "yourpic.paa"

I have never used it before, but thats what ive read

Also there is a mission in the single player missions section here called "dawn of the messenger", that picture is working in that one, have alook and see how hes done it. Good luck.



0
Luftwaffles

Private
Registered:
Posts: 14
Reply with quote  #3 
Works for me! Little bit of toyin around and I was able to get it on there. Off to find the coding for mission briefings : )
0
Luftwaffles

Private
Registered:
Posts: 14
Reply with quote  #4 

Thank you Tay-uk!


Here is a link to my first mission:


https://www.dropbox.com/s/fw42yx4thlu3hex/Take%2520Back%2520Yablonica%21.Staszow.ifa?v=0mcng

0
[EVO] Dan

Sergeant
Registered:
Posts: 85
Reply with quote  #5 
I thought your picture had to follow the power of 2 rule
0
Luftwaffles

Private
Registered:
Posts: 14
Reply with quote  #6 
I didn't have any problem with it. I did a 512x256 and manipulated the position til I got it right by modifying those above numbers that Tay-uk listed. It worked every time.
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.