dofile(LockOn_Options.common_script_path.."elements_defs.lua")

SetScale(FOV) -- set scale factor modifier (in this case FOV - half of horizontal size)

--[[
  SetScale(MILLYRADIANS)
	next elements will be scaled in millyrads
  SetScale(METERS)
        next elements will be scaled in meters
  SetScale(FOV)
        and again in FOV parts
--]]

vertical_size = 0.011
horizontal_size = 0.011
vertical_offset = -0.012
--[[
txt_weap_type			  = CreateElement "ceStringPoly"
txt_weap_type.name        = "txt_weap_type"
txt_weap_type.material    = "font_PUI_800"
txt_weap_type.init_pos	  = {-0.75, vertical_offset, 0.0}
txt_weap_type.alignment   = "LeftCenter"
txt_weap_type.formats     = {"НР", "ПС", "A6", "ПП"}
txt_weap_type.stringdefs  = {horizontal_size, vertical_size, 0.0, 0.0}
txt_weap_type.controllers = {{"current_weapon_type", 0, 1, 2, 3}}
Add(txt_weap_type)
--]]

txt_weap_type_RT			 = CreateElement "ceStringPoly"
txt_weap_type_RT.name        = "txt_weap_type_RT"
txt_weap_type_RT.material    = "font_PUI_800"
txt_weap_type_RT.init_pos	 = {-0.75, vertical_offset, 0.0}
txt_weap_type_RT.alignment   = "LeftCenter"
txt_weap_type_RT.value		 = "НР"
txt_weap_type_RT.stringdefs  = {horizontal_size, vertical_size, 0.0, 0.0}
txt_weap_type_RT.controllers = {{"weapon_type", 1}}
Add(txt_weap_type_RT)

txt_weap_type_AT			 = CreateElement "ceStringPoly"
txt_weap_type_AT.name        = "txt_weap_type_AT"
txt_weap_type_AT.material    = "font_PUI_800"
txt_weap_type_AT.init_pos	 = {-0.75, vertical_offset, 0.0}
txt_weap_type_AT.alignment   = "LeftCenter"
txt_weap_type_AT.value		 = "ПС"
txt_weap_type_AT.stringdefs  = {horizontal_size, vertical_size, 0.0, 0.0}
txt_weap_type_AT.controllers = {{"weapon_type", 2}}
Add(txt_weap_type_AT)

txt_weap_type_Iron_Bomb			    = CreateElement "ceStringPoly"
txt_weap_type_Iron_Bomb.name        = "txt_weap_type_Iron_Bomb"
txt_weap_type_Iron_Bomb.material    = "font_PUI_800"
txt_weap_type_Iron_Bomb.init_pos	= {-0.75, vertical_offset, 0.0}
txt_weap_type_Iron_Bomb.alignment   = "LeftCenter"
txt_weap_type_Iron_Bomb.value		= "A6"
txt_weap_type_Iron_Bomb.stringdefs  = {horizontal_size, vertical_size, 0.0, 0.0}
txt_weap_type_Iron_Bomb.controllers = {{"weapon_type", 3}}
Add(txt_weap_type_Iron_Bomb)

txt_weap_type_Gun_Pod			 = CreateElement "ceStringPoly"
txt_weap_type_Gun_Pod.name        = "txt_weap_type_Gun_Pod"
txt_weap_type_Gun_Pod.material    = "font_PUI_800"
txt_weap_type_Gun_Pod.init_pos	 = {-0.75, vertical_offset, 0.0}
txt_weap_type_Gun_Pod.alignment   = "LeftCenter"
txt_weap_type_Gun_Pod.value		 = "ПП"
txt_weap_type_Gun_Pod.stringdefs  = {horizontal_size, vertical_size, 0.0, 0.0}
txt_weap_type_Gun_Pod.controllers = {{"weapon_type", 4}}
Add(txt_weap_type_Gun_Pod)

txt_weap_count					= CreateElement "ceStringPoly"
txt_weap_count.name				= "txt_weap_count"
txt_weap_count.material			= "font_PUI_800"
txt_weap_count.init_pos			= {0.025, vertical_offset, 0.0}
txt_weap_count.alignment		= "LeftCenter"
txt_weap_count.stringdefs		= {horizontal_size, vertical_size, 0.0, 0.0}
txt_weap_count.formats			= {"%02u"}
txt_weap_count.controllers		= {{"weapon_count", 0, 99}}
Add(txt_weap_count)

txt_cannon_count				= CreateElement "ceStringPoly"
txt_cannon_count.name			= "txt_cannon_count"
txt_cannon_count.material		= "font_PUI_800"
txt_cannon_count.init_pos		= {0.585, vertical_offset, 0.0}
txt_cannon_count.alignment		= "LeftCenter"
txt_cannon_count.stringdefs		= {horizontal_size, vertical_size, 0.0, 0.0}
txt_cannon_count.formats		= {"%02u"}
txt_cannon_count.controllers	= {{"cannon_count", 0, 99}}
Add(txt_cannon_count)
