Teraz jest So 04 maja, 2024 02:16


Jak stworzyć kolorowy tekst...

Archiwum działów sekcji Operation Flashpoint
  • Autor
  • Wiadomość
Offline
Avatar użytkownika

MaRcin

Major

Major

  • Posty: 966
  • Dołączył(a): Śr 21 lip, 2004 09:45

Jak stworzyć kolorowy tekst...

PostŚr 11 sie, 2004 20:45

description.ext które dostałem od Wikinga:

Kod: Zaznacz cały
onloadmission = "Kilka minut później..."
debriefing =  1
showWatch =  1
showCompass =  1
showNotepad =  1
showGPS =  0
showMap =  1


class CfgIdentities
{
   class Fuller
   {
      name = "John Fuller";
      face = "Face4";
      glasses = "none";
      speaker = "Marc";
      pitch = 1;
   };
};

class weapons
{
   class garand        {count = 1;};   
   class springfield      {count = 1;};
   class thompson    {count = 1;};   
   class bar      {count = 1;};
   class m9  {count = 1;};
   class kar       {count = 1;};
   class mp40     {count = 2;};
   class stgw44 {count = 3;};
};
class Magazines
{
   class garandmag    {count = 10;};
   class springfieldmag   {count = 10;};
   class thompsonmag   {count = 10;};
   class barMag   {count = 10;};
   class m9rock   {count = 5;};
   class karmag   {count = 50;};
   class stgw44mag   {count = 50;};
                class mp40mag         {count = 12;};
};

class CfgMusic
{
   tracks[]={};
   
   class Marlene
   {
      name = "Marlene";
      sound[] = {\music\marlene.ogg, db+0, 1.0};
   };
                class Rommel
   {
      name = "Rommel";
      sound[] = {\music\rommel.ogg, db+0, 1.0};
   };
};

#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 RscPicture
{
   type = CT_STATIC;
   idc = -1;
   style = ST_PICTURE;
   colorBackground[] = {0, 0, 0, 0};
   colorText[] = {1, 1, 1, 1};
   font = FontS;
   size = 0;
};

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;
};

class RscBackground
{
   type = CT_STATIC;
   idc = -1;
   style = ST_LEFT;
   colorBackground[] = {0, 1, 0, 1};
   colorText[] = {1, 1, 1, 1};
   font = FontS;
   size = 0;
   text = "";
};

class RscObject
{
   type = CT_OBJECT;
   scale = 1.0;
   direction[] = {0, 0, 1};
   up[] = {0, 1, 0};
};

class RscHTML
{
   type = CT_HTML;
   idc = -1;
   style = 0;
   colorBackground[] = {1, 1, 1, 1};
   colorText[] = {0, 0, 0, 1};
   colorBold[] = {0, 0, 0.2, 1};
   colorLink[] = {0.4, 0.4, 0.8, 1};
   colorLinkActive[] = {0.8, 0.35, 0.48, 1};

   // styles
   class H1
   {
      font = FontHTML;
      fontBold = FontHTMLBold;
      size = 1.0;
   };
   class H2
   {
      font = FontHTML;
      fontBold = FontHTMLBold;
      size = 0.7;
   };
   class H3
   {
      font = FontHTML;
      fontBold = FontHTMLBold;
      size = 0.5;
   };
   class H4
   {
      font = FontHTML;
      fontBold = FontHTMLBold;
      size = 0.4;
   };
   class H5
   {
      font = FontBOOK;
      fontBold = FontBOOK;
      size = 0.6;
   };
   class H6
   {
      font = FontNOTES;
      fontBold = FontNOTES;
      size = 0.7;
   };
   class P
   {
      font = FontHTML;
      fontBold = FontHTML;
      size = 0.47;
   };
};

// -----------------------------
// Your own classes will be here
// -----------------------------

class RscTitles
{
   
   
   class Text1
   {
      name = "Text1";
      duration =12;
      idd = -1;
      movingEnable = false;
      
      controls[]=
      {
         name1
      };
      class name1 : RscText
      {
         style = ST_MULTI + ST_CENTER + ST_NO_RECT + ST_SHADOW;
         lineSpacing = 1.0;
         text = "Everon\nPod okupacją oddziałów Wehrmachtu wywodzących się z DAK-u.";
         x = 0.0; y = 0.76; w = 1.0; h = 0.1;
         colorText[] = {1.0, 1.0, 1.0, 1};
         font = FontBOOK;
         sizeEx = 0.5 * 0.05;
         size = 0.6;
                   };
   };
};
Good Times Gone

Powrót do Operation Flashpoint

Kto przegląda forum

Użytkownicy przeglądający ten dział: Brak zidentyfikowanych użytkowników i 10 gości

cron