--------------------------------------------------
-- WEAPONS PROGRAMING
--------------------------------------------------
-- All Weapons
local	wpn_prog_ln1_col_1				= CreateElement "ceStringPoly"
		wpn_prog_ln1_col_1.name			= "wpn_prog_ln1_col_1"
		wpn_prog_ln1_col_1.material		= mpcd_font_base
		wpn_prog_ln1_col_1.init_pos		= {-0.60, -0.40, 0}
		wpn_prog_ln1_col_1.alignment	= "LeftCenter"
		wpn_prog_ln1_col_1.value		= "MODE"
		wpn_prog_ln1_col_1.stringdefs	= MPCD_data1_font_size
		wpn_prog_ln1_col_1.controllers	= {{"acp_active"}}
Add_MPCD_Element(wpn_prog_ln1_col_1)

local	wpn_prog_ln1_col_2				= CreateElement "ceStringPoly"
		wpn_prog_ln1_col_2.name			= "wpn_prog_ln1_col_2"
		wpn_prog_ln1_col_2.material		= mpcd_font_base
		wpn_prog_ln1_col_2.init_pos		= {0.0, -0.40, 0}
		wpn_prog_ln1_col_2.alignment	= "RightCenter"
		wpn_prog_ln1_col_2.formats		= {"%s"}
		wpn_prog_ln1_col_2.stringdefs	= MPCD_data1_font_size
		wpn_prog_ln1_col_2.controllers	= {{"acp_active"}, {"acp_armt_mode"}}
Add_MPCD_Element(wpn_prog_ln1_col_2)

local	wpn_prog_ln3_col_1				= CreateElement "ceStringPoly"
		wpn_prog_ln3_col_1.name			= "wpn_prog_ln3_col_1"
		wpn_prog_ln3_col_1.material		= mpcd_font_base
		wpn_prog_ln3_col_1.init_pos		= {-0.60, -0.60, 0}
		wpn_prog_ln3_col_1.alignment	= "LeftCenter"
		wpn_prog_ln3_col_1.value		= "TGT ELEV"
		wpn_prog_ln3_col_1.stringdefs	= MPCD_data1_font_size
		wpn_prog_ln3_col_1.controllers	= {{"acp_has_elev"}}
Add_MPCD_Element(wpn_prog_ln3_col_1)

local	wpn_prog_ln3_col_2				= CreateElement "ceStringPoly"
		wpn_prog_ln3_col_2.name			= "wpn_prog_ln3_col_2"
		wpn_prog_ln3_col_2.material		= mpcd_font_base
		wpn_prog_ln3_col_2.init_pos		= {0.0, -0.60, 0}
		wpn_prog_ln3_col_2.alignment	= "RightCenter"
		wpn_prog_ln3_col_2.formats		= {"%1.f"}
		wpn_prog_ln3_col_2.stringdefs	= MPCD_data1_font_size
		wpn_prog_ln3_col_2.controllers	= {{"acp_has_elev"}, {"acp_tgt_elev"}}
Add_MPCD_Element(wpn_prog_ln3_col_2)

-- Bombs, Rockest & AGMs
local	wpn_prog_ln1_col_3				= CreateElement "ceStringPoly"
		wpn_prog_ln1_col_3.name			= "wpn_prog_ln1_col_3"
		wpn_prog_ln1_col_3.material		= mpcd_font_base
		wpn_prog_ln1_col_3.init_pos		= {0.20, -0.40, 0}
		wpn_prog_ln1_col_3.alignment	= "LeftCenter"
		wpn_prog_ln1_col_3.value		= "QTY"
		wpn_prog_ln1_col_3.stringdefs	= MPCD_data1_font_size
		wpn_prog_ln1_col_3.controllers	= {{"acp_has_qty"}}
Add_MPCD_Element(wpn_prog_ln1_col_3)

