Home   Help Search Login Register  

Author Topic: font color on snow bg  (Read 1444 times)

0 Members and 1 Guest are viewing this topic.

Offline Seven

  • Members
  • *
  • Am I a llama?
font color on snow bg
« on: 23 Sep 2006, 12:46:44 »
Hi there,

I took a look at the font & text tut but don' know exactly what I need to modify in the description.ext
What I want to do is change the white color of the text that is displayed by tittletext [format "..."],"Plain"] to something blue because it's not really showing on a snow background.
I do know how to get the color codes;

Thx for your help! :)
Seven
« Last Edit: 23 Sep 2006, 13:42:37 by Seven »

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re: font color on snow bg
« Reply #1 on: 23 Sep 2006, 16:00:48 »
i suspect you'll need to take a closer look at the font/text tutorial in the ed depot, specifically the bit that describes how to change the colour of the font....  :whistle:

Offline Seven

  • Members
  • *
  • Am I a llama?
Re: font color on snow bg
« Reply #2 on: 23 Sep 2006, 18:55:05 »
I did understand how to use/create TitleRsc , but it seems this only works for predefined text and not the use of variables in it?
Also it didn't tell me how to change the default color of text used ingame :confused:

Ah well it's not that important,
I'll search some more on it later on!

Thx anyway  :)

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re: font color on snow bg
« Reply #3 on: 23 Sep 2006, 21:27:45 »
as far as i know, the default text in title/cuttext will always be white and its colour is not changeable. the only way to get coloured text is to use a custom resource. unfortunately the custom resources are all defined in the description file and so cannot be used in conjunction with format commands to make dynamic text.

which is a shame really :confused:

Offline Seven

  • Members
  • *
  • Am I a llama?
Re: font color on snow bg
« Reply #4 on: 23 Sep 2006, 22:42:36 »
Eh that's really too bad  :confused:
But thx Bedges this answers my question!

edit: topic locked

edit 2: topic unlocked again. Sorry I was too quickly :d Mandoble has something to add here :)
   
Thx Mandoble  :thumbsup:
« Last Edit: 24 Sep 2006, 17:42:33 by Seven »

Offline Seven

  • Members
  • *
  • Am I a llama?
Re: font color on snow bg
« Reply #5 on: 24 Sep 2006, 23:56:21 »
Got a PM from Mandoble, so here goes:

Quote
// To include into your description.ext
#define CT_STATIC 0
#define ST_LEFT 0   
#define ST_CENTER 2

class RscText
{
        type = CT_STATIC;
        idc = -1;
        style = ST_LEFT;
        colorBackground[] = {0, 0, 0, 0};
        colorText[] = {1, 1, 1, 1};
        font = "tahomaB36";
        sizeEx = 0.04;
};

class RscTitles
{   
   class blackback
   {
      idd=-1;
      movingEnable=true;
      duration=99999;
      name="blackback";
      controls[]={"blackback"};
      class blackback : RscText
      {
              style = ST_CENTER;
              x = 0.15;
              y = 0.75;
              w = 0.70;
              h = 0.10;
          text = "";
              colorBackground[] = {0.1, 0.1, 0.1, 0.5};
      };
   };
};

to display it:
Quote
cutRSC ["blackback","Plain Down",99999]
titleText["Can you see this clearly?", "PLAIN DOWN"]
;8 secs or any time you want to keep displayed the message
~8
;The dark background is removed, as well as the displayed text
cutRSC ["Default","Plain Down",0]
titleText["", "PLAIN DOWN"]

Thx Mandoble the bg works fine; now I want to change that font color :)
Will be on it coming week!  :afro:

so what I wanted was:

Code: [Select]
cutRSC ["blackback","Plain Down",99999]
titleText[format["Can you see this clearly %1?", name player],"PLAIN DOWN"]
;8 secs or any time you want to keep displayed the message
~8
;The dark background is removed, as well as the displayed text
cutRSC ["Default","Plain Down",0]
titleText["", "PLAIN DOWN"]
  :goodnight:

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: font color on snow bg
« Reply #6 on: 25 Sep 2006, 08:17:33 »
Sadly I found no way to change the colour of titleText fonts  ???

Offline Mr_Express

  • Members
  • *
Re: font color on snow bg
« Reply #7 on: 15 Mar 2007, 18:05:25 »
Well I am glad you guys tried.  I too have run into the same exact problem with the "Winter Maps."  Again, thanks for your effort.
~S~

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re: font color on snow bg
« Reply #8 on: 18 Mar 2007, 23:34:58 »
This is easily fixed.

Yes you can change the colour of text if you want. You'll have to learn fro0m the font text tutorial though.
Otherwise, just add a border to the screen and have your text appear within the border.
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."