Hi,
I try to write my crossair to Lite-C and i can't figure out the right way..
my old code is
entity cross_air
{
type = <crossair.bmp>;
view = camera;
flags = overlay,visible,flare;
layer = 0;
scale_x = .05;
scale_y = .05;
scale_z = .05;
x = 50;
y = 0;
z = 0;
}
and i try to use it in like this
ENTITY* cross_air =
{
type = "crossair.bmp";
view = camera;
flags = VISIBLE | OVERLAY;
layer = 0;
scale_x = .05;
scale_y = .05;
scale_z = .05;
x = 50;
y = 0;
z = 0;
}
but it wont show up..
i got it with PANEL instead of ENTITY.. but i dont think its the best solution, i think with ENTITY it looks better.. am I wrong? is the PANEL version still good and can i keep it?
PANEL version:
PANEL* cross_air =
{
bmap = "crossair.bmp";
flags = VISIBLE | OVERLAY;
layer = 0;
pos_x = 0;
pos_y = 0;
}
and by the way.. how can i figure out the screen size? i tried the screen_size.x thing, but couldnt get it right
anyone has an example?
thx a lot