local	wpn_prog_ln1_col_4				= CreateElement "ceStringPoly"
		wpn_prog_ln1_col_4.name			= "wpn_prog_ln1_col_4"
		wpn_prog_ln1_col_4.material		= mpcd_font_base
		wpn_prog_ln1_col_4.init_pos		= {0.60, -0.40, 0}
		wpn_prog_ln1_col_4.alignment	= "RightCenter"
		wpn_prog_ln1_col_4.formats		= {"%d"}
		wpn_prog_ln1_col_4.stringdefs	= MPCD_data1_font_size
		wpn_prog_ln1_col_4.controllers	= {{"acp_has_qty"}, {"acp_rel_qty"}}
Add_MPCD_Element(wpn_prog_ln1_col_4)

-- Bombs, & Rockets
local	wpn_prog_ln2_col_3				= CreateElement "ceStringPoly"
		wpn_prog_ln2_col_3.name			= "wpn_prog_ln2_col_3"
		wpn_prog_ln2_col_3.material		= mpcd_font_base
		wpn_prog_ln2_col_3.init_pos		= {0.20, -0.50, 0}
		wpn_prog_ln2_col_3.alignment	= "LeftCenter"
		wpn_prog_ln2_col_3.value		= "MULT"
		wpn_prog_ln2_col_3.stringdefs	= MPCD_data1_font_size
		wpn_prog_ln2_col_3.controllers	= {{"acp_has_mult"}}
Add_MPCD_Element(wpn_prog_ln2_col_3)

local	wpn_prog_ln2_col_4				= CreateElement "ceStringPoly"
		wpn_prog_ln2_col_4.name			= "wpn_prog_ln2_col_4"
		wpn_prog_ln2_col_4.material		= mpcd_font_base
		wpn_prog_ln2_col_4.init_pos		= {0.60, -0.50, 0}
		wpn_prog_ln2_col_4.alignment	= "RightCenter"
		wpn_prog_ln2_col_4.formats		= {"%d"}
		wpn_prog_ln2_col_4.stringdefs	= MPCD_data1_font_size
		wpn_prog_ln2_col_4.controllers	= {{"acp_has_mult"}, {"acp_mult_qty"}}
Add_MPCD_Element(wpn_prog_ln2_col_4)

-- Bombs & AGMs
local	wpn_prog_ln2_col_1				= CreateElement "ceStringPoly"
		wpn_prog_ln2_col_1.name			= "wpn_prog_ln2_col_1"
		wpn_prog_ln2_col_1.material		= mpcd_font_base
		wpn_prog_ln2_col_1.init_pos		= {-0.60, -0.50, 0}
		wpn_prog_ln2_col_1.alignment	= "LeftCenter"
		wpn_prog_ln2_col_1.value		= "FUZE"
		wpn_prog_ln2_col_1.stringdefs	= MPCD_data1_font_size
		wpn_prog_ln2_col_1.controllers	= {{"acp_has_fuze"}}
Add_MPCD_Element(wpn_prog_ln2_col_1)

local	wpn_prog_ln2_col_2				= CreateElement "ceStringPoly"
		wpn_prog_ln2_col_2.name			= "wpn_prog_ln2_col_2"
		wpn_prog_ln2_col_2.material		= mpcd_font_base
		wpn_prog_ln2_col_2.init_pos		= {0.0, -0.50, 0}
		wpn_prog_ln2_col_2.alignment	= "RightCenter"
		wpn_prog_ln2_col_2.formats		= {"%s"}
		wpn_prog_ln2_col_2.stringdefs	= MPCD_data1_font_size
		wpn_prog_ln2_col_2.controllers	= {{"acp_has_fuze"}, {"acp_armt_fuze"}}
Add_MPCD_Element(wpn_prog_ln2_col_2)

-- Bombs
local	wpn_prog_ln3_col_3				= CreateElement "ceStringPoly"
		wpn_prog_ln3_col_3.name			= "wpn_prog_ln3_col_3"
		wpn_prog_ln3_col_3.material		= mpcd_font_base
		wpn_prog_ln3_col_3.init_pos		= {0.20, -0.60, 0}
		wpn_prog_ln3_col_3.alignment	= "LeftCenter"
		wpn_prog_ln3_col_3.value		= "INT"
		wpn_prog_ln3_col_3.stringdefs	= MPCD_data1_font_size
		wpn_prog_ln3_col_3.controllers	= {{"acp_has_intvl"}}
