-- Computer Area (NOT main) -> enter from computer select button_x = 191 button_y1 = 186 button_y2 = 224 button_y3 = 262 button_y4 = 300 text_offset_x= 10 text_offset_y=0 stat_offset_x=20 stat_offset_y=25 text_dx=100 text_dy=24 stat_dx=100 stat_dy=20 button_dx=512 button_dy=32 _function_accept_search_analysis="AcceptSearchAnalysis" _function_accept_webchat="AcceptWebChat" _function_accept_audioanalysis="AcceptAudioAnalysis" _function_accept_internet="AcceptInternet" _sound_select="Highlight" _sound_accept="accept" alpha_normal=0 alpha_sel=150 _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\\LabCompMainMeniu\\bg3.dds" _file_computer_select_bg4="Menu\\MenuTextures\\Lab\\LabCompMainMeniu\\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_bgrd_buton_sel="Menu\\MenuTextures\\Lab\\LabCompMainMeniu\\buton_on.dds" _file_computer_bgrd_buton_push="Menu\\MenuTextures\\Lab\\LabCompMainMeniu\\buton_on.dds" _file_computer_bgrd_buton_normal="Menu\\MenuTextures\\Lab\\LabCompMainMeniu\\buton_off.dds" _bt_color_a=255 _bt_color_r_normal=45 _bt_color_g_normal=200 _bt_color_b_normal=0 _bt_color_r_sel=10 _bt_color_g_sel=10 _bt_color_b_sel=10 _bt_color_r_push=10 _bt_color_g_push=10 _bt_color_b_push=10 _bt_font_normal=0 _bt_font_sel=0 _bt_font_push=0 _bt_align=0 _bt_scale_normal="0.9" _bt_scale_sel="0.87" _bt_scale_push="0.88" function computer_main() SetMaterial( 'computer_main' , 0 , _file_computer_select_bg3 , 255,180,180,180 ); SetMaterial( 'computer_main' , 1 , _file_computer_select_bg3 , 255,180,180,180 ); SetPos( 'computer_main',0 , 0, 105 ); SetDim( 'computer_main',0 , 512, 512 ); SetPos( 'computer_main',1 , 0, 105 ); SetDim( 'computer_main',1 , 512, 512 ); AddStaticObject( "computer_main", "computer_main_bgrd01" ); AddStaticObject( "computer_main", "computer_main_bgrd02" ); AddStaticObject( "computer_main", "computer_main_bgrd04" ); AddStaticObject( "computer_main", "computer_main_bgrd05" ); AddStaticObject( "computer_main", "computer_main_bgrd06" ); AddStaticObject( "computer_main" , "computer_main_title_text" ); AddPushButton( "computer_main" , "computer_search_analyze" ); AddPushButton( "computer_main" , "computer_webchat" ); AddPushButton( "computer_main" , "computer_audioanalysis" ); AddPushButton( "computer_main" , "computer_internet" ); AddStaticObject( "computer_main" , "cm_acc" ); AddStaticObject( "computer_main" , "cm_back" ); AddStaticObject( "computer_main" , "cm_y" ); GUISetVisible('computer_main', 0 ); SetState('computer_main', 0 ); end function computer_main_bgrd01() SetMaterial( 'computer_main_bgrd01', 0, _file_computer_select_bg1 , 255,255,255,255 ); SetPos( 'computer_main_bgrd01', 0, 0, 0 ); SetDim( 'computer_main_bgrd01', 0, 512 , 128 ); end function computer_main_bgrd02() SetMaterial( 'computer_main_bgrd02', 0, _file_computer_select_bg2 , 255,255,255,255 ); SetPos( 'computer_main_bgrd02', 0, 512, 0 ); SetDim( 'computer_main_bgrd02', 0, 128 , 128 ); end function computer_main_bgrd04() SetMaterial( 'computer_main_bgrd04', 0, _file_computer_select_bg4 , 255,255,255,255 ); SetPos( 'computer_main_bgrd04', 0, 512, 105 ); SetDim( 'computer_main_bgrd04', 0, 128 , 512 ); end function computer_main_bgrd05() SetMaterial( 'computer_main_bgrd05', 0, _file_computer_select_bg5 , 255,255,255,255 ); SetPos( 'computer_main_bgrd05', 0, 0, 406 ); SetDim( 'computer_main_bgrd05', 0, 512 , 128 ); end function computer_main_bgrd06() SetMaterial( 'computer_main_bgrd06', 0, _file_computer_select_bg6 , 255,255,255,255 ); SetPos( 'computer_main_bgrd06', 0, 512, 406 ); SetDim( 'computer_main_bgrd06', 0, 128 , 128 ); end function computer_main_title_text() SetMaterial( 'computer_main_title_text', 0, "" , 0,255,255,255 ); SetPos( 'computer_main_title_text', 0, 73 , 78 ); SetDim( 'computer_main_title_text', 0, 403 , 16 ); SetTxt( 'computer_main_title_text', 0, 4 , "Lab_Title_Computer_Main_Menu" ); SetFontScale ( "computer_main_title_text" , "0.8" ); SetTextColor( "computer_main_title_text", 255, 255, 255 , 0); end function computer_search_analyze() SetMaterial( 'computer_search_analyze', 0, _file_computer_bgrd_buton_normal , alpha_normal ,255,255,255 ); SetMaterial( 'computer_search_analyze', 1, _file_computer_bgrd_buton_sel , alpha_sel ,255,255,255 ); SetMaterial( 'computer_search_analyze', 2, _file_computer_bgrd_buton_push , alpha_sel ,255,255,255 ); SetMaterial( 'computer_search_analyze', 3, _file_computer_bgrd_buton_normal , alpha_normal ,255,255,255 ); SetPos( 'computer_search_analyze', 0 , button_x , button_y1 ); SetDim( 'computer_search_analyze', 0 , button_dx, button_dy ); SetPos( 'computer_search_analyze', 1 , button_x , button_y1 ); SetDim( 'computer_search_analyze', 1 , button_dx, button_dy ); SetPos( 'computer_search_analyze', 2 , button_x , button_y1 ); SetDim( 'computer_search_analyze', 2 , button_dx, button_dy ); SetPos( 'computer_search_analyze', 3 , button_x , button_y1 ); SetDim( 'computer_search_analyze', 3 , button_dx, button_dy ); SetState( 'computer_search_analyze', 1 ); SetPush( 'computer_search_analyze', _function_accept_search_analysis ); SetNSEW( 'computer_search_analyze', 'NULL', 'computer_webchat', 'NULL', 'NULL' ); SetSndSelect( "computer_search_analyze" , _sound_select); SetSndPush( "computer_search_analyze" , _sound_accept); SetTxt( "computer_search_analyze", _bt_font_normal , _bt_align , "TEXT0095" ); SetTextColor( "computer_search_analyze" , _bt_color_a , _bt_color_r_normal , _bt_color_g_normal ,_bt_color_b_normal ); -- normal SetTextColor( "computer_search_analyze" , _bt_color_a , _bt_color_r_sel , _bt_color_g_sel ,_bt_color_b_sel , 1); -- selection SetTextColor( "computer_search_analyze" , _bt_color_a , _bt_color_r_push , _bt_color_g_push ,_bt_color_b_push , 2 ); -- push SetFontScale( "computer_search_analyze" , _bt_scale_normal ); SetFontScale( "computer_search_analyze" , _bt_scale_sel , 1 ); SetFontScale( "computer_search_analyze" , _bt_scale_push , 2 ); end function computer_webchat() SetMaterial( 'computer_webchat', 0, _file_computer_bgrd_buton_normal , alpha_normal ,255,255,255 ); SetMaterial( 'computer_webchat', 1, _file_computer_bgrd_buton_sel , alpha_sel ,255,255,255 ); SetMaterial( 'computer_webchat', 2, _file_computer_bgrd_buton_push , alpha_sel ,255,255,255 ); SetMaterial( 'computer_webchat', 3, _file_computer_bgrd_buton_normal , alpha_normal ,255,255,255 ); SetPos( 'computer_webchat', 0 , button_x , button_y2 ); SetDim( 'computer_webchat', 0 , button_dx, button_dy ); SetPos( 'computer_webchat', 1 , button_x , button_y2 ); SetDim( 'computer_webchat', 1 , button_dx, button_dy ); SetPos( 'computer_webchat', 2 , button_x , button_y2 ); SetDim( 'computer_webchat', 2 , button_dx, button_dy ); SetPos( 'computer_webchat', 3 , button_x , button_y2 ); SetDim( 'computer_webchat', 3 , button_dx, button_dy ); SetState( 'computer_webchat', 0 ); SetPush( 'computer_webchat', _function_accept_webchat ); SetNSEW( 'computer_webchat', 'computer_search_analyze', 'computer_audioanalysis', 'NULL', 'NULL' ); SetSndSelect( "computer_webchat" , _sound_select); SetSndPush( "computer_webchat" , _sound_accept); SetTxt( "computer_webchat", _bt_font_normal , _bt_align , "TEXT0096" ); SetTextColor( "computer_webchat" , _bt_color_a , _bt_color_r_normal , _bt_color_g_normal ,_bt_color_b_normal ); -- normal SetTextColor( "computer_webchat" , _bt_color_a , _bt_color_r_sel , _bt_color_g_sel ,_bt_color_b_sel , 1); -- selection SetTextColor( "computer_webchat" , _bt_color_a , _bt_color_r_push , _bt_color_g_push ,_bt_color_b_push , 2 ); -- push SetFontScale( "computer_webchat" , _bt_scale_normal ); SetFontScale( "computer_webchat" , _bt_scale_sel , 1 ); SetFontScale( "computer_webchat" , _bt_scale_push , 2 ); end function computer_audioanalysis() SetMaterial( 'computer_audioanalysis', 0, _file_computer_bgrd_buton_normal , alpha_normal ,255,255,255 ); SetMaterial( 'computer_audioanalysis', 1, _file_computer_bgrd_buton_sel , alpha_sel ,255,255,255 ); SetMaterial( 'computer_audioanalysis', 2, _file_computer_bgrd_buton_push , alpha_sel ,255,255,255 ); SetMaterial( 'computer_audioanalysis', 3, _file_computer_bgrd_buton_normal , alpha_normal ,255,255,255 ); SetPos( 'computer_audioanalysis', 0 , button_x , button_y3 ); SetDim( 'computer_audioanalysis', 0 , button_dx, button_dy ); SetPos( 'computer_audioanalysis', 1 , button_x , button_y3 ); SetDim( 'computer_audioanalysis', 1 , button_dx, button_dy ); SetPos( 'computer_audioanalysis', 2 , button_x , button_y3 ); SetDim( 'computer_audioanalysis', 2 , button_dx, button_dy ); SetPos( 'computer_audioanalysis', 3 , button_x , button_y3 ); SetDim( 'computer_audioanalysis', 3 , button_dx, button_dy ); SetState( 'computer_audioanalysis', 0 ); SetPush( 'computer_audioanalysis', _function_accept_audioanalysis ); SetNSEW( 'computer_audioanalysis', 'computer_webchat', 'computer_internet', 'NULL', 'NULL' ); SetSndSelect( "computer_audioanalysis" , _sound_select); SetSndPush( "computer_audioanalysis" , _sound_accept); SetTxt( "computer_audioanalysis", _bt_font_normal , _bt_align , "TEXT0097" ); SetTextColor( "computer_audioanalysis" , _bt_color_a , _bt_color_r_normal , _bt_color_g_normal ,_bt_color_b_normal ); -- normal SetTextColor( "computer_audioanalysis" , _bt_color_a , _bt_color_r_sel , _bt_color_g_sel ,_bt_color_b_sel , 1); -- selection SetTextColor( "computer_audioanalysis" , _bt_color_a , _bt_color_r_push , _bt_color_g_push ,_bt_color_b_push , 2 ); -- push SetFontScale( "computer_audioanalysis" , _bt_scale_normal ); SetFontScale( "computer_audioanalysis" , _bt_scale_sel , 1 ); SetFontScale( "computer_audioanalysis" , _bt_scale_push , 2 ); end function computer_internet() SetMaterial( 'computer_internet', 0, _file_computer_bgrd_buton_normal , alpha_normal ,255,255,255 ); SetMaterial( 'computer_internet', 1, _file_computer_bgrd_buton_sel , alpha_sel ,255,255,255 ); SetMaterial( 'computer_internet', 2, _file_computer_bgrd_buton_push , alpha_sel ,255,255,255 ); SetMaterial( 'computer_internet', 3, _file_computer_bgrd_buton_normal , alpha_normal ,255,255,255 ); SetPos( 'computer_internet', 0 , button_x , button_y4 ); SetDim( 'computer_internet', 0 , button_dx, button_dy ); SetPos( 'computer_internet', 1 , button_x , button_y4 ); SetDim( 'computer_internet', 1 , button_dx, button_dy ); SetPos( 'computer_internet', 2 , button_x , button_y4 ); SetDim( 'computer_internet', 2 , button_dx, button_dy ); SetPos( 'computer_internet', 3 , button_x , button_y4 ); SetDim( 'computer_internet', 3 , button_dx, button_dy ); SetState( 'computer_internet', 0 ); SetPush( 'computer_internet', _function_accept_internet ); SetNSEW( 'computer_internet', 'computer_audioanalysis', 'NULL', 'NULL', 'NULL' ); SetSndSelect( "computer_internet" , _sound_select); SetSndPush( "computer_internet" , _sound_accept); SetTxt( "computer_internet", _bt_font_normal , _bt_align , "TEXT0098" ); SetTextColor( "computer_internet" , _bt_color_a , _bt_color_r_normal , _bt_color_g_normal ,_bt_color_b_normal ); -- normal SetTextColor( "computer_internet" , _bt_color_a , _bt_color_r_sel , _bt_color_g_sel ,_bt_color_b_sel , 1); -- selection SetTextColor( "computer_internet" , _bt_color_a , _bt_color_r_push , _bt_color_g_push ,_bt_color_b_push , 2 ); -- push SetFontScale( "computer_internet" , _bt_scale_normal ); SetFontScale( "computer_internet" , _bt_scale_sel , 1 ); SetFontScale( "computer_internet" , _bt_scale_push , 2 ); end function cm_back() SetMaterial( "cm_back" , 0 , _cp_common_back , 255 , 255 , 255 , 255 ); SetPos( "cm_back" , 0 , 94 , 391 ); SetDim( "cm_back" , 0 , _dec_but_dx , _dec_but_dy ); SetTxt( "cm_back" , _dec_but_font_no, 5 , "back" ); SetFontScale('cm_back' , _fontscale_dec_buttons); SetTextColor( "cm_back", _dec_bt_alpha , _dec_bt_r, _dec_bt_g, _dec_bt_b ); SetTextPosition( 'cm_back', _back_bt_offset_x ,_back_bt_offset_y , _back_bt_dx, _back_bt_dy ); end function cm_y() SetMaterial( "cm_y" , 0 , _cp_common_y , 255 , 255 , 255 , 255 ); SetPos( "cm_y" , 0 , 267 , 391 ); SetDim( "cm_y" , 0 , _dec_but_dx , _dec_but_dy ); SetTxt( "cm_y" , _dec_but_font_no, 5 , "" ); SetFontScale('cm_y' , _fontscale_dec_buttons); SetTextColor( "cm_y", _dec_bt_alpha , _dec_bt_r, _dec_bt_g, _dec_bt_b ); SetTextPosition( 'cm_y', _y_bt_offset_x ,_y_bt_offset_y , _y_bt_dx, _y_bt_dy ); end function cm_acc() SetMaterial( "cm_acc" , 0 , _cp_common_acc , 255 , 255 , 255 , 255 ); SetPos( "cm_acc" , 0 , 440 , 391 ); SetDim( "cm_acc" , 0 , _dec_but_dx , _dec_but_dy ); SetTxt( "cm_acc" , _dec_but_font_no, 5 , "TEXT0185" ); SetFontScale('cm_acc' , _fontscale_dec_buttons); SetTextColor( "cm_acc", _dec_bt_alpha , _dec_bt_r, _dec_bt_g, _dec_bt_b ); SetTextPosition( 'cm_acc', _acc_bt_offset_x ,_acc_bt_offset_y , _acc_bt_dx, _acc_bt_dy ); end