OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: charunks 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?
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
-
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
-
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
-
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
controlsBackground[] = { DEFAULT };
2. change
colorBackground[] = { };to
colorBackground[] = {0,0,0,1};