Home   Help Search Login Register  

Author Topic: RscTitle problem  (Read 868 times)

0 Members and 2 Guests are viewing this topic.

Offline Garcia

  • Members
  • *
  • Leeds United is the best football team...EVER!
RscTitle problem
« on: 06 Jul 2006, 19:39:49 »
I guess this is the place to post this...

ok, I'm really shite at the description.ext part, so this is the problem:

I'm using General Barrons hand signals in a mission, and I want some other custom titles using the RscTitles. But for the HS system to work I need this in my description.ext

Code: [Select]
class RscTitles
{
//include HS resources
#include <GENB_HS_core\resources.h>
};

and what I want to add is something like this (taken from another mission where it works fine):

Code: [Select]
//Own titles...

class OFPTF_RscText
{
type = CT_STATIC;
idc = -1;
style = ST_LEFT;
h = 0.04;
colorBackground[] = {0, 0, 0, 0};
  lineSpacing = 1.0;
font = FontTITLE;
sizeEx = 1.5 * 0.1;
};

class RscTitles
        {
               class ofptf
               {
                        name = "ofptf";
                        duration = 5;
                        idd = -1;
                        fadeIn = 2;
                        movingEnable = false;
                        controls[]={ofptf,inf};
     
                        class ofptf: RscPicture
                        {
                        text = "ofptf.paa";
                                x=.08; y=.75; w=.1; h=.1;
                        };
                        class inf : RscText
                        {
                                style = ST_MULTI + ST_CENTER + ST_NO_RECT;
                                lineSpacing = 1.0;
                                text = "http://www.ofptf.net";
                                x = 0.0001; y = 0.85; w = 0.25; h = 0.1;
colorText[] = {1, 0, 0.1, 1};
font = FontNOTES;
sizeEx = 1.5 * 0.1;
size = .7;
};
};
class logo
{
name = "logo";
duration = 8;
idd = -1;
fadeIn = 0;
movingEnable = false;
controls[]={logo};
class logo : OFPTF_RscText
{
style = ST_MULTI + ST_CENTER + ST_NO_RECT;
text = "  Tropical Lightning";
x = 0.005; y = 0.795; w = 0.24; h = 0.1;
colorText[] = {1, 0, 0.1, 1};
font = FontNOTES;
sizeEx = 1.5 * 0.1;
size = .7;
};
};
class intro1
{
name = "intro1";
duration = 8;
idd = -1;
fadeIn = 0;
movingEnable = false;
controls[]={intro1};
class intro1 : OFPTF_RscText
{
style = ST_MULTI + ST_CENTER + ST_NO_RECT;
text = "Mission by Garcia";
x = 0.0005; y = 0.8; w = 0.215; h = 0.1;
colorText[] = {1, 0, 0.1, 1};
font = FontNOTES;
sizeEx = 1.5 * 0.1;
size = .7;
};
};
class intro2
{
name = "intro2";
duration = 8;
idd = -1;
fadeIn = 0;
movingEnable = false;
controls[]={intro21,intro22,intro23};
class intro21 : OFPTF_RscText
{
style = ST_MULTI + ST_CENTER + ST_NO_RECT;
text = "A Shau Valley, Vietnam";
x = 0.00001; y = 0.75; w = 0.285; h = 0.1;
colorText[] = {1, 0, 0.1, 1};
font = FontNOTES;
sizeEx = 1.5 * 0.1;
size = .7;
};
                class intro22 : OFPTF_RscText
                {
style = ST_MULTI + ST_CENTER + ST_NO_RECT;
text = "4th of August 1967";
x = 0.00001; y = 0.78; w = 0.215; h = 0.1;
colorText[] = {1, 0, 0.1, 1};
font = FontNOTES;
sizeEx = 1.5 * 0.1;
size = .7;
};
                class intro23 : OFPTF_RscText
                {
style = ST_MULTI + ST_CENTER + ST_NO_RECT;
text = "06:00";
x = 0.002; y = 0.81; w = 0.08; h = 0.1;
colorText[] = {1, 0, 0.1, 1};
font = FontNOTES;
sizeEx = 1.5 * 0.1;
size = .7;
};
        };
class end1
{
name = "end1";
duration = 8;
idd = -1;
fadeIn = 0;
movingEnable = false;
controls[]={ofptf,end1,text};

                class ofptf: RscPicture
                {
        text = "ofptf.paa";
                x=.50; y=.35; w=.1; h=.1;
                };
                class end1 : OFPTF_RscText
{
style = ST_MULTI + ST_CENTER + ST_NO_RECT;
                lineSpacing = 1.0;
text = "Mission Completed";
x = 0.05; y = 0.30; w = 1; h = 1;
colorText[] = {1, 0, 0.1, 1};
font = FontNOTES;
        sizeEx = 1.5 * 0.1;
size = .7;
};
                class text : OFPTF_RscText
                {
                style = ST_MULTI + ST_CENTER + ST_NO_RECT;
                lineSpacing = 1.0;
                text = "http://www.ofptf.net";
                x = 0.05; y = 0.45; w = 1; h = 1;
colorText[] = {1, 0, 0.1, 1};
font = FontNOTES;
sizeEx = 1.5 * 0.1;
size = .7;
};
        };
};
//>>>----------------------------------------------------------------<<<

now, how do I merge these 2? Because I noticed that I got an error about 2 RscTitles, and when I tried to merge them, I just got some error about added line after endof-something :-\

Now, all that other things you need in the description.ext is all ok, I just need help merging these 2 together ;)

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: RscTitle problem
« Reply #1 on: 06 Jul 2006, 21:16:31 »
Just a wild guess but did you try:

Code: [Select]
class RscTitles
        {
//include HS resources
#include <GENB_HS_core\resources.h>

               class ofptf
               {
                        name = "ofptf";
                        duration = 5;
                        idd = -1;
.....
.....
.....


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

Offline Garcia

  • Members
  • *
  • Leeds United is the best football team...EVER!
Re: RscTitle problem
« Reply #2 on: 07 Jul 2006, 04:09:40 »
well that was easy ::)

Damn, I really should learn this shit...I get stuck at the easiest shit. I mean, I fiddled around for at least 30 mins without finding out...probably got something to do with the fact that I know jack shit about description.ext :-\

Thanks mate ;)