respawn = 3;
respawndelay = 20;

#define FontM "tahomaB36"

#define ST_LEFT      0
#define ST_RIGHT     1
#define ST_CENTER    2

#define CT_STATIC    0
#define CT_ACTIVETEXT 11

#define CT_BUTTON   1

#define CT_COMBO                 4
#define CT_LISTBOX               5

#define FontHTML "CourierNewB64"

#define ST_FRAME   64

#define ST_PICTURE   48

class RscButton
{
        type = CT_BUTTON;
        idc = -1;
        style = ST_CENTER;
        colorText[] = {0.92, 0.73, 0, 1};
        font = FontHTML;
        sizeEx = 0.025;
        soundPush[] = {, 0.2, 1};
        soundClick[] = {"ui\ui_ok", 0.2, 1};
        soundEscape[] = {"ui\ui_cc", 0.2, 1};
        default = false;
};

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

class RscBlueText: RscText
{
        type = CT_STATIC;
        idc = -1;
        style = 16;
	linespacing = 1;
        colorBackground[] = {0, 0, 0, 0};
        colorText[] = {0, 0, 0.8, 1};
        font = FontM;
        sizeEx = 0.02;
};

class RscYellowText: RscText
{
        type = CT_STATIC;
        idc = -1;
        style = 16;
	linespacing = 1;
        colorBackground[] = {0, 0, 0, 0};
        colorText[] = {0.92, 0.73, 0, 1};
        font = FontM;
        sizeEx = 0.02;
};

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;
        soundEnter[] = {"ui\ui_over", 0.2, 1};
        soundPush[] = {, 0.2, 1};
        soundClick[] = {"ui\ui_ok", 0.2, 1};
        soundEscape[] = {"ui\ui_cc", 0.2, 1};
        default = false;
};

class RscLB_C
{
        style = ST_LEFT;
        idc = -1;
        colorSelect[] = {0.4, 0.4, 0.4, 1};
        colorSelectBackground[] = {0.2, 0.2, 0.2, 1};
        colorText[] = {0.2, 0.2, 0.2, 1};
        colorBackground[] = {0.4, 0.4, 0.4, 1};
        font = FontHTML;
        sizeEx = 0.025;
        rowHeight = 0.04;
};

class RscCombo:RscLB_C
{
	type = CT_COMBO;
	wholeHeight = 0.3;
};

