-- script for Area computer compare -- variables for samples : sample_x1 = 82 sample_y = 349 sample_x2 = 131 sample_x3 = 180 sample_x4 = 228 sample_x5 = 277 sample_dx =48 sample_dy =48 _sound_select_sample="Highlight" _sound_accept_sample="accept" _function_select_sample ='ComputerSampleSelect' _function_accept_sample ='ComputerSampleAction' -- 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 ='ComputerEvidenceSelect' _function_accept_evd ='ComputerEvidenceAction' --middle buttons : middle_pos_y = 319 middle_pos_x1 = 160 middle_pos_x2 = 266 middle_pos_x3 = 400 middle_dx = 128 middle_dy = 32 _function_select_search_left="ComputerSearchLeftSelect" _function_accept_search_left="ComputerSearchLeftAccept" _sound_select_search_left="Highlight" _sound_accept_search_left="accept" _function_select_search_right="ComputerSearchRightSelect" _function_accept_search_right="ComputerSearchRightAccept" _sound_select_search_right="Highlight" _sound_accept_search_right="accept" _function_select_confirm="ComputerConfirmSelect" _function_accept_confirm="ComputerConfirmAccept" _sound_select_confirm="Highlight" _sound_accept_confirm="accept" _file_computer_select_bg1="Menu\\MenuTextures\\Lab\\LabComp_common\\bg1.tga" _file_computer_select_bg2="Menu\\MenuTextures\\Lab\\LabComp_common\\bg2.tga" _file_computer_select_bg3="Menu\\MenuTextures\\Lab\\LabComputer\\bg3.dds" _file_computer_select_bg4="Menu\\MenuTextures\\Lab\\LabComputer\\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_computer_search_sel="Menu\\MenuTextures\\Lab\\LabComputer\\search_on.dds" _file_computer_search="Menu\\MenuTextures\\Lab\\LabComputer\\search_off.dds" _file_computer_confirm_sel="Menu\\MenuTextures\\Lab\\LabComputer\\confirm_on.dds" _file_computer_confirm="Menu\\MenuTextures\\Lab\\LabComputer\\confirm.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=200 _push_text_g_sel=200 _push_text_b_sel=255 function computer_comp_lab() SetMaterial( 'computer_comp_lab', 0 , _file_computer_select_bg3 , 255,255,255,255 ); SetMaterial( 'computer_comp_lab', 1 , _file_computer_select_bg3 , 255,255,255,255 ); SetPos( 'computer_comp_lab',0 , 0 , 105 ); SetDim( 'computer_comp_lab',0 , 512, 512 ); SetPos( 'computer_comp_lab',1 , 0 , 105 ); SetDim( 'computer_comp_lab',1 , 512, 512 ); -- backgrounds : AddStaticObject( 'computer_comp_lab' , "computer_comp_bgrd1" ); AddStaticObject( 'computer_comp_lab' , "computer_comp_bgrd2" ); AddStaticObject( 'computer_comp_lab' , "computer_comp_bgrd4" ); AddStaticObject( 'computer_comp_lab' , "computer_comp_bgrd5" ); AddStaticObject( 'computer_comp_lab' , "computer_comp_bgrd6" ); AddStaticObject( 'computer_comp_lab' , "cc_back" ); AddStaticObject( 'computer_comp_lab' , "cc_acc" ); AddStaticObject( 'computer_comp_lab' , "cc_y" ); AddStaticObject( 'computer_comp_lab' , "comp_lab_hint" ); AddStaticObject( 'computer_comp_lab' , "comp_lab_s_hint" ); AddStaticObject( 'computer_comp_lab' , "computer_comp_title" ); AddStaticObject( 'computer_comp_lab' , 'computer_right_pict'); AddStaticObject( 'computer_comp_lab' , 'computer_left_pict'); -- Buttons : AddPushButton( 'computer_comp_lab' , "search_left_comp" ); AddPushButton( 'computer_comp_lab' , "search_right_comp" ); AddPushButton( 'computer_comp_lab' , "confirm_comp" ); AddPushButton( 'computer_comp_lab' , "evd1_comp" ); AddPushButton( 'computer_comp_lab' , "evd2_comp" ); AddPushButton( 'computer_comp_lab' , "evd3_comp" ); AddPushButton( 'computer_comp_lab' , "evd4_comp" ); AddPushButton( 'computer_comp_lab' , "evd5_comp" ); AddPushButton( 'computer_comp_lab' , "evd6_comp" ); AddPushButton( 'computer_comp_lab' , "evd7_comp" ); AddPushButton( 'computer_comp_lab' , "evd8_comp" ); AddPushButton( 'computer_comp_lab' , "evd9_comp" ); AddPushButton( 'computer_comp_lab' , "sample1_comp" ); AddPushButton( 'computer_comp_lab' , "sample2_comp" ); AddPushButton( 'computer_comp_lab' , "sample3_comp" ); AddPushButton( 'computer_comp_lab' , "sample4_comp" ); AddPushButton( 'computer_comp_lab' , "sample5_comp" ); AddStaticObject( 'computer_comp_lab' , "evd_frame_comp" ); AddStaticObject( 'computer_comp_lab' , "sample_frame_comp" ); AreaAddHelpLine( "computer_comp_lab" , "Lab_Generic_Help" ); GUISetVisible ("computer_comp_lab" , 0 ); end function comp_lab_hint() SetMaterial ( "comp_lab_hint" , 0, "" , 0, 0 ,0, 0); SetPos ( "comp_lab_hint" , 0, 83 , 161 ); SetDim( "comp_lab_hint" , 0, 400 , 24 ); SetTxt( "comp_lab_hint" , 1 , 4 , "" ); SetFontScale( "comp_lab_hint" , "0.66" ); SetTextPosition( "comp_lab_hint" , 0 , 2 , 473 , 18 ); SetTextColor("comp_lab_hint" , 255 , 255 ,255 ,180); end function comp_lab_s_hint() SetMaterial ( "comp_lab_s_hint" , 0, "" , 0, 0 ,0, 0); SetPos ( "comp_lab_s_hint" , 0, 336 , 357 ); SetDim( "comp_lab_s_hint" , 0, 222 , 18 ); SetTxt( "comp_lab_s_hint" , 1 , 4 , "" ); SetFontScale( "comp_lab_s_hint" , "0.66" ); SetTextPosition( "comp_lab_s_hint" , 0 , 2 , 473 , 18 ); SetTextColor("comp_lab_s_hint" , 255 , 255 ,255 ,180); end -- cadru evidente si samples selectate: function evd_frame_comp() SetMaterial ( "evd_frame_comp" , 0, _file_texture_frame , 255, 255 ,255, 255); SetMaterial ( "evd_frame_comp" , 1, "" , 0 , 255 ,255, 255); SetDim( "evd_frame_comp" , 0, 64 ,64 ); SetDim( "evd_frame_comp" , 1, 64 ,64 ); end function sample_frame_comp() SetMaterial ( "sample_frame_comp" , 0, _file_texture_frame , 255, 255 ,255, 255); SetMaterial ( "sample_frame_comp" , 1, "" , 0 , 255 ,255, 255); SetDim( "sample_frame_comp" , 0, 64 ,64 ); SetDim( "sample_frame_comp" , 1, 64 ,64 ); end -- backgrounds : function computer_comp_bgrd1() SetMaterial( 'computer_comp_bgrd1', 0, _file_computer_select_bg1 , 255,255,255,255 ); SetPos( 'computer_comp_bgrd1', 0, 0 , 1 ); SetDim( 'computer_comp_bgrd1', 0, 512 , 128 ); end function computer_comp_bgrd2() SetMaterial( 'computer_comp_bgrd2', 0, _file_computer_select_bg2 , 255,255,255,255 ); SetPos( 'computer_comp_bgrd2', 0, 512 , 1 ); SetDim( 'computer_comp_bgrd2', 0, 128 , 128 ); end function computer_comp_bgrd4() SetMaterial( 'computer_comp_bgrd4', 0, _file_computer_select_bg4 , 255,255,255,255 ); SetPos( 'computer_comp_bgrd4', 0, 512 , 105 ); SetDim( 'computer_comp_bgrd4', 0, 128 , 512 ); end function computer_comp_bgrd5() SetMaterial( 'computer_comp_bgrd5', 0, _file_computer_select_bg5 , 255,255,255,255 ); SetPos( 'computer_comp_bgrd5', 0, 0 , 406 ); SetDim( 'computer_comp_bgrd5', 0, 512 , 128 ); end function computer_comp_bgrd6() SetMaterial( 'computer_comp_bgrd6', 0, _file_computer_select_bg6 , 255,255,255,255 ); SetPos( 'computer_comp_bgrd6', 0, 512 , 406 ); SetDim( 'computer_comp_bgrd6', 0, 128 , 128 ); end function cc_back() SetMaterial( "cc_back" , 0 , _cp_common_back , 255 , 255 , 255 , 255 ); SetPos( "cc_back" , 0 , 94 , 398 ); SetDim( "cc_back" , 0 , _dec_but_dx , _dec_but_dy ); SetTxt( "cc_back" , _dec_but_font_no, 5 , "back" ); SetFontScale('cc_back' , _fontscale_dec_buttons); SetTextColor( "cc_back", _dec_bt_alpha , _dec_bt_r, _dec_bt_g, _dec_bt_b ); SetTextPosition( 'cc_back', _back_bt_offset_x ,_back_bt_offset_y , _back_bt_dx, _back_bt_dy ); end function cc_y() SetMaterial( "cc_y" , 0 , _cp_common_y , 255 , 255 , 255 , 255 ); SetPos( "cc_y" , 0 , 207 , 398 ); SetDim( "cc_y" , 0 , _dec_but_dx , _dec_but_dy ); SetTxt( "cc_y" , _dec_but_font_no, 4 , "Lab_Help" ); SetFontScale('cc_y' , _fontscale_dec_buttons); SetTextColor( "cc_y", _dec_bt_alpha , _dec_bt_r, _dec_bt_g, _dec_bt_b ); SetTextPosition( 'cc_y', _y_bt_offset_x ,_y_bt_offset_y , _y_bt_dx, _y_bt_dy ); end function cc_acc() SetMaterial( "cc_acc" , 0 , _cp_common_acc , 255 , 255 , 255 , 255 ); SetPos( "cc_acc" , 0 , 440 , 398 ); SetDim( "cc_acc" , 0 , _dec_but_dx , _dec_but_dy ); SetTxt( "cc_acc" , _dec_but_font_no, 5 , "TEXT0185" ); SetFontScale('cc_acc' , _fontscale_dec_buttons); SetTextColor( "cc_acc", _dec_bt_alpha , _dec_bt_r, _dec_bt_g, _dec_bt_b ); SetTextPosition( 'cc_acc', _acc_bt_offset_x ,_acc_bt_offset_y , _acc_bt_dx, _acc_bt_dy ); end function computer_comp_title() SetMaterial( 'computer_comp_title', 0, "" , 0 ,255,255,255 ); SetPos( 'computer_comp_title', 0, 72 , 77 ); SetDim( 'computer_comp_title', 0, 404 , 16 ); SetTxt( 'computer_comp_title', 1, 4 , "NULL" ); SetFontScale( 'computer_comp_title' , "0.8"); SetTextColor( 'computer_comp_title' , 255, 0 , 255 , 0 ); end -- pictures objects: function computer_left_pict() SetMaterial( 'computer_left_pict', 0, "" , 255 ,255,255,255 ); SetMaterial( 'computer_left_pict', 1, "" , 0 ,255,255,255 ) SetPos( 'computer_left_pict', 0, 102 , 205 ); SetDim( 'computer_left_pict', 0, 177 , 107 ); SetPos( 'computer_left_pict', 1, 102 , 205 ); SetDim( 'computer_left_pict', 1, 177 , 107 ); end function computer_right_pict() SetMaterial( 'computer_right_pict', 0, "" , 255 ,255,255,255 ); SetMaterial( 'computer_right_pict', 1, "" , 0 ,255,255,255 ) SetPos( 'computer_right_pict', 0, 367 , 205 ); SetDim( 'computer_right_pict', 0, 177 , 107 ); SetPos( 'computer_right_pict', 1, 367 , 205 ); SetDim( 'computer_right_pict', 1, 177 , 107 ); end -- middle buttons : Search (left) , Confirm , Search (right): function search_left_comp() SetMaterial( 'search_left_comp', 0, _file_computer_search , 255 ,255,255,255 ); SetMaterial( 'search_left_comp', 1, _file_computer_search_sel , 255 ,255,255,255 ); SetMaterial( 'search_left_comp', 2, _file_computer_search_sel , 255 ,255,255,255 ); SetMaterial( 'search_left_comp', 3, "" , 0 ,255,255,255 ); SetPos( 'search_left_comp', 0 , middle_pos_x1 , middle_pos_y ); SetDim( 'search_left_comp', 0 , middle_dx , middle_dy); SetPos( 'search_left_comp', 1 , middle_pos_x1 , middle_pos_y ); SetDim( 'search_left_comp', 1 , middle_dx , middle_dy); SetPos( 'search_left_comp', 2 , middle_pos_x1 , middle_pos_y ); SetDim( 'search_left_comp', 2 , middle_dx , middle_dy); SetPos( 'search_left_comp', 3 , middle_pos_x1 , middle_pos_y ); SetDim( 'search_left_comp', 3 , middle_dx , middle_dy); SetState( 'search_left_comp', 0 ); SetSel('search_left_comp', _function_select_search_left ); SetPush('search_left_comp', _function_accept_search_left ); SetSndSelect( 'search_left_comp', _sound_select_search_left ); SetSndPush( 'search_left_comp', _sound_accept_search_left ); SetTxt( 'search_left_comp', 1, 5 , "search" ); SetTextPosition('search_left_comp', 5 , 3 , 77 , 14 ); SetFontScale( 'search_left_comp', "0.75" ); SetTextColor('search_left_comp', _push_text_alpha_normal , _push_text_r_normal,_push_text_g_normal,_push_text_b_normal); SetTextColor('search_left_comp', _push_text_alpha_sel , _push_text_r_sel,_push_text_g_sel,_push_text_b_sel , 1 ); SetTextColor('search_left_comp', _push_text_alpha_normal , _push_text_r_normal,_push_text_g_normal,_push_text_b_normal ,2); SetNSEW('search_left_comp', "evd1_comp", "sample1_comp", "confirm_comp" , "NULL"); end function search_right_comp() SetMaterial( 'search_right_comp', 0, _file_computer_search , 255 ,255,255,255 ); SetMaterial( 'search_right_comp', 1, _file_computer_search_sel , 255 ,255,255,255 ); SetMaterial( 'search_right_comp', 2, _file_computer_search_sel , 255 ,255,255,255 ); SetMaterial( 'search_right_comp', 3, "" , 0 ,255,255,255 ); SetPos( 'search_right_comp', 0 , middle_pos_x3 , middle_pos_y ); SetDim( 'search_right_comp', 0 , middle_dx , middle_dy); SetPos( 'search_right_comp', 1 , middle_pos_x3 , middle_pos_y ); SetDim( 'search_right_comp', 1 , middle_dx , middle_dy); SetPos( 'search_right_comp', 2 , middle_pos_x3 , middle_pos_y ); SetDim( 'search_right_comp', 2 , middle_dx , middle_dy); SetPos( 'search_right_comp', 3 , middle_pos_x3 , middle_pos_y ); SetDim( 'search_right_comp', 3 , middle_dx , middle_dy); SetState( 'search_right_comp', 0 ); SetSel('search_right_comp', _function_select_search_right ); SetPush('search_right_comp', _function_accept_search_right ); SetSndSelect( 'search_right_comp', _sound_select_search_right ); SetSndPush( 'search_right_comp', _sound_accept_search_right ); SetTxt( 'search_right_comp', 1, 5 , "search" ); SetTextPosition('search_right_comp', 5 , 3 , 77 , 14 ); SetFontScale( 'search_right_comp', "0.75" ); SetTextColor('search_right_comp', _push_text_alpha_normal , _push_text_r_normal,_push_text_g_normal,_push_text_b_normal); SetTextColor('search_right_comp', _push_text_alpha_sel , _push_text_r_sel,_push_text_g_sel,_push_text_b_sel , 1 ); SetTextColor('search_right_comp', _push_text_alpha_normal , _push_text_r_normal,_push_text_g_normal,_push_text_b_normal ,2); SetNSEW('search_right_comp', "evd1_comp", "sample1_comp", "NULL" , "confirm_comp" ); end function confirm_comp() SetMaterial( 'confirm_comp', 0, _file_computer_confirm , 255 ,255,255,255 ); SetMaterial( 'confirm_comp', 1, _file_computer_confirm_sel , 255 ,255,255,255 ); SetMaterial( 'confirm_comp', 2, _file_computer_confirm_sel , 255 ,255,255,255 ); SetMaterial( 'confirm_comp', 3, "" , 0 ,255,255,255 ); SetPos( 'confirm_comp', 0 , middle_pos_x2 , middle_pos_y -2 ); SetDim( 'confirm_comp', 0 , middle_dx , middle_dy); SetPos( 'confirm_comp', 1 , middle_pos_x2 , middle_pos_y -2 ); SetDim( 'confirm_comp', 1 , middle_dx , middle_dy); SetPos( 'confirm_comp', 2 , middle_pos_x2 , middle_pos_y -2 ); SetDim( 'confirm_comp', 2 , middle_dx , middle_dy); SetPos( 'confirm_comp', 3 , middle_pos_x2 , middle_pos_y -2 ); SetDim( 'confirm_comp', 3 , middle_dx , middle_dy); SetState( 'confirm_comp', 1 ); SetSel('confirm_comp', _function_select_confirm ); SetPush('confirm_comp', _function_accept_confirm ); SetSndSelect( 'confirm_comp', _sound_select_confirm ); SetSndPush( 'confirm_comp', _sound_accept_confirm ); SetTxt( 'confirm_comp', 1, 5 , "Confirm" ); SetTextPosition('confirm_comp', 5 , 3 , 106 , 14 ); SetFontScale( 'confirm_comp', "0.75" ); SetTextColor('confirm_comp', _push_text_alpha_normal , _push_text_r_normal,_push_text_g_normal,_push_text_b_normal); SetTextColor('confirm_comp', _push_text_alpha_sel , _push_text_r_sel,_push_text_g_sel,_push_text_b_sel , 1 ); SetTextColor('confirm_comp', _push_text_alpha_normal , _push_text_r_normal,_push_text_g_normal,_push_text_b_normal ,2); SetNSEW('confirm_comp', "evd1_comp", "sample1_comp", "search_right_comp" , "search_left_comp" ); end -- Evidences PushButtons : function evd1_comp() SetMaterial( 'evd1_comp', 0, "" , 255 ,255,255,255 ); SetMaterial( 'evd1_comp', 1, "" , 255 ,255,255,255 ); SetMaterial( 'evd1_comp', 2, "" , 255 ,255,255,255 ); SetMaterial( 'evd1_comp', 3, "" , 0 ,255,255,255 ); SetPos( 'evd1_comp', 0 , evd_x1 , evd_y ); SetDim( 'evd1_comp', 0 , evd_dx , evd_dy); SetPos( 'evd1_comp', 1 , evd_x1 , evd_y ); SetDim( 'evd1_comp', 1 , evd_dx , evd_dy); SetPos( 'evd1_comp', 2 , evd_x1 , evd_y ); SetDim( 'evd1_comp', 2 , evd_dx , evd_dy); SetPos( 'evd1_comp', 3 , evd_x1 , evd_y ); SetDim( 'evd1_comp', 3 , evd_dx , evd_dy); SetState( 'evd1_comp', 3 ); SetSel('evd1_comp', _function_select_evd ); SetPush('evd1_comp', _function_accept_evd ); SetSndSelect( 'evd1_comp', _sound_select_evd ); SetSndPush( 'evd1_comp', _sound_accept_evd ); end function evd2_comp() SetMaterial( 'evd2_comp', 0, "" , 255 ,255,255,255 ); SetMaterial( 'evd2_comp', 1, "" , 255 ,255,255,255 ); SetMaterial( 'evd2_comp', 2, "" , 255 ,255,255,255 ); SetMaterial( 'evd2_comp', 3, "" , 0 ,255,255,255 ); SetPos( 'evd2_comp', 0 , evd_x2 , evd_y ); SetDim( 'evd2_comp', 0 , evd_dx , evd_dy); SetPos( 'evd2_comp', 1 , evd_x2 , evd_y ); SetDim( 'evd2_comp', 1 , evd_dx , evd_dy); SetPos( 'evd2_comp', 2 , evd_x2 , evd_y ); SetDim( 'evd2_comp', 2 , evd_dx , evd_dy); SetPos( 'evd2_comp', 3 , evd_x2 , evd_y ); SetDim( 'evd2_comp', 3 , evd_dx , evd_dy); SetState( 'evd2_comp', 3 ); SetSel('evd2_comp', _function_select_evd ); SetPush('evd2_comp', _function_accept_evd ); SetSndSelect( 'evd2_comp', _sound_select_evd ); SetSndPush( 'evd2_comp', _sound_accept_evd ); end function evd3_comp() SetMaterial( 'evd3_comp', 0, "" , 255 ,255,255,255 ); SetMaterial( 'evd3_comp', 1, "" , 255 ,255,255,255 ); SetMaterial( 'evd3_comp', 2, "" , 255 ,255,255,255 ); SetMaterial( 'evd3_comp', 3, "" , 0 ,255,255,255 ); SetPos( 'evd3_comp', 0 , evd_x3 , evd_y ); SetDim( 'evd3_comp', 0 , evd_dx , evd_dy); SetPos( 'evd3_comp', 1 , evd_x3 , evd_y ); SetDim( 'evd3_comp', 1 , evd_dx , evd_dy); SetPos( 'evd3_comp', 2 , evd_x3 , evd_y ); SetDim( 'evd3_comp', 2 , evd_dx , evd_dy); SetPos( 'evd3_comp', 3 , evd_x3 , evd_y ); SetDim( 'evd3_comp', 3 , evd_dx , evd_dy); SetState( 'evd3_comp', 3 ); SetSel('evd3_comp', _function_select_evd ); SetPush('evd3_comp', _function_accept_evd ); SetSndSelect( 'evd3_comp', _sound_select_evd ); SetSndPush( 'evd3_comp', _sound_accept_evd ); end function evd4_comp() SetMaterial( 'evd4_comp', 0, "" , 255 ,255,255,255 ); SetMaterial( 'evd4_comp', 1, "" , 255 ,255,255,255 ); SetMaterial( 'evd4_comp', 2, "" , 255 ,255,255,255 ); SetMaterial( 'evd4_comp', 3, "" , 0 ,255,255,255 ); SetPos( 'evd4_comp', 0 , evd_x4 , evd_y ); SetDim( 'evd4_comp', 0 , evd_dx , evd_dy); SetPos( 'evd4_comp', 1 , evd_x4 , evd_y ); SetDim( 'evd4_comp', 1 , evd_dx , evd_dy); SetPos( 'evd4_comp', 2 , evd_x4 , evd_y ); SetDim( 'evd4_comp', 2 , evd_dx , evd_dy); SetPos( 'evd4_comp', 3 , evd_x4 , evd_y ); SetDim( 'evd4_comp', 3 , evd_dx , evd_dy); SetState( 'evd4_comp', 3 ); SetSel('evd4_comp', _function_select_evd ); SetPush('evd4_comp', _function_accept_evd ); SetSndSelect( 'evd4_comp', _sound_select_evd ); SetSndPush( 'evd4_comp', _sound_accept_evd ); end function evd5_comp() SetMaterial( 'evd5_comp', 0, "" , 255 ,255,255,255 ); SetMaterial( 'evd5_comp', 1, "" , 255 ,255,255,255 ); SetMaterial( 'evd5_comp', 2, "" , 255 ,255,255,255 ); SetMaterial( 'evd5_comp', 3, "" , 0 ,255,255,255 ); SetPos( 'evd5_comp', 0 , evd_x5 , evd_y ); SetDim( 'evd5_comp', 0 , evd_dx , evd_dy); SetPos( 'evd5_comp', 1 , evd_x5 , evd_y ); SetDim( 'evd5_comp', 1 , evd_dx , evd_dy); SetPos( 'evd5_comp', 2 , evd_x5 , evd_y ); SetDim( 'evd5_comp', 2 , evd_dx , evd_dy); SetPos( 'evd5_comp', 3 , evd_x5 , evd_y ); SetDim( 'evd5_comp', 3 , evd_dx , evd_dy); SetState( 'evd5_comp', 3 ); SetSel('evd5_comp', _function_select_evd ); SetPush('evd5_comp', _function_accept_evd ); SetSndSelect( 'evd5_comp', _sound_select_evd ); SetSndPush( 'evd5_comp', _sound_accept_evd ); end function evd6_comp() SetMaterial( 'evd6_comp', 0, "" , 255 ,255,255,255 ); SetMaterial( 'evd6_comp', 1, "" , 255 ,255,255,255 ); SetMaterial( 'evd6_comp', 2, "" , 255 ,255,255,255 ); SetMaterial( 'evd6_comp', 3, "" , 0 ,255,255,255 ); SetPos( 'evd6_comp', 0 , evd_x6 , evd_y ); SetDim( 'evd6_comp', 0 , evd_dx , evd_dy); SetPos( 'evd6_comp', 1 , evd_x6 , evd_y ); SetDim( 'evd6_comp', 1 , evd_dx , evd_dy); SetPos( 'evd6_comp', 2 , evd_x6 , evd_y ); SetDim( 'evd6_comp', 2 , evd_dx , evd_dy); SetPos( 'evd6_comp', 3 , evd_x6 , evd_y ); SetDim( 'evd6_comp', 3 , evd_dx , evd_dy); SetState( 'evd6_comp', 3 ); SetSel('evd6_comp', _function_select_evd ); SetPush('evd6_comp', _function_accept_evd ); SetSndSelect( 'evd6_comp', _sound_select_evd ); SetSndPush( 'evd6_comp', _sound_accept_evd ); end function evd7_comp() SetMaterial( 'evd7_comp', 0, "" , 255 ,255,255,255 ); SetMaterial( 'evd7_comp', 1, "" , 255 ,255,255,255 ); SetMaterial( 'evd7_comp', 2, "" , 255 ,255,255,255 ); SetMaterial( 'evd7_comp', 3, "" , 0 ,255,255,255 ); SetPos( 'evd7_comp', 0 , evd_x7 , evd_y ); SetDim( 'evd7_comp', 0 , evd_dx , evd_dy); SetPos( 'evd7_comp', 1 , evd_x7 , evd_y ); SetDim( 'evd7_comp', 1 , evd_dx , evd_dy); SetPos( 'evd7_comp', 2 , evd_x7 , evd_y ); SetDim( 'evd7_comp', 2 , evd_dx , evd_dy); SetPos( 'evd7_comp', 3 , evd_x7 , evd_y ); SetDim( 'evd7_comp', 3 , evd_dx , evd_dy); SetState( 'evd7_comp', 3 ); SetSel('evd7_comp', _function_select_evd ); SetPush('evd7_comp', _function_accept_evd ); SetSndSelect( 'evd7_comp', _sound_select_evd ); SetSndPush( 'evd7_comp', _sound_accept_evd ); end function evd8_comp() SetMaterial( 'evd8_comp', 0, "" , 255 ,255,255,255 ); SetMaterial( 'evd8_comp', 1, "" , 255 ,255,255,255 ); SetMaterial( 'evd8_comp', 2, "" , 255 ,255,255,255 ); SetMaterial( 'evd8_comp', 3, "" , 0 ,255,255,255 ); SetPos( 'evd8_comp', 0 , evd_x8 , evd_y ); SetDim( 'evd8_comp', 0 , evd_dx , evd_dy); SetPos( 'evd8_comp', 1 , evd_x8 , evd_y ); SetDim( 'evd8_comp', 1 , evd_dx , evd_dy); SetPos( 'evd8_comp', 2 , evd_x8 , evd_y ); SetDim( 'evd8_comp', 2 , evd_dx , evd_dy); SetPos( 'evd8_comp', 3 , evd_x8 , evd_y ); SetDim( 'evd8_comp', 3 , evd_dx , evd_dy); SetState( 'evd8_comp', 3 ); SetSel('evd8_comp', _function_select_evd ); SetPush('evd8_comp', _function_accept_evd ); SetSndSelect( 'evd8_comp', _sound_select_evd ); SetSndPush( 'evd8_comp', _sound_accept_evd ); end function evd9_comp() SetMaterial( 'evd9_comp', 0, "" , 255 ,255,255,255 ); SetMaterial( 'evd9_comp', 1, "" , 255 ,255,255,255 ); SetMaterial( 'evd9_comp', 2, "" , 255 ,255,255,255 ); SetMaterial( 'evd9_comp', 3, "" , 0 ,255,255,255 ); SetPos( 'evd9_comp', 0 , evd_x9 , evd_y ); SetDim( 'evd9_comp', 0 , evd_dx , evd_dy); SetPos( 'evd9_comp', 1 , evd_x9 , evd_y ); SetDim( 'evd9_comp', 1 , evd_dx , evd_dy); SetPos( 'evd9_comp', 2 , evd_x9 , evd_y ); SetDim( 'evd9_comp', 2 , evd_dx , evd_dy); SetPos( 'evd9_comp', 3 , evd_x9 , evd_y ); SetDim( 'evd9_comp', 3 , evd_dx , evd_dy); SetState( 'evd9_comp', 3 ); SetSel('evd9_comp', _function_select_evd ); SetPush('evd9_comp', _function_accept_evd ); SetSndSelect( 'evd9_comp', _sound_select_evd ); SetSndPush( 'evd9_comp', _sound_accept_evd ); end -- samples PushButtons: function sample1_comp() SetMaterial( 'sample1_comp', 0, "" , 255 ,255,255,255 ); SetMaterial( 'sample1_comp', 1, "" , 255 ,255,255,255 ); SetMaterial( 'sample1_comp', 2, "" , 255 ,255,255,255 ); SetMaterial( 'sample1_comp', 3, "" , 0 ,255,255,255 ); SetPos( 'sample1_comp', 0 , sample_x1 , sample_y ); SetDim( 'sample1_comp', 0 , sample_dx , sample_dy); SetPos( 'sample1_comp', 1 , sample_x1 , sample_y ); SetDim( 'sample1_comp', 1 , sample_dx , sample_dy); SetPos( 'sample1_comp', 2 , sample_x1 , sample_y ); SetDim( 'sample1_comp', 2 , sample_dx , sample_dy); SetPos( 'sample1_comp', 3 , sample_x1 , sample_y ); SetDim( 'sample1_comp', 3 , sample_dx , sample_dy); SetState( 'sample1_comp', 3 ); SetSel('sample1_comp', _function_select_sample ); SetPush('sample1_comp', _function_accept_sample); SetSndSelect( 'sample1_comp', _sound_select_sample ); SetSndPush( 'sample1_comp', _sound_accept_sample ); end function sample2_comp() SetMaterial( 'sample2_comp', 0, "" , 255 ,255,255,255 ); SetMaterial( 'sample2_comp', 1, "" , 255 ,255,255,255 ); SetMaterial( 'sample2_comp', 2, "" , 255 ,255,255,255 ); SetMaterial( 'sample2_comp', 3, "" , 0 ,255,255,255 ); SetPos( 'sample2_comp', 0 , sample_x2 , sample_y ); SetDim( 'sample2_comp', 0 , sample_dx , sample_dy); SetPos( 'sample2_comp', 1 , sample_x2 , sample_y ); SetDim( 'sample2_comp', 1 , sample_dx , sample_dy); SetPos( 'sample2_comp', 2 , sample_x2 , sample_y ); SetDim( 'sample2_comp', 2 , sample_dx , sample_dy); SetPos( 'sample2_comp', 3 , sample_x2 , sample_y ); SetDim( 'sample2_comp', 3 , sample_dx , sample_dy); SetState( 'sample2_comp', 3 ); SetSel('sample2_comp', _function_select_sample ); SetPush('sample2_comp', _function_accept_sample); SetSndSelect( 'sample2_comp', _sound_select_sample ); SetSndPush( 'sample2_comp', _sound_accept_sample ); end function sample3_comp() SetMaterial( 'sample3_comp', 0, "" , 255 ,255,255,255 ); SetMaterial( 'sample3_comp', 1, "" , 255 ,255,255,255 ); SetMaterial( 'sample3_comp', 2, "" , 255 ,255,255,255 ); SetMaterial( 'sample3_comp', 3, "" , 0 ,255,255,255 ); SetPos( 'sample3_comp', 0 , sample_x3 , sample_y ); SetDim( 'sample3_comp', 0 , sample_dx , sample_dy); SetPos( 'sample3_comp', 1 , sample_x3 , sample_y ); SetDim( 'sample3_comp', 1 , sample_dx , sample_dy); SetPos( 'sample3_comp', 2 , sample_x3 , sample_y ); SetDim( 'sample3_comp', 2 , sample_dx , sample_dy); SetPos( 'sample3_comp', 3 , sample_x3 , sample_y ); SetDim( 'sample3_comp', 3 , sample_dx , sample_dy); SetState( 'sample3_comp', 3 ); SetSel('sample3_comp', _function_select_sample ); SetPush('sample3_comp', _function_accept_sample); SetSndSelect( 'sample3_comp', _sound_select_sample ); SetSndPush( 'sample3_comp', _sound_accept_sample ); end function sample4_comp() SetMaterial( 'sample4_comp', 0, "" , 255 ,255,255,255 ); SetMaterial( 'sample4_comp', 1, "" , 255 ,255,255,255 ); SetMaterial( 'sample4_comp', 2, "" , 255 ,255,255,255 ); SetMaterial( 'sample4_comp', 3, "" , 0 ,255,255,255 ); SetPos( 'sample4_comp', 0 , sample_x4 , sample_y ); SetDim( 'sample4_comp', 0 , sample_dx , sample_dy); SetPos( 'sample4_comp', 1 , sample_x4 , sample_y ); SetDim( 'sample4_comp', 1 , sample_dx , sample_dy); SetPos( 'sample4_comp', 2 , sample_x4 , sample_y ); SetDim( 'sample4_comp', 2 , sample_dx , sample_dy); SetPos( 'sample4_comp', 3 , sample_x4 , sample_y ); SetDim( 'sample4_comp', 3 , sample_dx , sample_dy); SetState( 'sample4_comp', 3 ); SetSel('sample4_comp', _function_select_sample ); SetPush('sample4_comp', _function_accept_sample); SetSndSelect( 'sample4_comp', _sound_select_sample ); SetSndPush( 'sample4_comp', _sound_accept_sample ); end function sample5_comp() SetMaterial( 'sample5_comp', 0, "" , 255 ,255,255,255 ); SetMaterial( 'sample5_comp', 1, "" , 255 ,255,255,255 ); SetMaterial( 'sample5_comp', 2, "" , 255 ,255,255,255 ); SetMaterial( 'sample5_comp', 3, "" , 0 ,255,255,255 ); SetPos( 'sample5_comp', 0 , sample_x5 , sample_y ); SetDim( 'sample5_comp', 0 , sample_dx , sample_dy); SetPos( 'sample5_comp', 1 , sample_x5 , sample_y ); SetDim( 'sample5_comp', 1 , sample_dx , sample_dy); SetPos( 'sample5_comp', 2 , sample_x5 , sample_y ); SetDim( 'sample5_comp', 2 , sample_dx , sample_dy); SetPos( 'sample5_comp', 3 , sample_x5 , sample_y ); SetDim( 'sample5_comp', 3 , sample_dx , sample_dy); SetState( 'sample5_comp', 3 ); SetSel('sample5_comp', _function_select_sample ); SetPush('sample5_comp', _function_accept_sample); SetSndSelect( 'sample5_comp', _sound_select_sample ); SetSndPush( 'sample5_comp', _sound_accept_sample ); end