Public feed #603304

Untitled

public text v1 · immutable
Raw Edit
·published 2007-07-04 18:16 UTC
rendered paste body


// Control types
#define CT_STATIC           0
#define CT_BUTTON           1
#define CT_EDIT             2
#define CT_SLIDER           3
#define CT_COMBO            4
#define CT_LISTBOX          5
#define CT_TOOLBOX          6
#define CT_CHECKBOXES       7
#define CT_PROGRESS         8
#define CT_HTML             9
#define CT_STATIC_SKEW      10
#define CT_ACTIVETEXT       11
#define CT_TREE             12
#define CT_STRUCTURED_TEXT  13
#define CT_CONTEXT_MENU     14
#define CT_CONTROLS_GROUP   15
#define CT_XKEYDESC         40
#define CT_XBUTTON          41
#define CT_XLISTBOX         42
#define CT_XSLIDER          43
#define CT_XCOMBO           44
#define CT_ANIMATED_TEXTURE 45
#define CT_OBJECT           80
#define CT_OBJECT_ZOOM      81
#define CT_OBJECT_CONTAINER 82
#define CT_OBJECT_CONT_ANIM 83
#define CT_LINEBREAK        98
#define CT_USER             99
#define CT_MAP              100
#define CT_MAP_MAIN         101


// Static styles
#define ST_POS            0x0F
#define ST_HPOS           0x03
#define ST_VPOS           0x0C
#define ST_LEFT           0x00
#define ST_RIGHT          0x01
#define ST_CENTER         0x02
#define ST_DOWN           0x04
#define ST_UP             0x08
#define ST_VCENTER        0x0c

#define ST_TYPE           0xF0
#define ST_SINGLE         0
#define ST_MULTI          16
#define ST_TITLE_BAR      32
#define ST_PICTURE        48
#define ST_FRAME          64
#define ST_BACKGROUND     80
#define ST_GROUP_BOX      96
#define ST_GROUP_BOX2     112
#define ST_HUD_BACKGROUND 128
#define ST_TILE_PICTURE   144
#define ST_WITH_RECT      160
#define ST_LINE           176

#define FontM             "Zeppelin32"

