dofile(LockOn_Options.script_path.."ABRIS\\ABRIS_usefull_definitions.lua")
new_delta = 0.7*(2*y_size -  3*y_pos_delta)/29


local cursor_size             =  abris_font[2][1] + abris_font[2][4]
local cursor_size_scaled      =  cursor_size/GetScale()

txt_journal_segment_data = {}
txt_journal_segment_data[1]			   	     = CreateElement "ceStringPoly"
txt_journal_segment_data[1].name             = "jsd_1_"
txt_journal_segment_data[1].material         = "font_Ka-50_ABRIS_WHITE"
txt_journal_segment_data[1].init_pos		 = {-0.9*x_size,1.35*new_delta,0}
txt_journal_segment_data[1].alignment        = "CenterTop"
txt_journal_segment_data[1].stringdefs       = abris_font[8]
txt_journal_segment_data[1].formats			 = {"%02d"}
txt_journal_segment_data[1].controllers      ={{"current_menu_in_list_position",-2*new_delta*GetScale()},
											   {"current_menu_item_number",0},
											   {"current_menu_item_change_color",0,0,0}}
Add(txt_journal_segment_data[1])
use_mipfilter(txt_journal_segment_data[1])

txt_journal_segment_data[2]			   	     = CreateElement "ceStringPoly"
txt_journal_segment_data[2].name             = "jsd_2_"
txt_journal_segment_data[2].material         = "font_Ka-50_ABRIS_WHITE"
txt_journal_segment_data[2].init_pos		 = {0,0,0}
txt_journal_segment_data[2].alignment        = "LeftTop"
txt_journal_segment_data[2].stringdefs       = abris_font[8]
txt_journal_segment_data[2].formats			 = {"  %s"}
txt_journal_segment_data[2].controllers      = {{"journal_segment_end_point_name",0},{"current_menu_item_change_color",0,0,0}}
txt_journal_segment_data[2].parent_element   = txt_journal_segment_data[1].name
Add(txt_journal_segment_data[2])
use_mipfilter(txt_journal_segment_data[2])

txt_journal_segment_data[3]	  		   	     = CreateElement "ceStringPoly"
txt_journal_segment_data[3].name             = "jsd_3_"
txt_journal_segment_data[3].material         = "font_Ka-50_ABRIS_WHITE"
txt_journal_segment_data[3].init_pos		 = {0.85*x_size,new_delta,0}
txt_journal_segment_data[3].alignment        = "RightTop"
txt_journal_segment_data[3].stringdefs       = abris_font[8]
txt_journal_segment_data[3].formats          = {"%03.f°/   "}
txt_journal_segment_data[3].controllers      = {{"journal_segment_preset_wind_direction",0},{"current_menu_item_change_color",0,0,0}}
txt_journal_segment_data[3].parent_element   = txt_journal_segment_data[1].name
Add(txt_journal_segment_data[3])
use_mipfilter(txt_journal_segment_data[3])

txt_journal_segment_data[4]	  		   	     = Copy(txt_journal_segment_data[3])
txt_journal_segment_data[4].formats          = {"    %03.f"}
txt_journal_segment_data[4].controllers      = {{"journal_segment_preset_wind_speed",0},{"current_menu_item_change_color",0,0,0}}
Add(txt_journal_segment_data[4])

txt_journal_segment_data[5]	  		   	     = Copy(txt_journal_segment_data[3])
txt_journal_segment_data[5].init_pos		 = {1.7*x_size,new_delta,0}
txt_journal_segment_data[5].formats          = {"%+3.f°C"}
txt_journal_segment_data[5].controllers      = {{"journal_segment_preset_atmospheric_temperature",0},{"current_menu_item_change_color",0,0,0}}
Add(txt_journal_segment_data[5])



txt_journal_segment_data[6]			   	     = CreateElement "ceStringPoly"
txt_journal_segment_data[6].name             = "jsd_6_"
txt_journal_segment_data[6].material         = "font_Ka-50_ABRIS_WHITE"
txt_journal_segment_data[6].init_pos		 = {0.06*x_size,0,0}
txt_journal_segment_data[6].alignment        = "LeftTop"
txt_journal_segment_data[6].formats		     = {"%s"}
txt_journal_segment_data[6].stringdefs       = abris_font[8]
txt_journal_segment_data[6].parent_element   = txt_journal_segment_data[4].name
txt_journal_segment_data[6].controllers     = {{"measurements_units_speed",0},{"current_menu_item_change_color",0,0,0}}
Add(txt_journal_segment_data[6])
use_mipfilter(txt_journal_segment_data[6])

for i,o in pairs(txt_journal_segment_data) do
    SetDefaultClipWithLevel(o,2)
end







