-- script for Area Special Links -- variables for evidences: evd_x1 = 87 evd_y = 121 evd_x2 = 140 evd_x3 = 193 evd_x4 = 246 evd_x5 = 300 evd_x6 = 353 evd_x7 = 406 evd_x8 = 459 evd_x9 = 512 evd_dx =48 evd_dy =48 _sound_select_evd="Highlight" _sound_accept_evd="accept" _function_select_evd ='SpecialEvidenceSelect' _function_accept_evd ='SpecialEvidenceAction' --middle buttons : middle_pos_y = 352 middle_pos_x1 = 161 middle_pos_x2 = 267 middle_pos_x3 = 413 middle_dx = 128 middle_dy = 32 _function_select_confirm="SpecialConfirmSelect" _function_accept_confirm="SpecialConfirmAccept" _sound_select_confirm="Highlight" _sound_accept_confirm="accept" _file_computer_select_bg1="Menu\\MenuTextures\\Lab\\LabComp_common\\bg1.dds" _file_computer_select_bg2="Menu\\MenuTextures\\Lab\\LabComp_common\\bg2.dds" _file_computer_select_bg3="Menu\\MenuTextures\\Lab\\SpecialLinks\\bg3.dds" _file_computer_select_bg4="Menu\\MenuTextures\\Lab\\SpecialLinks\\bg4.dds" _file_computer_select_bg5="Menu\\MenuTextures\\Lab\\LabComp_common\\bg5.dds" _file_computer_select_bg6="Menu\\MenuTextures\\Lab\\LabComp_common\\bg6.dds" _file_microscop_confirm_sel="Menu\\MenuTextures\\Lab\\SpecialLinks\\search_on.dds" _file_microscop_confirm="Menu\\MenuTextures\\Lab\\SpecialLinks\\search.dds" _file_texture_frame="Menu\\MenuTextures\\Lab\\Lab_common\\buttCadruPRESS.dds" _push_text_alpha_normal=255 _push_text_r_normal=255 _push_text_g_normal=205 _push_text_b_normal=7 _push_text_alpha_sel=255 _push_text_r_sel=255 _push_text_g_sel=255 _push_text_b_sel=200 function splinks_area() SetMaterial( 'splinks_area', 0 , _file_computer_select_bg3 , 255,255,255,255 ); SetMaterial( 'splinks_area', 1 , _file_computer_select_bg3 , 255,255,255,255 ); SetPos( 'splinks_area',0 , 0, 105 ); SetDim( 'splinks_area',0 , 512, 512 ); SetPos( 'splinks_area',1 , 0, 105 ); SetDim( 'splinks_area',1 , 512, 512 ); -- backgrounds : AddStaticObject( 'splinks_area' , "spl_bgrd1" ); AddStaticObject( 'splinks_area' , "spl_bgrd2" ); AddStaticObject( 'splinks_area' , "spl_bgrd4" ); AddStaticObject( 'splinks_area' , "spl_bgrd5" ); AddStaticObject( 'splinks_area' , "spl_bgrd6" ); AddStaticObject( 'splinks_area' , "spl_title" ); AddStaticObject( 'splinks_area' , 'spl_pict'); AddStaticObject( 'splinks_area' , "spl_hint" ); -- Buttons : AddPushButton( 'splinks_area' , "confirm_spl" ); AddPushButton( 'splinks_area' , "evd1_spl" ); AddPushButton( 'splinks_area' , "evd2_spl" ); AddPushButton( 'splinks_area' , "evd3_spl" ); AddPushButton( 'splinks_area' , "evd4_spl" ); AddPushButton( 'splinks_area' , "evd5_spl" ); AddPushButton( 'splinks_area' , "evd6_spl" ); AddPushButton( 'splinks_area' , "evd7_spl" ); AddPushButton( 'splinks_area' , "evd8_spl" ); AddPushButton( 'splinks_area' , "evd9_spl" ); AddStaticObject( 'splinks_area' , "evd_frame_spl" ); AddStaticObject( 'splinks_area' , "sample_frame_spl" ); AddStaticObject( 'splinks_area' , "spl_back" ); AddStaticObject( 'splinks_area' , "spl_acc" ); AddStaticObject( 'splinks_area' , "spl_y" ); AreaAddHelpLine( "splinks_area" , "Lab_SearchLinks_Help" ); GUISetVisible ("splinks_area" , 0 ); end function spl_hint() SetMaterial ( "spl_hint" , 0, "" , 0, 0 ,0, 0); SetPos ( "spl_hint" , 0, 83 , 161 ); SetDim( "spl_hint" , 0, 400 , 24 ); SetTxt( "spl_hint" , 1 , 4 , "" ); SetFontScale( "spl_hint" , "0.7" ); SetTextPosition( "spl_hint" , 0,2,404,16); SetTextColor("spl_hint" , 255 , 255 ,255 ,180); end -- cadru evidente si samples selectate: function evd_frame_spl() SetMaterial ( "evd_frame_spl" , 0, _file_texture_frame , 255, 255 ,255, 255); SetMaterial ( "evd_frame_spl" , 1, "" , 0 , 255 ,255, 255); SetDim( "evd_frame_spl" , 0, 64 ,64 ); SetDim( "evd_frame_spl" , 1, 64 ,64 ); end function sample_frame_spl() SetMaterial ( "sample_frame_spl" , 0, _file_texture_frame , 255, 255 ,255, 255); SetMaterial ( "sample_frame_spl" , 1, "" , 0 , 255 ,255, 255); SetDim( "sample_frame_spl" , 0, 64 ,64 ); SetDim( "sample_frame_spl" , 1, 64 ,64 ); end -- backgrounds : function spl_bgrd1() SetMaterial( 'spl_bgrd1', 0, _file_computer_select_bg1 , 255,255,255,255 ); SetPos( 'spl_bgrd1', 0, 0 , 1 ); SetDim( 'spl_bgrd1', 0, 512 , 128 ); end function spl_bgrd2() SetMaterial( 'spl_bgrd2', 0, _file_computer_select_bg2 , 255,255,255,255 ); SetPos( 'spl_bgrd2', 0, 512 , 1 ); SetDim( 'spl_bgrd2', 0, 128 , 128 ); end function spl_bgrd4() SetMaterial( 'spl_bgrd4', 0, _file_computer_select_bg4 , 255,255,255,255 ); SetPos( 'spl_bgrd4', 0, 512, 105 ); SetDim( 'spl_bgrd4', 0, 128 , 512 ); end function spl_bgrd5() SetMaterial( 'spl_bgrd5', 0, _file_computer_select_bg5 , 255,255,255,255 ); SetPos( 'spl_bgrd5', 0, 0 , 406 ); SetDim( 'spl_bgrd5', 0, 512 , 128 ); end function spl_bgrd6() SetMaterial( 'spl_bgrd6', 0, _file_computer_select_bg6 , 255,255,255,255 ); SetPos( 'spl_bgrd6', 0, 512 , 406 ); SetDim( 'spl_bgrd6', 0, 128 , 128 ); end function spl_title() SetMaterial( 'spl_title', 0, "" , 0 ,255,255,255 ); SetPos( 'spl_title', 0, 74 , 77 ); SetDim( 'spl_title', 0, 404 , 16 ); SetTxt( 'spl_title', 1, 4 , "Lab_Title_Search_Link" ); SetFontScale( 'spl_title', "0.8" ); SetTextColor( 'spl_title' , 255, 0 , 255 , 0); end -- pictures objects: function spl_pict() SetMaterial( 'spl_pict', 0, "" , 255 ,255,255,255 ); SetMaterial( 'spl_pict', 1, "" , 0 ,255,255,255 ) SetPos( 'spl_pict', 0, 210 , 210 ); SetDim( 'spl_pict', 0, 256 , 128 ); SetPos( 'spl_pict', 1, 210 , 210 ); SetDim( 'spl_pict', 1, 256 , 128 ); end -- middle buttons : Search (left) , Confirm , Search (right): function confirm_spl() SetMaterial( 'confirm_spl', 0, _file_microscop_confirm , 255 ,255,255,255 ); SetMaterial( 'confirm_spl', 1, _file_microscop_confirm_sel , 255 ,255,255,255 ); SetMaterial( 'confirm_spl', 2, _file_microscop_confirm_sel , 255 ,255,255,255 ); SetMaterial( 'confirm_spl', 3, "" , 0 ,255,255,255 ); SetPos( 'confirm_spl', 0 , middle_pos_x2 , middle_pos_y -2 ); SetDim( 'confirm_spl', 0 , middle_dx , middle_dy); SetPos( 'confirm_spl', 1 , middle_pos_x2 , middle_pos_y -2 ); SetDim( 'confirm_spl', 1 , middle_dx , middle_dy); SetPos( 'confirm_spl', 2 , middle_pos_x2 , middle_pos_y -2 ); SetDim( 'confirm_spl', 2 , middle_dx , middle_dy); SetPos( 'confirm_spl', 3 , middle_pos_x2 , middle_pos_y -2 ); SetDim( 'confirm_spl', 3 , middle_dx , middle_dy); SetState( 'confirm_spl', 1 ); SetSel('confirm_spl', _function_select_confirm ); SetPush('confirm_spl', _function_accept_confirm ); SetSndSelect( 'confirm_spl', _sound_select_confirm ); SetSndPush( 'confirm_spl', _sound_accept_confirm ); SetTxt( 'confirm_spl', 1, 5 , "search" ); SetTextPosition('confirm_spl', 5 , 2 , 104 , 14 ); SetFontScale('confirm_spl', "0.75"); SetTextColor('confirm_spl', _push_text_alpha_normal , _push_text_r_normal,_push_text_g_normal,_push_text_b_normal); SetTextColor('confirm_spl', _push_text_alpha_sel , _push_text_r_sel,_push_text_g_sel,_push_text_b_sel , 1 ); SetTextColor('confirm_spl', _push_text_alpha_normal , _push_text_r_normal,_push_text_g_normal,_push_text_b_normal ,2); SetNSEW('confirm_spl', "evd1_spl", "sample1_microscop", "NULL" , "NULL" ); end -- Evidences PushButtons : function evd1_spl() SetMaterial( 'evd1_spl', 0, "" , 255 ,255,255,255 ); SetMaterial( 'evd1_spl', 1, "" , 255 ,255,255,255 ); SetMaterial( 'evd1_spl', 2, "" , 255 ,255,255,255 ); SetMaterial( 'evd1_spl', 3, "" , 0 ,255,255,255 ); SetPos( 'evd1_spl', 0 , evd_x1 , evd_y ); SetDim( 'evd1_spl', 0 , evd_dx , evd_dy); SetPos( 'evd1_spl', 1 , evd_x1 , evd_y ); SetDim( 'evd1_spl', 1 , evd_dx , evd_dy); SetPos( 'evd1_spl', 2 , evd_x1 , evd_y ); SetDim( 'evd1_spl', 2 , evd_dx , evd_dy); SetPos( 'evd1_spl', 3 , evd_x1 , evd_y ); SetDim( 'evd1_spl', 3 , evd_dx , evd_dy); SetState( 'evd1_spl', 3 ); SetSel('evd1_spl', _function_select_evd ); SetPush('evd1_spl', _function_accept_evd ); SetSndSelect( 'evd1_spl', _sound_select_evd ); SetSndPush( 'evd1_spl', _sound_accept_evd ); end function evd2_spl() SetMaterial( 'evd2_spl', 0, "" , 255 ,255,255,255 ); SetMaterial( 'evd2_spl', 1, "" , 255 ,255,255,255 ); SetMaterial( 'evd2_spl', 2, "" , 255 ,255,255,255 ); SetMaterial( 'evd2_spl', 3, "" , 0 ,255,255,255 ); SetPos( 'evd2_spl', 0 , evd_x2 , evd_y ); SetDim( 'evd2_spl', 0 , evd_dx , evd_dy); SetPos( 'evd2_spl', 1 , evd_x2 , evd_y ); SetDim( 'evd2_spl', 1 , evd_dx , evd_dy); SetPos( 'evd2_spl', 2 , evd_x2 , evd_y ); SetDim( 'evd2_spl', 2 , evd_dx , evd_dy); SetPos( 'evd2_spl', 3 , evd_x2 , evd_y ); SetDim( 'evd2_spl', 3 , evd_dx , evd_dy); SetState( 'evd2_spl', 3 ); SetSel('evd2_spl', _function_select_evd ); SetPush('evd2_spl', _function_accept_evd ); SetSndSelect( 'evd2_spl', _sound_select_evd ); SetSndPush( 'evd2_spl', _sound_accept_evd ); end function evd3_spl() SetMaterial( 'evd3_spl', 0, "" , 255 ,255,255,255 ); SetMaterial( 'evd3_spl', 1, "" , 255 ,255,255,255 ); SetMaterial( 'evd3_spl', 2, "" , 255 ,255,255,255 ); SetMaterial( 'evd3_spl', 3, "" , 0 ,255,255,255 ); SetPos( 'evd3_spl', 0 , evd_x3 , evd_y ); SetDim( 'evd3_spl', 0 , evd_dx , evd_dy); SetPos( 'evd3_spl', 1 , evd_x3 , evd_y ); SetDim( 'evd3_spl', 1 , evd_dx , evd_dy); SetPos( 'evd3_spl', 2 , evd_x3 , evd_y ); SetDim( 'evd3_spl', 2 , evd_dx , evd_dy); SetPos( 'evd3_spl', 3 , evd_x3 , evd_y ); SetDim( 'evd3_spl', 3 , evd_dx , evd_dy); SetState( 'evd3_spl', 3 ); SetSel('evd3_spl', _function_select_evd ); SetPush('evd3_spl', _function_accept_evd ); SetSndSelect( 'evd3_spl', _sound_select_evd ); SetSndPush( 'evd3_spl', _sound_accept_evd ); end function evd4_spl() SetMaterial( 'evd4_spl', 0, "" , 255 ,255,255,255 ); SetMaterial( 'evd4_spl', 1, "" , 255 ,255,255,255 ); SetMaterial( 'evd4_spl', 2, "" , 255 ,255,255,255 ); SetMaterial( 'evd4_spl', 3, "" , 0 ,255,255,255 ); SetPos( 'evd4_spl', 0 , evd_x4 , evd_y ); SetDim( 'evd4_spl', 0 , evd_dx , evd_dy); SetPos( 'evd4_spl', 1 , evd_x4 , evd_y ); SetDim( 'evd4_spl', 1 , evd_dx , evd_dy); SetPos( 'evd4_spl', 2 , evd_x4 , evd_y ); SetDim( 'evd4_spl', 2 , evd_dx , evd_dy); SetPos( 'evd4_spl', 3 , evd_x4 , evd_y ); SetDim( 'evd4_spl', 3 , evd_dx , evd_dy); SetState( 'evd4_spl', 3 ); SetSel('evd4_spl', _function_select_evd ); SetPush('evd4_spl', _function_accept_evd ); SetSndSelect( 'evd4_spl', _sound_select_evd ); SetSndPush( 'evd4_spl', _sound_accept_evd ); end function evd5_spl() SetMaterial( 'evd5_spl', 0, "" , 255 ,255,255,255 ); SetMaterial( 'evd5_spl', 1, "" , 255 ,255,255,255 ); SetMaterial( 'evd5_spl', 2, "" , 255 ,255,255,255 ); SetMaterial( 'evd5_spl', 3, "" , 0 ,255,255,255 ); SetPos( 'evd5_spl', 0 , evd_x5 , evd_y ); SetDim( 'evd5_spl', 0 , evd_dx , evd_dy); SetPos( 'evd5_spl', 1 , evd_x5 , evd_y ); SetDim( 'evd5_spl', 1 , evd_dx , evd_dy); SetPos( 'evd5_spl', 2 , evd_x5 , evd_y ); SetDim( 'evd5_spl', 2 , evd_dx , evd_dy); SetPos( 'evd5_spl', 3 , evd_x5 , evd_y ); SetDim( 'evd5_spl', 3 , evd_dx , evd_dy); SetState( 'evd5_spl', 3 ); SetSel('evd5_spl', _function_select_evd ); SetPush('evd5_spl', _function_accept_evd ); SetSndSelect( 'evd5_spl', _sound_select_evd ); SetSndPush( 'evd5_spl', _sound_accept_evd ); end function evd6_spl() SetMaterial( 'evd6_spl', 0, "" , 255 ,255,255,255 ); SetMaterial( 'evd6_spl', 1, "" , 255 ,255,255,255 ); SetMaterial( 'evd6_spl', 2, "" , 255 ,255,255,255 ); SetMaterial( 'evd6_spl', 3, "" , 0 ,255,255,255 ); SetPos( 'evd6_spl', 0 , evd_x6 , evd_y ); SetDim( 'evd6_spl', 0 , evd_dx , evd_dy); SetPos( 'evd6_spl', 1 , evd_x6 , evd_y ); SetDim( 'evd6_spl', 1 , evd_dx , evd_dy); SetPos( 'evd6_spl', 2 , evd_x6 , evd_y ); SetDim( 'evd6_spl', 2 , evd_dx , evd_dy); SetPos( 'evd6_spl', 3 , evd_x6 , evd_y ); SetDim( 'evd6_spl', 3 , evd_dx , evd_dy); SetState( 'evd6_spl', 3 ); SetSel('evd6_spl', _function_select_evd ); SetPush('evd6_spl', _function_accept_evd ); SetSndSelect( 'evd6_spl', _sound_select_evd ); SetSndPush( 'evd6_spl', _sound_accept_evd ); end function evd7_spl() SetMaterial( 'evd7_spl', 0, "" , 255 ,255,255,255 ); SetMaterial( 'evd7_spl', 1, "" , 255 ,255,255,255 ); SetMaterial( 'evd7_spl', 2, "" , 255 ,255,255,255 ); SetMaterial( 'evd7_spl', 3, "" , 0 ,255,255,255 ); SetPos( 'evd7_spl', 0 , evd_x7 , evd_y ); SetDim( 'evd7_spl', 0 , evd_dx , evd_dy); SetPos( 'evd7_spl', 1 , evd_x7 , evd_y ); SetDim( 'evd7_spl', 1 , evd_dx , evd_dy); SetPos( 'evd7_spl', 2 , evd_x7 , evd_y ); SetDim( 'evd7_spl', 2 , evd_dx , evd_dy); SetPos( 'evd7_spl', 3 , evd_x7 , evd_y ); SetDim( 'evd7_spl', 3 , evd_dx , evd_dy); SetState( 'evd7_spl', 3 ); SetSel('evd7_spl', _function_select_evd ); SetPush('evd7_spl', _function_accept_evd ); SetSndSelect( 'evd7_spl', _sound_select_evd ); SetSndPush( 'evd7_spl', _sound_accept_evd ); end function evd8_spl() SetMaterial( 'evd8_spl', 0, "" , 255 ,255,255,255 ); SetMaterial( 'evd8_spl', 1, "" , 255 ,255,255,255 ); SetMaterial( 'evd8_spl', 2, "" , 255 ,255,255,255 ); SetMaterial( 'evd8_spl', 3, "" , 0 ,255,255,255 ); SetPos( 'evd8_spl', 0 , evd_x8 , evd_y ); SetDim( 'evd8_spl', 0 , evd_dx , evd_dy); SetPos( 'evd8_spl', 1 , evd_x8 , evd_y ); SetDim( 'evd8_spl', 1 , evd_dx , evd_dy); SetPos( 'evd8_spl', 2 , evd_x8 , evd_y ); SetDim( 'evd8_spl', 2 , evd_dx , evd_dy); SetPos( 'evd8_spl', 3 , evd_x8 , evd_y ); SetDim( 'evd8_spl', 3 , evd_dx , evd_dy); SetState( 'evd8_spl', 3 ); SetSel('evd8_spl', _function_select_evd ); SetPush('evd8_spl', _function_accept_evd ); SetSndSelect( 'evd8_spl', _sound_select_evd ); SetSndPush( 'evd8_spl', _sound_accept_evd ); end function evd9_spl() SetMaterial( 'evd9_spl', 0, "" , 255 ,255,255,255 ); SetMaterial( 'evd9_spl', 1, "" , 255 ,255,255,255 ); SetMaterial( 'evd9_spl', 2, "" , 255 ,255,255,255 ); SetMaterial( 'evd9_spl', 3, "" , 0 ,255,255,255 ); SetPos( 'evd9_spl', 0 , evd_x9 , evd_y ); SetDim( 'evd9_spl', 0 , evd_dx , evd_dy); SetPos( 'evd9_spl', 1 , evd_x9 , evd_y ); SetDim( 'evd9_spl', 1 , evd_dx , evd_dy); SetPos( 'evd9_spl', 2 , evd_x9 , evd_y ); SetDim( 'evd9_spl', 2 , evd_dx , evd_dy); SetPos( 'evd9_spl', 3 , evd_x9 , evd_y ); SetDim( 'evd9_spl', 3 , evd_dx , evd_dy); SetState( 'evd9_spl', 3 ); SetSel('evd9_spl', _function_select_evd ); SetPush('evd9_spl', _function_accept_evd ); SetSndSelect( 'evd9_spl', _sound_select_evd ); SetSndPush( 'evd9_spl', _sound_accept_evd ); end function spl_back() SetMaterial( "spl_back" , 0 , _cp_common_back , 255 , 255 , 255 , 255 ); SetPos( "spl_back" , 0 , 94 , 398 ); SetDim( "spl_back" , 0 , _dec_but_dx , _dec_but_dy ); SetTxt( "spl_back" , _dec_but_font_no, 5 , "back" ); SetFontScale('spl_back' , _fontscale_dec_buttons); SetTextColor( "spl_back", _dec_bt_alpha , _dec_bt_r, _dec_bt_g, _dec_bt_b ); SetTextPosition( 'spl_back', _back_bt_offset_x ,_back_bt_offset_y , _back_bt_dx, _back_bt_dy ); end function spl_y() SetMaterial( "spl_y" , 0 , _cp_common_y , 255 , 255 , 255 , 255 ); SetPos( "spl_y" , 0 , 207 , 398 ); SetDim( "spl_y" , 0 , _dec_but_dx , _dec_but_dy ); SetTxt( "spl_y" , _dec_but_font_no, 4 , "Lab_Help" ); SetFontScale('spl_y' , _fontscale_dec_buttons); SetTextColor( "spl_y", _dec_bt_alpha , _dec_bt_r, _dec_bt_g, _dec_bt_b ); SetTextPosition( 'spl_y', _y_bt_offset_x ,_y_bt_offset_y , _y_bt_dx, _y_bt_dy ); end function spl_acc() SetMaterial( "spl_acc" , 0 , _cp_common_acc , 255 , 255 , 255 , 255 ); SetPos( "spl_acc" , 0 , 440 , 398 ); SetDim( "spl_acc" , 0 , _dec_but_dx , _dec_but_dy ); SetTxt( "spl_acc" , _dec_but_font_no, 5 , "TEXT0185" ); SetFontScale('spl_acc' , _fontscale_dec_buttons); SetTextColor( "spl_acc", _dec_bt_alpha , _dec_bt_r, _dec_bt_g, _dec_bt_b ); SetTextPosition( 'spl_acc', _acc_bt_offset_x ,_acc_bt_offset_y , _acc_bt_dx, _acc_bt_dy ); end