class RecruitAT {
idd = -1;   // set to -1, because we don't require a unique ID
movingEnable = true;   // no movement while the dialog is shown
controlsBackground[] = {   };   // no background controls needed
objects[] = { };   // no objects needed
controls[] = { code, MyHelloPlayerExample, 

MyActiveText1,MyActiveText2,MyActiveText3,MyActiveText4,MyActiveText5,MyActiveText6,MyActiveText7,MyActiveText8,My

ActiveText9, MyActiveTextexit };   // our Hello World text as seen below:

class code {
	idc = -1;
	type = CT_STATIC;  // defined constant
	style = ST_CENTER;  // defined constant
	colorText[] = { 0, 1, 0, 1  };
	colorBackground[] = { 0, 0.0, 0.0, 0.4  };
	font = FontM;  // defined constant
	sizeEx = 0.023;
	x = 0.736; y = 0.42;
	w = 0.15; h = 0.03;
	text = "Enter KeyCode";
};
class MyHelloPlayerExample {
	idc = -1;
	type = CT_STATIC;  // defined constant
	style = ST_CENTER;  // defined constant
	colorText[] = { 1, 0.1, 0.1, 1 };
	colorBackground[] = { 0, 0.0, 0.0, 0.4  };
	font = FontM;  // defined constant
	sizeEx = 0.023;
	x = 0.736; y = 0.45;
	w = 0.15; h = 0.175;
	text = "";
};

class MyActiveText1 {
idc = -1;
type = CT_ACTIVETEXT;
style = ST_LEFT;
x = 0.75; y = 0.45;
w = 0.2; h = 0.035;
font = FontM;
sizeEx = 0.024;
color[] = { 1, 1, 1, 1 };
colorActive[] = { 0, 1, 0, 1 };
soundEnter[] = { "", 0, 1 };   // no sound
soundPush[] = { "", 0, 1 };
soundClick[] = { "", 0, 1 };
soundEscape[] = { "", 0, 1 };
action = "nul =  execVM ""recruit.sqf""";
text = "1";
default = false;
};

class MyActiveText4 {
idc = -1;
type = CT_ACTIVETEXT;
style = ST_LEFT;
x = 0.75; y = 0.5;
w = 0.2; h = 0.035;
font = FontM;
sizeEx = 0.024;
color[] = { 1, 1, 1, 1 };
colorActive[] = { 0, 1, 0, 1 };
soundEnter[] = { "", 0, 1 };   // no sound
soundPush[] = { "", 0, 1 };
soundClick[] = { "", 0, 1 };
soundEscape[] = { "", 0, 1 };
action = "nul = execVM ""recruit4.sqf""";
text = "4";
default = false;
};


class MyActiveText7 {
idc = -1;
type = CT_ACTIVETEXT;
style = ST_LEFT;
x = 0.75; y = 0.55;
w = 0.2; h = 0.035;
font = FontM;
sizeEx = 0.024;
color[] = { 1, 1, 1, 1 };
colorActive[] = { 0, 1, 0, 1 };
soundEnter[] = { "", 0, 1 };   // no sound
soundPush[] = { "", 0, 1 };
soundClick[] = { "", 0, 1 };
soundEscape[] = { "", 0, 1 };
action = " objective1 = false;objective2 = false; objective4 = false; objective8 = false; objective9 = false";
text = "7";
default = false;
};

class MyActiveText2 {
idc = -1;
type = CT_ACTIVETEXT;
style = ST_LEFT;
x = 0.80; y = 0.45;
w = 0.2; h = 0.035;
font = FontM;
sizeEx = 0.024;
color[] = { 1, 1, 1, 1 };
colorActive[] = { 0, 1, 0, 1 };
soundEnter[] = { "", 0, 1 };   // no sound
soundPush[] = { "", 0, 1 };
soundClick[] = { "", 0, 1 };
soundEscape[] = { "", 0, 1 };
action = "nul = execVM ""recruit2.sqf""";
text = "2";
default = false;
};

class MyActiveText5 {
idc = -1;
type = CT_ACTIVETEXT;
style = ST_LEFT;
x = 0.80; y = 0.5;
w = 0.2; h = 0.035;
font = FontM;
sizeEx = 0.024;
color[] = { 1, 1, 1, 1 };
colorActive[] = { 0, 1, 0, 1 };
soundEnter[] = { "", 0, 1 };   // no sound
soundPush[] = { "", 0, 1 };
soundClick[] = { "", 0, 1 };
soundEscape[] = { "", 0, 1 };
action = " objective1 = false;objective2 = false; objective4 = false; objective8 = false; objective9 = false";
text = "5";
default = false;
};

class MyActiveText8 {
idc = -1;
type = CT_ACTIVETEXT;
style = ST_LEFT;
x = 0.80; y = 0.55;
w = 0.2; h = 0.035;
font = FontM;
sizeEx = 0.024;
color[] = { 1, 1, 1, 1 };
colorActive[] = { 0, 1, 0, 1 };
soundEnter[] = { "", 0, 1 };   // no sound
soundPush[] = { "", 0, 1 };
soundClick[] = { "", 0, 1 };
soundEscape[] = { "", 0, 1 };
action = "nul = execVM ""recruit8.sqf""";
text = "8";
default = false;
};

class MyActiveText3 {
idc = -1;
type = CT_ACTIVETEXT;
style = ST_LEFT;
x = 0.85; y = 0.45;
w = 0.2; h = 0.035;
font = FontM;
sizeEx = 0.024;
color[] = { 1, 1, 1, 1 };
colorActive[] = { 0, 1, 0, 1 };
soundEnter[] = { "", 0, 1 };   // no sound
soundPush[] = { "", 0, 1 };
soundClick[] = { "", 0, 1 };
soundEscape[] = { "", 0, 1 };
action = " objective1 = false;objective2 = false; objective4 = false; objective8 = false; objective9 = false";
text = "3";
default = false;
};

class MyActiveText6 {
idc = -1;
type = CT_ACTIVETEXT;
style = ST_LEFT;
x = 0.85; y = 0.5;
w = 0.2; h = 0.035;
font = FontM;
sizeEx = 0.024;
color[] = { 1, 1, 1, 1 };
colorActive[] = { 0, 1, 0, 1 };
soundEnter[] = { "", 0, 1 };   // no sound
soundPush[] = { "", 0, 1 };
soundClick[] = { "", 0, 1 };
soundEscape[] = { "", 0, 1 };
action = "objective1 = false;objective2 = false; objective4 = false; objective8 = false; objective9 = false;";
text = "6";
default = false;
};

class MyActiveText9 {
idc = -1;
type = CT_ACTIVETEXT;
style = ST_LEFT;
x = 0.85; y = 0.55;
w = 0.2; h = 0.035;
font = FontM;
sizeEx = 0.024;
color[] = { 1, 1, 1, 1 };
colorActive[] = { 0, 1, 0, 1 };
soundEnter[] = { "", 0, 1 };   // no sound
soundPush[] = { "", 0, 1 };
soundClick[] = { "", 0, 1 };
soundEscape[] = { "", 0, 1 };
action = "nul = execVM ""recruit9.sqf""";
text = "9";
default = false;
};



class MyActiveTextexit {
idc = -1;
type = CT_ACTIVETEXT;
style = ST_LEFT;
x = 0.79; y = 0.59;
w = 0.2; h = 0.035;
font = FontM;
sizeEx = 0.024;
color[] = { 1, 1, 1, 1 };
colorActive[] = { 1, 0.2, 0.2, 1 };
soundEnter[] = { "", 0, 1 };   // no sound ------ closeDialog 0
soundPush[] = { "", 0, 1 };
soundClick[] = { "", 0, 1 };
soundEscape[] = { "", 0, 1 };
action = "closeDialog 0;";
text = "Exit";
default = false;
};

};


