Home   Help Search Login Register  

Author Topic: problems with description.ext  (Read 499 times)

0 Members and 1 Guest are viewing this topic.

charunks

  • Guest
problems with description.ext
« on: 17 Jan 2004, 00:08:09 »
I have a problem with the description.ext
everytime when I call for this dialog, it gives an error that it has no entry in
the backgroundcolor of Build_center_wall.
As I am a real noob in dialogs, could someone please tell me what I do wrong?

Quote
class RscActiveText
{
        type = CT_ACTIVETEXT;
        idc = -1;
        style = ST_LEFT;
        color[] = {1, 1, 1, 1};
        colorActive[] = {1, 0, 0, 1};
        font = FontM;
        sizeEx = 0.04;
        default = false;
};

class wallb
{
  idd = -1;
  movingEnable = true;
  controlsBackground[] = { DEFAULT };
  colorBackground[] = {  };
  objects[] = { };
  controls[] = { Build_center_wall, exit };

   class Build_center_wall: RscActiveText
     {
          idc = 101;
          style = ST_CENTER;
         x = 0.4;
          y = 0.65;
          w = 0.2;
          h = 0.05;
          text = "Build wall $10";
          action = exec "pw.sqs";
          default = true;
     };
   class exit: RscActiveText
     {
          idc = 101;
          style = ST_CENTER;
          x = 0.4;
          y = 0.65;
          w = 0.2;
          h = 0.1;
          text = "exit";
          action = "closeDialog 0";
          default = true;
     };
};

thnx in advance

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:problems with description.ext
« Reply #1 on: 17 Jan 2004, 00:18:41 »
I'm no expert either, but, maybe you need an entry in the:

colorBackground[] = {  };

something like:

colorBackground[] = {0,0,0,0 };

give it a try.......experiment with the numbers to get different colours.

I think 0, 0, 0........is white.......the final 0 would be the alpha channel setting I imagine.


Edit:  It could be that you need this statement within your
Build_center_wall class thingy.

Planck
« Last Edit: 17 Jan 2004, 00:22:40 by Planck »
I know a little about a lot, and a lot about a little.

charunks

  • Guest
Re:problems with description.ext
« Reply #2 on: 17 Jan 2004, 00:53:44 »
thnx for helping!

I' ve tried some combinations, but it doesn' t seem to work :(...

edit 2:
I will try the color statement in my center wall class....

edit 3:
It starts whining about the font text, so I think it worked!

thnx again

« Last Edit: 17 Jan 2004, 15:02:43 by charunks »

Nedal

  • Guest
Re:problems with description.ext
« Reply #3 on: 19 Feb 2004, 00:25:31 »
I am not very experienced in description.ext, but i think you must do 2 things:

1. delete ( i dont know what control of a backrground should be good for, just needs a color

Code: [Select]

controlsBackground[] = { DEFAULT };

2. change

Code: [Select]
colorBackground[] = {  };to
Quote
    colorBackground[] = {0,0,0,1};


 
« Last Edit: 19 Feb 2004, 00:26:00 by Nedal »