Add_MPCD_Element(wpn_prog_ln3_col_3)

local	wpn_prog_ln3_col_4				= CreateElement "ceStringPoly"
		wpn_prog_ln3_col_4.name			= "wpn_prog_ln3_col_4"
		wpn_prog_ln3_col_4.material		= mpcd_font_base
		wpn_prog_ln3_col_4.init_pos		= {0.60, -0.60, 0}
		wpn_prog_ln3_col_4.alignment	= "RightCenter"
		wpn_prog_ln3_col_4.formats		= {"%d"}
		wpn_prog_ln3_col_4.stringdefs	= MPCD_data1_font_size
		wpn_prog_ln3_col_4.controllers	= {{"acp_has_intvl"}, {"acp_rel_intvl"}}
Add_MPCD_Element(wpn_prog_ln3_col_4)

-- Guns & Rockets
local	wpn_prog_ln4_col_1				= CreateElement "ceStringPoly"
		wpn_prog_ln4_col_1.name			= "wpn_prog_ln4_col_1"
		wpn_prog_ln4_col_1.material		= mpcd_font_base
		wpn_prog_ln4_col_1.init_pos		= {-0.60, -0.70, 0}
		wpn_prog_ln4_col_1.alignment	= "LeftCenter"
		wpn_prog_ln4_col_1.value		= "MAX"
		wpn_prog_ln4_col_1.stringdefs	= MPCD_data1_font_size
		wpn_prog_ln4_col_1.controllers	= {{"wpn_is_gun_rkt"}}
Add_MPCD_Element(wpn_prog_ln4_col_1)

local	wpn_prog_ln4_col_2				= CreateElement "ceStringPoly"
		wpn_prog_ln4_col_2.name			= "wpn_prog_ln2_col_2"
		wpn_prog_ln4_col_2.material		= mpcd_font_base
		wpn_prog_ln4_col_2.init_pos		= {0.0, -0.70, 0}
		wpn_prog_ln4_col_2.alignment	= "RightCenter"
		wpn_prog_ln4_col_2.formats		= {"%1.f"}
		wpn_prog_ln4_col_2.stringdefs	= MPCD_data1_font_size
		wpn_prog_ln4_col_2.controllers	= {{"wpn_is_gun_rkt"}, {"acp_gr_max_rng"}}
Add_MPCD_Element(wpn_prog_ln4_col_2)

local	wpn_prog_ln5_col_1				= CreateElement "ceStringPoly"
		wpn_prog_ln5_col_1.name			= "wpn_prog_ln5_col_1"
		wpn_prog_ln5_col_1.material		= mpcd_font_base
		wpn_prog_ln5_col_1.init_pos		= {-0.60, -0.80, 0}
		wpn_prog_ln5_col_1.alignment	= "LeftCenter"
		wpn_prog_ln5_col_1.value		= "MIN"
		wpn_prog_ln5_col_1.stringdefs	= MPCD_data1_font_size
		wpn_prog_ln5_col_1.controllers	= {{"wpn_is_gun_rkt"}}
Add_MPCD_Element(wpn_prog_ln5_col_1)

local	wpn_prog_ln5_col_2				= CreateElement "ceStringPoly"
		wpn_prog_ln5_col_2.name			= "wpn_prog_ln2_col_2"
		wpn_prog_ln5_col_2.material		= mpcd_font_base
		wpn_prog_ln5_col_2.init_pos		= {0.0, -0.80, 0}
		wpn_prog_ln5_col_2.alignment	= "RightCenter"
		wpn_prog_ln5_col_2.formats		= {"%1.f"}
		wpn_prog_ln5_col_2.stringdefs	= MPCD_data1_font_size
		wpn_prog_ln5_col_2.controllers	= {{"wpn_is_gun_rkt"}, {"acp_gr_min_rng"}}
Add_MPCD_Element(wpn_prog_ln5_col_2)