class fz_f18e_loadout
{
  idd = -1;
  movingEnable = true;
  controlsBackground[] = { fz_f18_loadout_back, fz_f18_ld_aim120c, fz_f18_ldaim7m, fz_f18_ldaim9x, fz_f18_ldagm65e, fz_f18_ldagm88, fz_f18_ldagm154a, fz_f18_ldgbu10, fz_f18_ldmk84, fz_f18_ldmk83, fz_f18_ldmk82, fz_f18_ldmk20, fz_f18_ldcbu78, fz_f18_ldaim9m, fz_f18_ld_dsp, fz_f18_cn_dsp, fz_f18_fuel_dsp, fz_f18_dmg_dsp, fz_f18_wpnsts_dsp, fz_f18e_frame };
  objects[] = { };
  controls[] = { fz_f18_equip, fz_f18_rearmcn, fz_f18_repairrefuel, fz_f18_ldaim120c, fz_f18_hardpoint7, fz_f18_hardpoint2, fz_f18_hardpoint3, fz_f18_hardpoint4, fz_f18_hardpoint1, fz_f18_hardpoint5, fz_f18_hardpoint6, fz_f18_closemenu_button };
  class fz_f18_equip : RscButton
  {
          idc = 100;
          x = 0.09;
          y = 0.11;
          w = 0.2;
          h = 0.04;
          text = "EQUIP WEAPONS";
          action = "[vehicle player] exec ""\fz_f18\gui\loadweps.sqs""";
  };
  class fz_f18_rearmcn : RscButton
  {
          idc = 100;
          x = 0.09;
          y = 0.16;
          w = 0.2;
          h = 0.04;
          text = "RELOAD CANNON";
          action = "[vehicle player] exec ""\fz_f18\gui\reloadgun.sqs""";
  };
  class fz_f18_repairrefuel : RscButton
  {
          idc = 100;
          x = 0.09;
          y = 0.21;
          w = 0.2;
          h = 0.04;
          text = "REPAIR AND REFUEL";
          action = "[vehicle player] exec ""\fz_f18\gui\repairrefuel.sqs""";
  };
  class fz_f18_ldaim120c : RscButton
  {
          idc = 100;
          x = 0.28;
          y = 0.61;
          w = 0.1;
          h = 0.04;
          text = "AIM-120C";
          action = "ctrlSetText [116, ""The AIM-120C is the primary Medium Range Air-To-Air missile for the Super Hornet. It has good range and good damage, and is quite maneuverable for its class. It utilizes a 30kg blast-fragmentation warhead and flies at 3200kmh.""] && ctrlSetText [115, ""\fz_f18\gui\ld_aim120c.jpg""]";
  };
  class fz_f18_ldaim7m : RscButton
  {
          idc = 100;
          x = 0.39;
          y = 0.61;
          w = 0.1;
          h = 0.04;
          text = "AIM-7M";
          action = "ctrlSetText [116, ""The AIM-7M is the most current model of the Sparrow available. It was the Navy's first medium range missile, but is now considered obsolete. However, it is still used in many units and the Super Hornet still supports it. It has more power than an AIM-120, but with a less reliable guidance system and shorter range.""] && ctrlSetText [115, ""\fz_f18\gui\ld_aim7m.jpg""]";
  };
  class fz_f18_ldaim9x : RscButton
  {
          idc = 100;
          x = 0.50;
          y = 0.61;
          w = 0.1;
          h = 0.04;
          text = "AIM-9X";
          action = "ctrlSetText [116, ""The AIM-9X is a next-generation short range missile. It is far more capable than it's predecessor, the AIM-9M. It has a high seeker azimuth and thrust vectoring, coupled with greater range. Its warhead is not powerful, but it is very accurate and maneuverable.""] && ctrlSetText [115, ""\fz_f18\gui\ld_aim9x.jpg""]";
  };
  class fz_f18_ldagm65e : RscButton
  {
          idc = 100;
          x = 0.50;
          y = 0.655;
          w = 0.1;
          h = 0.04;
          text = "AGM-65E";
          action = "ctrlSetText [116, ""The AGM-65E is a laser guided version of the famed Maverick missile. Rather than unreliable TV guidance or complex imaging infra-red guidance, it relies upon the ATFLIR pod or equivalent laser designator to guide it to it's target. The warhead is powerful enough to destroy most tanks with a single hit.""] && ctrlSetText [115, ""\fz_f18\gui\ld_agm65e.jpg""]";
  };
  class fz_f18_ldagm88 : RscButton
  {
          idc = 100;
          x = 0.39;
          y = 0.655;
          w = 0.1;
          h = 0.04;
          text = "AGM-88";
          action = "ctrlSetText [116, ""The AGM-88 is the Super Hornet's primary anti-radiation missile. It flies at a high rate of speed and is capable of flying a great distance to hit it's target.""] && ctrlSetText [115, ""\fz_f18\gui\ld_agm88.jpg""]";
  };
  class fz_f18_ldagm154a : RscButton
  {
          idc = 100;
          x = 0.28;
          y = 0.655;
          w = 0.1;
          h = 0.04;
          text = "AGM-154A";
          action = "ctrlSetText [116, ""The AGM-154A gives the Super Hornet the capability to strike targets deep in protected enemy territory without putting itself at risk. The AGM-154A is not a missile, but a glide bomb. It carries a payload of submunitions that is excellent against stationary garrisons.""] && ctrlSetText [115, ""\fz_f18\gui\ld_agm154a.jpg""]";
  };
  class fz_f18_ldgbu10 : RscButton
  {
          idc = 100;
          x = 0.61;
          y = 0.655;
          w = 0.1;
          h = 0.04;
          text = "GBU-10";
          action = "ctrlSetText [116, ""The GBU-10 is a 2,000lb laser guided bomb with a blast fragmentation warhead. It is a highly accurate weapon, but requires significant altitude or speed in order to hit it's target. It has a very large blast radius and is capable of destroying most hardened targets.""] && ctrlSetText [115, ""\fz_f18\gui\ld_gb10.jpg""]";
  };
  class fz_f18_ldmk84 : RscButton
  {
          idc = 100;
          x = 0.72;
          y = 0.7;
          w = 0.1;
          h = 0.04;
          text = "Mk84";
          action = "ctrlSetText [116, ""The Mk84 is a 2,00lb free-fall bomb. It is unguided and highly inaccurate. Nonetheless, it is a powerful weapon, and ideal for taking out clusters of various enemies. The warhead is very powerful and affects a large 50m radius from where it hit. The GBU-10 uses the same warhead.""] && ctrlSetText [115, ""\fz_f18\gui\ld_mk84ld.jpg""]";
  };
  class fz_f18_ldmk83 : RscButton
  {
          idc = 100;
          x = 0.61;
          y = 0.7;
          w = 0.1;
          h = 0.04;
          text = "Mk83";
          action = "ctrlSetText [116, ""The Mk83 Snakeye is a low-drag or high-drag bomb, depending on which mode is used. It can be used for carpet bombing or precision bombing. It uses a 1,000lb warhead and has a blast radius of about 30m.""] && ctrlSetText [115, ""\fz_f18\gui\ld_mk83hd.jpg""]";
  };
  class fz_f18_ldmk82 : RscButton
  {
          idc = 100;
          x = 0.5;
          y = 0.7;
          w = 0.1;
          h = 0.04;
          text = "Mk82";
          action = "ctrlSetText [116, ""The Mk82 Snakeye is a general purpose 500lb bomb. It is an effective weapon for destroying light structures, vehicles, and infantry. It has a blast radius of about 20m.""] && ctrlSetText [115, ""\fz_f18\gui\ld_mk82hd.jpg""]";
  };
  class fz_f18_ldmk20 : RscButton
  {
          idc = 100;
          x = 0.28;
          y = 0.7;
          w = 0.1;
          h = 0.04;
          text = "Mk20";
          action = "ctrlSetText [116, ""The Mk20 is an anti-tank cluster bomb. It scatters a number of anti-tank submunitions around a 50m radius which can destroy or disable most tanks with a few hits.""] && ctrlSetText [115, ""\fz_f18\gui\ld_mk20.jpg""]";
  };
  class fz_f18_ldcbu78 : RscButton
  {
          idc = 100;
          x = 0.39;
          y = 0.7;
          w = 0.1;
          h = 0.04;
          text = "CBU-78";
          action = "ctrlSetText [116, ""The CBU-78 Gator is a Mk20 dispenser modified to carry a number of Gator anti-tank mines. It spreads them around a 50m radius and they can disable most tanks with 2 to 3 hits.""] && ctrlSetText [115, ""\fz_f18\gui\ld_cbu78.jpg""]";
  };
  class fz_f18_ldaim9m : RscButton
  {
          idc = 100;
          x = 0.61;
          y = 0.61;
          w = 0.1;
          h = 0.04;
          text = "AIM-9M";
          action = "ctrlSetText [116, ""The AIM-9M is the most common Sidewinder model available. It was a large leap forward over previous variants of the Sidewinder, in that it had an all-aspect seeker. It also included a larger warhead and increased range. It is an effective, simple, and well-balanced short range missile.""] && ctrlSetText [115, ""\fz_f18\gui\ld_aim9m.jpg""]";
  };
  class fz_f18_loadout_back : RscText
  {
    idc = 101;
    style = ST_PICTURE;
     x = 0.075;
     y = 0.075;
     w = 0.75;
     h = 0.9;
    text = "\fz_f18\gui\f18_loadout.jpg";
  };
  class fz_f18_ld_aim120c : RscText
  {
    idc = 115;
    style = ST_PICTURE;
     x = 0.09;
     y = 0.59;
     w = 0.15;
     h = 0.38;
    text = "\fz_f18\gui\nodata.jpg";
  };
  class fz_f18_ld_dsp : RscBlueText
  {
    idc = 116;
    style = 16;
	linespacing = 1;
     x = 0.27;
     y = 0.77;
     w = 0.5;
     h = 0.2;
    text = "Please select a weapon for more information.";
  };
  class fz_f18_cn_dsp : RscYellowText
  {
    idc = 120;
    style = 16;
          x = 0.395;
          y = 0.105;
          w = 0.2;
          h = 0.04;
    text = "578";
  };
  class fz_f18_fuel_dsp : RscYellowText
  {
    idc = 121;
    style = 16;
          x = 0.595;
          y = 0.2;
          w = 0.2;
          h = 0.04;
    text = "100%";
  };
  class fz_f18_dmg_dsp : RscYellowText
  {
    idc = 122;
    style = 16;
          x = 0.595;
          y = 0.24;
          w = 0.2;
          h = 0.04;
    text = "100%";
  };
  class fz_f18_wpnsts_dsp : RscYellowText
  {
    idc = 123;
    style = 16;
          x = 0.6;
          y = 0.1;
          w = 0.2;
          h = 0.04;
    text = "WAITING";
  };
  class fz_f18_hardpoint7 : RscCombo
  {
  	x = 0.398;
  	y = 0.45;
  	idc = 102;
  	w = 0.1;
  	h = 0.03255;
  	style = ST_CENTER;
  	colorText[] = {0.92, 0.73, 0, 1};
  	colorBackground[] = {0, 0, 0.4, 0.8};
 	font = "CourierNewB64";
  	SizeEX = 0.025;
  	colorSelect[] = {0, 0, 0.8, 1};
  	colorSelectBackGround[] = {0.6, 0.1, 0, 0.7};
  	RowHeight = 0.04;
 	wholeHeight = 0.3;
	text="";
  };
  class fz_f18_hardpoint2 : RscCombo
  {
  	x = 0.398;
  	y = 0.49;
  	idc = 103;
  	w = 0.1;
  	h = 0.03255;
  	style = ST_CENTER;
  	colorText[] = {0.92, 0.73, 0, 1};
  	colorBackground[] = {0, 0, 0.4, 0.8};
	font = "CourierNewB64";
  	SizeEX = 0.025;
  	colorSelect[] = {0, 0, 0.8, 1};
  	colorSelectBackGround[] = {0.6, 0.1, 0, 0.7};
  	RowHeight = 0.04;
 	wholeHeight = 0.3;
	text="";
  };
  class fz_f18_hardpoint3 : RscCombo
  {
  	x = 0.398;
  	y = 0.53;
  	idc = 104;
  	w = 0.1;
  	h = 0.03255;
  	style = ST_CENTER;
  	colorText[] = {0.92, 0.73, 0, 1};
  	colorBackground[] = {0, 0, 0.4, 0.8};
 	font = "CourierNewB64";
  	SizeEX = 0.025;
  	colorSelect[] = {0, 0, 0.8, 1};
  	colorSelectBackGround[] = {0.6, 0.1, 0, 0.7};
  	RowHeight = 0.04;
 	wholeHeight = 0.3;
	text="";
  };
  class fz_f18_hardpoint4 : RscCombo
  {
  	x = 0.398;
  	y = 0.57;
  	idc = 105;
  	w = 0.1;
  	h = 0.03255;
  	style = ST_CENTER;
  	colorText[] = {0.92, 0.73, 0, 1};
  	colorBackground[] = {0, 0, 0.4, 0.8};
 	font = "CourierNewB64";
  	SizeEX = 0.025;
  	colorSelect[] = {0, 0, 0.8, 1};
  	colorSelectBackGround[] = {0.6, 0.1, 0, 0.7};
  	RowHeight = 0.04;
 	wholeHeight = 0.3;
	text="";
  };
  class fz_f18_hardpoint1 : RscCombo
  {
  	x = 0.398;
  	y = 0.36;
  	idc = 106;
  	w = 0.1;
  	h = 0.03255;
  	style = ST_CENTER;
  	colorText[] = {0.92, 0.73, 0, 1};
  	colorBackground[] = {0, 0, 0.4, 0.8};
 	font = "CourierNewB64";
  	SizeEX = 0.025;
  	colorSelect[] = {0, 0, 0.8, 1};
  	colorSelectBackGround[] = {0.6, 0.1, 0, 0.7};
  	RowHeight = 0.04;
 	wholeHeight = 0.3;
	text="";
  };
  class fz_f18_hardpoint5 : RscCombo
  {
  	x = 0.337;
  	y = 0.408;
  	idc = 107;
  	w = 0.1;
  	h = 0.03255;
  	style = ST_CENTER;
  	colorText[] = {0.92, 0.73, 0, 1};
  	colorBackground[] = {0, 0, 0.4, 0.8};
 	font = "CourierNewB64";
  	SizeEX = 0.025;
  	colorSelect[] = {0, 0, 0.8, 1};
  	colorSelectBackGround[] = {0.6, 0.1, 0, 0.7};
  	RowHeight = 0.04;
 	wholeHeight = 0.3;
	text="";
  };
  class fz_f18_hardpoint6 : RscCombo
  {
  	x = 0.461;
  	y = 0.408;
  	idc = 108;
  	w = 0.1;
  	h = 0.03255;
  	style = ST_CENTER;
  	colorText[] = {0.92, 0.73, 0, 1};
  	colorBackground[] = {0, 0, 0.4, 0.8};
 	font = "CourierNewB64";
  	SizeEX = 0.025;
  	colorSelect[] = {0, 0, 0.8, 1};
  	colorSelectBackGround[] = {0.6, 0.1, 0, 0.7};
  	RowHeight = 0.04;
 	wholeHeight = 0.3;
	text="";
  };
  class fz_f18_closemenu_button : RscButton
  {
          idc = 110;
          x = 0.6;
          y = 0.15;
          w = 0.2;
          h = 0.04;
          text = "Close Menu";
          action = "[vehicle player] exec ""closemenu.sqs""";
  };
class fz_f18e_frame : RscText
  {
     idc = 111;
     style = ST_FRAME;
     colorText[] = {0.4, 0.4, 0.4, 1};
     text = "ARMAMENT";
     sizeEx = 0.025;
     x = 0.08;
     y = 0.075;
     w = 0.745;
     h = 0.9;
  };
};
 

 

 
