This is an extract from the OFP:R "mission" x12GameOver.Noe:
Put the following in your "description.ext":
#define FontS "tahomaB24"
#define FontM "tahomaB36"
#define FontHTML "courierNewB64"
#define FontHTMLBold "courierNewB64"
#define FontMAP "courierNewB64"
#define FontMAIN "SteelfishB64"
#define FontMAINCZ "SteelfishB64CE"
#define FontTITLE "SteelfishB128"
#define FontTITLEHalf "SteelfishB64"
#define FontBOOK "garamond64"
#define FontNOTES "AudreysHandI48"
// Control types
#define CT_STATIC 0
#define CT_HTML 9
#define CT_OBJECT 80
// #define CT_OBJECT_CONTAINER 82
// #define CT_3DSTATIC 20
// #define CT_3DHTML 23
// Static styles
#define ST_LEFT 0
#define ST_RIGHT 1
#define ST_CENTER 2
#define ST_UP 3
#define ST_DOWN 4
#define ST_VCENTER 5
#define ST_SINGLE 0
#define ST_MULTI 16
#define ST_PICTURE 48
#define ST_FRAME 64
#define ST_HUD_BACKGROUND 128
#define ST_TILE_PICTURE 144
#define ST_WITH_RECT 160
#define ST_LINE 176
#define ST_SHADOW 256
#define ST_NO_RECT 512
// -----------------------------
// Predefined control templates
// -----------------------------
// let this be as it is
// these are the default values of the parametres
class RscText
{
type = CT_STATIC;
idc = -1;
style = ST_LEFT;
h = 0.04;
colorBackground[] = {0, 0, 0, 0};
colorText[] = {1, 1, 1, 1};
font = FontS;
size = 1;
};
// -----------------------------
// Your own classes will be here
// -----------------------------
class RscTitles
{
titles[] =
{
TestDisplay
};
class TestDisplay
{
name = "TestDisplay";
duration = 6;
idd = -1;
movingEnable = false;
controls[]=
{
work1,
name1
};
class work1 : RscText
{
style = ST_MULTI + ST_CENTER + ST_NO_RECT;
lineSpacing = 1.0;
text = "Title of the Person";
x = 0.05; y = 0.45; w = 0.95; h = 0.3;
colorText[] = {0.75, 0.75, 1.0, 1};
font = FontMAINCZ;
sizeEx = 0.5 * 0.05;
size = 0.8;
};
class name1 : RscText
{
style = ST_MULTI + ST_CENTER + ST_NO_RECT;
lineSpacing = 1.0;
text = "The Person's Name";
x = 0.05; y = 0.50; w = 0.95; h = 0.3;
colorText[] = {1.0, 1.0, 1.0, 1};
font = FontMAINCZ;
sizeEx = 1.5 * 0.1;
size = 1.2;
};
};
};
Display it by putting the following in the "init.sqs":
cutText ["","BLACK OUT"]
~1
titleText ["", "BLACK FADED"]
~8
titleRsc ["TestDisplay", "BLACK FADED"]
~8
Pope Zog