////////////////////////////////////////////////////////////////////////////


class chopperpanel {
idd = -1;   // set to -1, because we don't require a unique ID
movingEnable = true;   // no movement while the dialog is shown
controlsBackground[] = {   };   // no background controls needed
objects[] = { };   // no objects needed
controls[] = { header, shade, fake, flare, smoke, ammo, eject, getout};   // our Hello World text as seen below:

class header {
	idc = -1;
	type = CT_STATIC;  // defined constant
	style = ST_CENTER;  // defined constant
	colorText[] = { 0, 1, 0, 1  };
	colorBackground[] = { 0, 0.0, 0.0, 0.4  };
	font = FontM;  // defined constant
	sizeEx = 0.023;
	x = 0.736; y = 0.42;
	w = 0.15; h = 0.03;
	text = "Control Panel";
};
class shade {
	idc = -1;
	type = CT_STATIC;  // defined constant
	style = ST_CENTER;  // defined constant
	colorText[] = { 1, 0.1, 0.1, 1 };
	colorBackground[] = { 0, 0.0, 0.0, 0.4  };
	font = FontM;  // defined constant
	sizeEx = 0.023;
	x = 0.736; y = 0.45;
	w = 0.15; h = 0.195;
	text = "";
};

class fake {
idc = -1;
type = CT_ACTIVETEXT;
style = ST_LEFT;
x = 0.75; y = 0.45;
w = 0.2; h = 0.035;
font = FontM;
sizeEx = 0.024;
color[] = { 1, 1, 1, 1 };
colorActive[] = { 0, 1, 0, 1 };
soundEnter[] = { "", 0, 1 };   // no sound
soundPush[] = { "", 0, 1 };
soundClick[] = { "", 0, 1 };
soundEscape[] = { "", 0, 1 };
action = "";
text = "";
default = true;
};

class flare {
idc = -1;
type = CT_ACTIVETEXT;
style = ST_LEFT;
x = 0.75; y = 0.45;
w = 0.2; h = 0.035;
font = FontM;
sizeEx = 0.024;
color[] = { 1, 1, 1, 1 };
colorActive[] = { 0, 1, 0, 1 };
soundEnter[] = { "", 0, 1 };   // no sound
soundPush[] = { "", 0, 1 };
soundClick[] = { "", 0, 1 };
soundEscape[] = { "", 0, 1 };
action = "nul = execVM ""flare.sqf""";
text = "Light Flare";
default = false;
};

class smoke {
idc = -1;
type = CT_ACTIVETEXT;
style = ST_LEFT;
x = 0.75; y = 0.5;
w = 0.2; h = 0.035;
font = FontM;
sizeEx = 0.024;
color[] = { 1, 1, 1, 1 };
colorActive[] = { 0, 1, 0, 1 };
soundEnter[] = { "", 0, 1 };   // no sound
soundPush[] = { "", 0, 1 };
soundClick[] = { "", 0, 1 };
soundEscape[] = { "", 0, 1 };
action = "nul = execVM ""smoke.sqf""";
text = "Pop Smoke";
default = false;
};


class ammo {
idc = -1;
type = CT_ACTIVETEXT;
style = ST_LEFT;
x = 0.75; y = 0.55;
w = 0.2; h = 0.035;
font = FontM;
sizeEx = 0.024;
color[] = { 1, 1, 1, 1 };
colorActive[] = { 0, 1, 0, 1 };
soundEnter[] = { "", 0, 1 };   // no sound
soundPush[] = { "", 0, 1 };
soundClick[] = { "", 0, 1 };
soundEscape[] = { "", 0, 1 };
action = "nul = execVM ""ammo.sqs""";
text = "Drop Ammo";
default = false;
};

class getout {
idc = -1;
type = CT_ACTIVETEXT;
style = ST_LEFT;
x = 0.85; y = 0.64;
w = 0.2; h = 0.035;
font = FontM;
sizeEx = 0.024;
color[] = { 1, 1, 1, 1 };
colorActive[] = { 0, 1, 0, 1 };
soundEnter[] = { "", 0, 1 };   // no sound
soundPush[] = { "", 0, 1 };
soundClick[] = { "", 0, 1 };
soundEscape[] = { "", 0, 1 };
action = "nul = execVM ""startgetout.sqs""";
text = "Drop Crew";
default = false;
};

class eject {
idc = -1;
type = CT_ACTIVETEXT;
style = ST_LEFT;
x = 0.75; y = 0.64;
w = 0.2; h = 0.035;
font = FontM;
sizeEx = 0.024;
color[] = { 1, 1, 1, 1 };
colorActive[] = { 1, 0.2, 0.2, 1 };
soundEnter[] = { "", 0, 1 };   // no sound ------ closeDialog 0
soundPush[] = { "", 0, 1 };
soundClick[] = { "", 0, 1 };
soundEscape[] = { "", 0, 1 };
action = "closeDialog 0; nul = execVM ""starteject.sqs""";
text = "Eject Crew";
default = false;
};

};