Forum Jump :

Author Message


Posts: 6
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2012-07-23 21:47        
     
The task that i am trying to complete is to make a custom image (radio) appear everytime the radio is used. I have the .jpg downloaded already. I dont know if it has to be a particular size or what have you. I read earlier on the forum that I would need to put the following code into my description.ext:
class RscTitles
{
class Image1
{
idd=-1;
movingEnable=1;
duration=3;
fadein = 1;
fadeout = 1;
name="radio";
controls[]={"blackfon","logotip"};
class blackfon
{
x = -10;
y = -10;
w = 42;
h = 42;
type = 0;
idc = -100;
style = 48;
colorBackground[] = {0,0,0,0};
colorText[] = {1, 1, 1, 1};
font = BitStream;
sizeEx = 0;
lineSpacing = 0;
access = ReadAndWrite;
text = "#(argb,8,8,3)color(0,0,0,1)";
};
class logotip
{
x = 0;
y = 0;
w = 1;
h = 1;
type = 0;
idc = -1;
style = 48;
colorBackground[] = {0, 0, 0, 0};
colorText[] = {1, 1, 1, 1};
font = BitStream;
sizeEx = 0;
lineSpacing = 0;
access = ReadAndWrite;
text = "radio.jpg";
};
};
};
which I did and I put the code: TitleRsc ["radio", "PLAIN",2]; in my init. But I keep getting the 'resource title radio not found' error.Kind of lost in the sauce here... Preciate if anybody can shed a little light on this for me.


Author Message


Posts: 1470
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name:

 
#2 Posted at 2012-07-24 01:02        
     
I posted a reply in your other thread, you picture needs to be paa format so you will need textveiw2 to convert it.

There's a readme that will give info on picture size it is important.

TextVeiw2


Advertisement


Author Message


Posts: 6
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#3 Posted at 2012-07-24 03:32        
     
you responded pretty swiftly and i appreciate that. i did create the dialogue or at least a test one :) the bad news is that is now a .hpp file and i included it in the init file but i don't know how to activate it. I am so accustomed to activating scripts via .sqs or .sqf files. Anyways appreciate the help before and if you or somebody would clear this up for me it would be again appreciated.