-- area for settings : sound , subtitles and others _function_push_def1="AcceptDef1" _function_push_def2="AcceptDef2" _function_push_def3="AcceptDef3" _function_push_1="ModifySett1" _function_push_2="ModifySett2" _function_push_3="ModifySett3" _function_push_4="ModifySett4" -- selection functions : _function_sel_1="SelSett1" _function_sel_2="SelSett2" _function_sel_3="SelSett3" _function_sel_4="SelSett4" _function_sel_beg="_gs_change_hint" _function_sel_adv="_gs_change_hint" _function_sel_exp="_gs_change_hint" _function_sel_ok="_gs_change_hint" _function_sel_retmain="_gs_change_hint" -- hint texts : _hint_text_gs1="Menu_Options_Gameplay_Info_ActiveHotspots" _hint_text_gs2="Menu_Options_Gameplay_Info_EvidenceTagging" _hint_text_gs3="Menu_Options_Gameplay_Info_AutoDragNDrop" _hint_text_gs4="Menu_Options_Gameplay_Info_Tutorial" _hint_text_beg="Menu_Options_Gameplay_Beginner_Info" _hint_text_adv="Menu_Options_Gameplay_Advanced_Info" _hint_text_exp="Menu_Options_Gameplay_Expert_Info" _hint_text_ok="TEXT0355" _hint_text_retmain="Menu_Credits_Return_Info" _function_push_def1="AcceptDef1" _function_push_def2="AcceptDef2" _function_push_def3="AcceptDef3" _function_push_ok="AcceptGameSett" _function_push_ret_main="GameSettRetMain" _alpha_slider=255 _file_texture_gs_push="" _file_texture_check_off="menu\\menutextures\\cp\\off_Button.dds" _file_texture_check_on="menu\\menutextures\\cp\\on_Button.dds" _sett_ok_x= 85 _sett_ok_y= 342 _sett_ret_x=225 _sett_ret_y=342 gs_push_x=92 gs_check_x=342 gs_push_y1=149 gs_push_y2=181 gs_push_y3=213 gs_push_y4=246 _offset_x_text = 0 _offset_y_text = 3 _text_w = 128 _text_h = 24 _file_texture_bgrd01="Menu\\MenuTextures\\cp\\gamesett\\CP_bgrd03.dds" _cp_common_bgrd01="Menu\\MenuTextures\\cp\\av\\common_CP_bgrd01.dds" _cp_common_bgrd02="Menu\\MenuTextures\\cp\\av\\common_CP_bgrd02.dds" _cp_common_bgrd04="Menu\\MenuTextures\\cp\\av\\common_CP_bgrd04.dds" _cp_common_bgrd05="Menu\\MenuTextures\\cp\\av\\common_CP_bgrd05.dds" _cp_common_bgrd06="Menu\\MenuTextures\\cp\\av\\common_CP_bgrd06.dds" _def_butt_texture_normal="Menu\\MenuTextures\\cp\\gamesett\\bg_ad_ex_Buttons_UP.dds" _def_butt_texture_sel="Menu\\MenuTextures\\cp\\gamesett\\bg_ad_ex_Buttons_PRESS.dds" _def_butt_texture_push="Menu\\MenuTextures\\cp\\gamesett\\bg_ad_ex_Buttons_PRESS.dds" _def_butt_texture_dis="" _def_butt_texture2_normal="Menu\\MenuTextures\\cp\\gamesett\\applyButtonUP.dds" _def_butt_texture2_sel="Menu\\MenuTextures\\cp\\gamesett\\applyButtonPRESS.dds" _def_butt_texture2_push="Menu\\MenuTextures\\cp\\gamesett\\applyButtonPRESS.dds" _def_butt_texture2_dis="" _def_butt_x1=85 _def_butt_x2=178 _def_butt_x3=270 _def_butt_y=291 _def_butt_dx=128 _def_butt_dy=32 _def_butt_text_off_x=0 _def_butt_text_off_y=0 _push_text_alpha_normal=0 _push_text_alpha_sel=0 _push_text_alpha_push=0 _push_text_alpha_dis=0 _push_text2_alpha_normal=255 _push_text2_alpha_sel=255 _push_text2_alpha_push=255 _push_text2_alpha_dis=0 _sound_select="HIGHLIGHT" _sound_accept="ACCEPT" _file_texture_up_arrow_0 = "Menu\\MenuTextures\\CSI_common\\common_CP_scrollButton_susUp.dds" _file_texture_up_arrow_1 = "Menu\\MenuTextures\\CSI_common\\common_CP_scrollButton_susPress.dds" _file_texture_down_arrow_0 = "Menu\\MenuTextures\\CSI_common\\common_CP_scrollButton_josUp.dds" _file_texture_down_arrow_1 = "Menu\\MenuTextures\\CSI_common\\common_CP_scrollButton_josPress.dds" _bgrd_mask_up="menu\\menutextures\\cp\\masca_Sus.tga" _bgrd_mask_down="menu\\menutextures\\cp\\masca_Jos.tga" function gamsett_area() SetMaterial( 'gamsett_area', 0 ,_file_texture_bgrd01, 255 ,255,255,255); SetMaterial( 'gamsett_area', 1 ,_file_texture_bgrd01, 255 ,255,255,255); SetPos( 'gamsett_area',0 , 45 , 107 ); SetDim( 'gamsett_area',0 , 512 , 256 ); SetPos( 'gamsett_area',1 , 45 , 107 ); SetDim( 'gamsett_area',1 , 512 , 256 ); AddStaticObject( "gamsett_area" ,"gs_common_brgd01" ); AddStaticObject( "gamsett_area" ,"gs_common_brgd02" ); AddStaticObject( "gamsett_area" ,"gs_common_brgd04" ); AddStaticObject( "gamsett_area" ,"gs_common_brgd05" ); AddStaticObject( "gamsett_area" ,"gs_common_brgd06" ); AddStaticObject( "gamsett_area" ,"gs_common_brgd07" ); AddStaticObject( "gamsett_area" ,"gs_common_brgd08" ); AddStaticObject ( 'gamsett_area' , "gs_text_cp"); -- AddStaticObject ( 'gamsett_area' , "gs_text_load"); -- AddStaticObject ( 'gamsett_area' , "gs_text_opt"); -- AddStaticObject ( 'gamsett_area' , "gs_text_stat"); AddStaticObject ( 'gamsett_area' , "gs_text_av"); AddStaticObject ( 'gamsett_area' , "gs_text_gs"); AddStaticObject ( 'gamsett_area' , "gs_common_back"); AddStaticObject ( 'gamsett_area' , "gs_common_x"); AddStaticObject ( 'gamsett_area' , "gs_common_acc"); AddStaticObject( "gamsett_area" , "gs1_on" ); AddStaticObject( "gamsett_area" , "gs1_off" ); AddPushButton( "gamsett_area" ,"gs1_push"); AddStaticObject( "gamsett_area" , "gs2_on" ); AddStaticObject( "gamsett_area" , "gs2_off" ); AddPushButton( "gamsett_area" ,"gs2_push"); AddStaticObject( "gamsett_area" , "gs3_on" ); AddStaticObject( "gamsett_area" , "gs3_off" ); AddPushButton( "gamsett_area" ,"gs3_push"); -- AddStaticObject( "gamsett_area" , "gs4_on" ); -- AddStaticObject( "gamsett_area" , "gs4_off" ); -- AddPushButton( "gamsett_area" ,"gs4_push"); AddPushButton( "gamsett_area" ,"gs_beg"); AddPushButton( "gamsett_area" ,"gs_adv"); AddPushButton( "gamsett_area" ,"gs_exp"); AddPushButton( "gamsett_area" ,"gs_retmain"); AddPushButton( "gamsett_area" ,"gs_ok"); AddMultilineStatic( "gamsett_area" , "gs_hint" ); -- scroll buttons : -- AddStaticObject("gamsett_area","gs_mask_up"); -- AddStaticObject("gamsett_area","gs_mask_down"); -- AddStaticObject("gamsett_area","gs_info_area_upscroll"); -- AddStaticObject("gamsett_area","gs_info_area_downscroll"); -- SetFlagButton("gamsett_area",2,"gs_info_area_upscroll"); -- SetFlagButton("gamsett_area",3,"gs_info_area_downscroll"); GUISetVisible( "gamsett_area" , 0 ); end function gs_mask_up() SetMaterial( 'gs_mask_up', 0, _bgrd_mask_up, 255, 255, 255, 255 ); SetPos( 'gs_mask_up', 0, 387 , 87 ); SetDim( 'gs_mask_up', 0, 256 ,32 ); end function gs_mask_down() SetMaterial( 'gs_mask_down', 0, _bgrd_mask_down, 255, 255, 255, 255 ); SetPos( 'gs_mask_down', 0, 387 , 359 ); SetDim( 'gs_mask_down', 0, 256 ,32 ); end function gs_info_area_upscroll() SetMaterial( 'gs_info_area_upscroll', 0, _file_texture_up_arrow_1 , 255,255,255,255 ); SetMaterial( 'gs_info_area_upscroll', 1, _file_texture_up_arrow_0 , 255,255,255,255 ); SetPos( 'gs_info_area_upscroll', 0, 338 + 43 , 107 + 7 ); SetDim( 'gs_info_area_upscroll', 0, 32, 16); SetPos( 'gs_info_area_upscroll', 1, 338 + 43 , 107 + 7 ); SetDim( 'gs_info_area_upscroll', 1, 32, 16); end function gs_info_area_downscroll() SetMaterial( 'gs_info_area_downscroll', 0, _file_texture_down_arrow_1 , 255,255,255,255 ); SetMaterial( 'gs_info_area_downscroll', 1, _file_texture_down_arrow_0 , 255,255,255,255 ); SetPos( 'gs_info_area_downscroll', 0, 338 + 43 , 107 + 250 ); SetDim( 'gs_info_area_downscroll', 0, 32 , 16); SetPos( 'gs_info_area_downscroll', 1, 338 + 43 , 107 + 250 ); SetDim( 'gs_info_area_downscroll', 1, 32 , 16); end function gs_hint() SetMaterial( "gs_hint" , 0 , "" , 0 , 255 , 255 , 255 ); SetPos( "gs_hint" , 0 , 408 , 96 ); SetDim( "gs_hint" , 0 , 156 , 276 ); SetTxt( "gs_hint" , _font_no_hint , 0 , "" ); SetFontScale('gs_hint' , _font_scale_hint ); SetTextColor( "gs_hint", _help_alpha_text_normal , _help_r_text_normal, _help_g_text_normal, _help_b_text_normal ); end function gs_common_back() SetMaterial( "gs_common_back" , 0 , _cp_common_back , 255 , 255 , 255 , 255 ); SetPos( "gs_common_back" , 0 , 64 , 390 ); SetDim( "gs_common_back" , 0 , _dec_but_dx , _dec_but_dy ); SetTxt( "gs_common_back" , _dec_but_font_no , 5 , "back" ); SetFontScale('gs_common_back' , _fontscale_dec_buttons ); SetTextColor( "gs_common_back", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); SetTextPosition( 'gs_common_back', _back_bt_offset_x ,_back_bt_offset_y , _back_bt_dx, _back_bt_dy ); end function gs_common_x() SetMaterial( "gs_common_x" , 0 , _cp_common_x , 255 , 255 , 255 , 255 ); SetPos( "gs_common_x" , 0 , 194 , 390 ); SetDim( "gs_common_x" , 0 , _dec_but_dx , _dec_but_dy ); -- SetTxt( "gs_common_x" , _dec_but_font_no , 5 , "Menu_Options_AudioVideo_Label" ); SetTxt( "gs_common_x" , _dec_but_font_no , 4 , "Menu_Options_AudioVideo_Label" ); SetFontScale('gs_common_x' , _fontscale_dec_buttons ); SetTextColor( "gs_common_x", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); SetTextPosition( 'gs_common_x', _x_bt_offset_x ,_x_bt_offset_y , _x_bt_dx, _x_bt_dy ); end function gs_common_acc() SetMaterial( "gs_common_acc" , 0 , _cp_common_acc , 255 , 255 , 255 , 255 ); SetPos( "gs_common_acc" , 0 , 460 , 390 ); SetDim( "gs_common_acc" , 0 , _dec_but_dx , _dec_but_dy ); SetTxt( "gs_common_acc" , _dec_but_font_no , 5 , "TEXT0185" ); SetFontScale('gs_common_acc' , _fontscale_dec_buttons ); SetTextColor( "gs_common_acc", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); SetTextPosition( 'gs_common_acc', _x_bt_offset_x ,_x_bt_offset_y , _x_bt_dx, _x_bt_dy ); end function gs_common_brgd01() SetMaterial( "gs_common_brgd01" , 0 , _cp_common_bgrd01 , 255 , 255 , 255 , 255 ); SetPos( "gs_common_brgd01" , 0 , 45 , 32 ); SetDim( "gs_common_brgd01" , 0 , 512 , 128 ); end function gs_common_brgd02() SetMaterial( "gs_common_brgd02" , 0 , _cp_common_bgrd02 , 255 , 255 , 255 , 255 ); SetPos( "gs_common_brgd02" , 0 , 557 , 32 ); SetDim( "gs_common_brgd02" , 0 , 64 , 128 ); end function gs_common_brgd04() SetMaterial( "gs_common_brgd04" , 0 , _cp_common_bgrd04 , 255 , 255 , 255 , 255 ); SetPos( "gs_common_brgd04" , 0 , 557 , 107 ); SetDim( "gs_common_brgd04" , 0 , 64 , 256 ); end function gs_common_brgd05() SetMaterial( "gs_common_brgd05" , 0 , _cp_common_bgrd05 , 255 , 255 , 255 , 255 ); SetPos( "gs_common_brgd05" , 0 , 45 , 363 ); SetDim( "gs_common_brgd05" , 0 , 512 , 64 ); end function gs_common_brgd06() SetMaterial( "gs_common_brgd06" , 0 , _cp_common_bgrd06 , 255 , 255 , 255 , 255 ); SetPos( "gs_common_brgd06" , 0 , 557 , 363 ); SetDim( "gs_common_brgd06" , 0 , 64 , 64 ); end function gs_common_brgd07() SetMaterial( "gs_common_brgd07" , 0 , _cp_common_bgrd07 , 255 , 255 , 255 , 255 ); SetPos( "gs_common_brgd07" , 0 , 45 , 397 ); SetDim( "gs_common_brgd07" , 0 , 512 , 64 ); end function gs_common_brgd08() SetMaterial( "gs_common_brgd08" , 0 , _cp_common_bgrd08 , 255 , 255 , 255 , 255 ); SetPos( "gs_common_brgd08" , 0 , 557 , 397 ); SetDim( "gs_common_brgd08" , 0 , 64 , 64 ); end function gs1_push() SetMaterial( 'gs1_push', 0 , _file_texture_gs_push , _push_text_alpha_normal , 255 , 255 , 255 ); SetMaterial( 'gs1_push', 1 , _file_texture_gs_push , _push_text_alpha_sel , 255 , 255 , 255 ); SetMaterial( 'gs1_push', 1 , _file_texture_gs_push , _push_text_alpha_push , 255 , 255 , 255 ); SetMaterial( 'gs1_push', 2 , _file_texture_gs_push , _push_text_alpha_dis , 255 , 255 , 255 ); SetPos( 'gs1_push', 0 , gs_push_x, gs_push_y1); SetDim( 'gs1_push', 0 , 100 , 24 ); SetPos( 'gs1_push', 1 , gs_push_x, gs_push_y1); SetDim( 'gs1_push', 1 , 100 , 24 ); SetPos( 'gs1_push', 2 , gs_push_x, gs_push_y1); SetDim( 'gs1_push', 2 , 100 , 24 ); SetPos( 'gs1_push', 3 , gs_push_x, gs_push_y1); SetDim( 'gs1_push', 3 , 100 , 24 ); SetState( 'gs1_push', 0); SetPush( "gs1_push", _function_push_1 ); SetSel( "gs1_push", _function_sel_1 ); SetHintText( 'gs1_push', _hint_text_gs1 ); SetNSEW("gs1_push","NULL", "gs2_push","NULL" ,"NULL"); SetTxt( 'gs1_push', 1, 0, "Menu_Options_Gameplay_ActiveHotspots_Label" ); SetTextPosition( "gs1_push" , _offset_x_text , _offset_y_text , _text_w , _text_h ); SetFontScale("gs1_push", _push_text_fontscale_normal ); SetFontScale("gs1_push", _push_text_fontscale_sel , 1 ); SetTextColor("gs1_push", _slider_text_normal_a , _slider_text_normal_r , _slider_text_normal_g , _slider_text_normal_b ); SetTextColor("gs1_push", _slider_text_sel_a , _slider_text_sel_r , _slider_text_sel_g , _slider_text_sel_b ,1); SetSndSelect( "gs1_push" , _sound_select ); SetSndPush( "gs1_push" , _sound_accept ); end function gs1_on() SetMaterial( 'gs1_on', 0 , _file_texture_check_on , 255 , 255 , 255 , 255 ); SetPos( 'gs1_on', 0 , gs_check_x , gs_push_y1 ); SetDim( 'gs1_on', 0 , 32 , 32 ); GUISetVisible( "gs1_on" , 0 ); end function gs1_off() SetMaterial( 'gs1_off', 0 , _file_texture_check_off , 255 , 255 , 255 , 255 ); SetPos( 'gs1_off', 0 , gs_check_x , gs_push_y1 ); SetDim( 'gs1_off', 0 , 32 , 32 ); GUISetVisible( "gs1_off" , 1 ); end function gs2_push() SetMaterial( 'gs2_push', 0 , _file_texture_gs_push , _push_text_alpha_normal , 255 , 255 , 255 ); SetMaterial( 'gs2_push', 1 , _file_texture_gs_push , _push_text_alpha_sel , 255 , 255 , 255 ); SetMaterial( 'gs2_push', 1 , _file_texture_gs_push , _push_text_alpha_push , 255 , 255 , 255 ); SetMaterial( 'gs2_push', 2 , _file_texture_gs_push , _push_text_alpha_dis , 255 , 255 , 255 ); SetPos( 'gs2_push', 0 , gs_push_x, gs_push_y2); SetDim( 'gs2_push', 0 , 100 , 24 ); SetPos( 'gs2_push', 1 , gs_push_x, gs_push_y2); SetDim( 'gs2_push', 1 , 100 , 24 ); SetPos( 'gs2_push', 2 , gs_push_x, gs_push_y2); SetDim( 'gs2_push', 2 , 100 , 24 ); SetPos( 'gs2_push', 3 , gs_push_x, gs_push_y2); SetDim( 'gs2_push', 3 , 100 , 24 ); SetState( 'gs2_push', 0); SetPush( "gs2_push", _function_push_2 ); SetSel( "gs2_push", _function_sel_2 ); SetHintText( 'gs2_push', _hint_text_gs2 ); SetNSEW("gs2_push","gs1_push", "gs3_push","NULL" ,"NULL"); SetTxt( 'gs2_push', 1, 0, "Menu_Options_Gameplay_EvidenceTagging_Label" ); SetTextPosition( "gs2_push" , _offset_x_text , _offset_y_text , _text_w , _text_h ); SetFontScale("gs2_push", _push_text_fontscale_normal ); SetFontScale("gs2_push", _push_text_fontscale_sel , 1 ); SetTextColor("gs2_push", _slider_text_normal_a , _slider_text_normal_r , _slider_text_normal_g , _slider_text_normal_b ); SetTextColor("gs2_push", _slider_text_sel_a , _slider_text_sel_r , _slider_text_sel_g , _slider_text_sel_b ,1); SetSndSelect( "gs2_push" , _sound_select ); SetSndPush( "gs2_push" , _sound_accept ); end function gs2_on() SetMaterial( 'gs2_on', 0 , _file_texture_check_on , 255 , 255 , 255 , 255 ); SetPos( 'gs2_on', 0 , gs_check_x , gs_push_y2 ); SetDim( 'gs2_on', 0 , 32 , 32 ); GUISetVisible( "gs2_on" , 0 ); end function gs2_off() SetMaterial( 'gs2_off', 0 , _file_texture_check_off , 255 , 255 , 255 , 255 ); SetPos( 'gs2_off', 0 , gs_check_x , gs_push_y2 ); SetDim( 'gs2_off', 0 , 32 , 32 ); GUISetVisible( "gs2_off" , 1 ); end function gs3_push() SetMaterial( 'gs3_push', 0 , _file_texture_gs_push , _push_text_alpha_normal , 255 , 255 , 255 ); SetMaterial( 'gs3_push', 1 , _file_texture_gs_push , _push_text_alpha_sel , 255 , 255 , 255 ); SetMaterial( 'gs3_push', 1 , _file_texture_gs_push , _push_text_alpha_push , 255 , 255 , 255 ); SetMaterial( 'gs3_push', 2 , _file_texture_gs_push , _push_text_alpha_dis , 255 , 255 , 255 ); SetPos( 'gs3_push', 0 , gs_push_x, gs_push_y3); SetDim( 'gs3_push', 0 , 100 , 24 ); SetPos( 'gs3_push', 1 , gs_push_x, gs_push_y3); SetDim( 'gs3_push', 1 , 100 , 24 ); SetPos( 'gs3_push', 2 , gs_push_x, gs_push_y3); SetDim( 'gs3_push', 2 , 100 , 24 ); SetPos( 'gs3_push', 3 , gs_push_x, gs_push_y3); SetDim( 'gs3_push', 3 , 100 , 24 ); SetState( 'gs3_push', 0); SetPush( "gs3_push", _function_push_3 ); SetSel( "gs3_push", _function_sel_3 ); SetHintText( 'gs3_push', _hint_text_gs3 ); SetNSEW("gs3_push","gs2_push", "gs_beg","NULL" ,"NULL"); SetTxt( 'gs3_push', 1, 0, "Menu_Options_Gameplay_AutoDragNDrop_Label" ); SetTextPosition( "gs3_push" , _offset_x_text , _offset_y_text , _text_w , _text_h ); SetFontScale("gs3_push", _push_text_fontscale_normal ); SetFontScale("gs3_push", _push_text_fontscale_sel , 1 ); SetTextColor("gs3_push", _slider_text_normal_a , _slider_text_normal_r , _slider_text_normal_g , _slider_text_normal_b ); SetTextColor("gs3_push", _slider_text_sel_a , _slider_text_sel_r , _slider_text_sel_g , _slider_text_sel_b ,1); SetSndSelect( "gs3_push" , _sound_select ); SetSndPush( "gs3_push" , _sound_accept ); end function gs3_on() SetMaterial( 'gs3_on', 0 , _file_texture_check_on , 255 , 255 , 255 , 255 ); SetPos( 'gs3_on', 0 , gs_check_x , gs_push_y3 ); SetDim( 'gs3_on', 0 , 32 , 32 ); GUISetVisible( "gs3_on" , 0 ); end function gs3_off() SetMaterial( 'gs3_off', 0 , _file_texture_check_off , 255 , 255 , 255 , 255 ); SetPos( 'gs3_off', 0 , gs_check_x , gs_push_y3 ); SetDim( 'gs3_off', 0 , 32 , 32 ); GUISetVisible( "gs3_off" , 1 ); end function gs4_push() SetMaterial( 'gs4_push', 0 , _file_texture_gs_push , _push_text_alpha_normal , 255 , 255 , 255 ); SetMaterial( 'gs4_push', 1 , _file_texture_gs_push , _push_text_alpha_sel , 255 , 255 , 255 ); SetMaterial( 'gs4_push', 1 , _file_texture_gs_push , _push_text_alpha_push , 255 , 255 , 255 ); SetMaterial( 'gs4_push', 2 , _file_texture_gs_push , _push_text_alpha_dis , 255 , 255 , 255 ); SetPos( 'gs4_push', 0 , gs_push_x, gs_push_y4); SetDim( 'gs4_push', 0 , 100 , 24 ); SetPos( 'gs4_push', 1 , gs_push_x, gs_push_y4); SetDim( 'gs4_push', 1 , 100 , 24 ); SetPos( 'gs4_push', 2 , gs_push_x, gs_push_y4); SetDim( 'gs4_push', 2 , 100 , 24 ); SetPos( 'gs4_push', 3 , gs_push_x, gs_push_y4); SetDim( 'gs4_push', 3 , 100 , 24 ); SetState( 'gs4_push', 0); SetPush( "gs4_push", _function_push_4 ); SetSel( "gs4_push", _function_sel_4 ); SetHintText( 'gs4_push', _hint_text_gs4 ); SetNSEW("gs4_push","gs3_push", "gs_beg","NULL" ,"NULL"); SetTxt( 'gs4_push', 1, 0, "Menu_Options_Gameplay_Tutorial_Label" ); SetTextPosition( "gs4_push" , _offset_x_text , _offset_y_text , _text_w , _text_h ); SetFontScale("gs4_push", _push_text_fontscale_normal ); SetFontScale("gs4_push", _push_text_fontscale_sel , 1 ); SetTextColor("gs4_push", _slider_text_normal_a , _slider_text_normal_r , _slider_text_normal_g , _slider_text_normal_b ); SetTextColor("gs4_push", _slider_text_sel_a , _slider_text_sel_r , _slider_text_sel_g , _slider_text_sel_b ,1); SetSndSelect( "gs4_push" , _sound_select ); SetSndPush( "gs4_push" , _sound_accept ); end function gs4_on() SetMaterial( 'gs4_on', 0 , _file_texture_check_on , 255 , 255 , 255 , 255 ); SetPos( 'gs4_on', 0 , gs_check_x , gs_push_y4 ); SetDim( 'gs4_on', 0 , 32 , 32 ); GUISetVisible( "gs4_on" , 0 ); end function gs4_off() SetMaterial( 'gs4_off', 0 , _file_texture_check_off , 255 , 255 , 255 , 255 ); SetPos( 'gs4_off', 0 , gs_check_x , gs_push_y4 ); SetDim( 'gs4_off', 0 , 32 , 32 ); GUISetVisible( "gs4_off" , 1 ); end -- default buttons : function gs_beg() SetMaterial( 'gs_beg', 0 , _def_butt_texture_normal , _push_text2_alpha_normal , 255 , 255 , 255 ); SetMaterial( 'gs_beg', 1 , _def_butt_texture_sel , _push_text2_alpha_sel , 255 , 255 , 255 ); SetMaterial( 'gs_beg', 1 , _def_butt_texture_push , _push_text2_alpha_push , 255 , 255 , 255 ); SetMaterial( 'gs_beg', 2 , _def_butt_texture_dis , _push_text2_alpha_dis , 255 , 255 , 255 ); SetPos( 'gs_beg', 0 , _def_butt_x1, _def_butt_y); SetDim( 'gs_beg', 0 , _def_butt_dx , _def_butt_dy ); SetPos( 'gs_beg', 1 , _def_butt_x1, _def_butt_y); SetDim( 'gs_beg', 1 , _def_butt_dx , _def_butt_dy ); SetPos( 'gs_beg', 2 , _def_butt_x1, _def_butt_y); SetDim( 'gs_beg', 2 , _def_butt_dx , _def_butt_dy ); SetPos( 'gs_beg', 3 , _def_butt_x1, _def_butt_y); SetDim( 'gs_beg', 3 , _def_butt_dx , _def_butt_dy ); SetState( 'gs_beg', 0); SetPush( "gs_beg", _function_push_def1 ); SetHintText( 'gs_beg', _hint_text_beg ); SetSel( 'gs_beg', _function_sel_beg ); SetNSEW("gs_beg","gs3_push", "gs_ok","gs_adv" ,"NULL"); SetTxt( 'gs_beg', 1, 5, "Menu_Options_Gameplay_Beginner_Label" ) SetFontScale("gs_beg", _push_text_fontscale_normal ); SetFontScale("gs_beg", _push_text_fontscale_sel , 1 ); SetTextPosition( "gs_beg" , _def_butt_text_off_x , _def_butt_text_off_y , 90 ,18); SetTextColor("gs_beg", _slider_text_normal_a , _slider_text_normal_r , _slider_text_normal_g , _slider_text_normal_b ); SetTextColor("gs_beg", _slider_text_sel_a , _slider_text_sel_r , _slider_text_sel_g , _slider_text_sel_b ,1); SetSndSelect( "gs_beg" , _sound_select ); SetSndPush( "gs_beg" , _sound_accept ); end function gs_adv() SetMaterial( 'gs_adv', 0 , _def_butt_texture_normal , _push_text2_alpha_normal , 255 , 255 , 255 ); SetMaterial( 'gs_adv', 1 , _def_butt_texture_sel , _push_text2_alpha_sel , 255 , 255 , 255 ); SetMaterial( 'gs_adv', 1 , _def_butt_texture_push , _push_text2_alpha_push , 255 , 255 , 255 ); SetMaterial( 'gs_adv', 2 , _def_butt_texture_dis , _push_text2_alpha_dis , 255 , 255 , 255 ); SetPos( 'gs_adv', 0 , _def_butt_x2, _def_butt_y); SetDim( 'gs_adv', 0 , _def_butt_dx , _def_butt_dy ); SetPos( 'gs_adv', 1 , _def_butt_x2, _def_butt_y); SetDim( 'gs_adv', 1 , _def_butt_dx , _def_butt_dy ); SetPos( 'gs_adv', 2 , _def_butt_x2, _def_butt_y); SetDim( 'gs_adv', 2 , _def_butt_dx , _def_butt_dy ); SetPos( 'gs_adv', 3 , _def_butt_x2, _def_butt_y); SetDim( 'gs_adv', 3 , _def_butt_dx , _def_butt_dy ); SetState( 'gs_adv', 0); SetPush( "gs_adv", _function_push_def2 ); SetHintText( 'gs_adv', _hint_text_adv ); SetSel( 'gs_adv', _function_sel_adv ); SetNSEW("gs_adv","gs4_push", "gs_ok","gs_exp" ,"gs_beg"); SetTxt( 'gs_adv', 1, 5, "Menu_Options_Gameplay_Advanced_Label" ) SetFontScale("gs_adv", _push_text_fontscale_normal ); SetFontScale("gs_adv", _push_text_fontscale_sel , 1 ); SetTextPosition( "gs_adv" , _def_butt_text_off_x , _def_butt_text_off_y , 90 ,18); SetTextColor("gs_adv", _slider_text_normal_a , _slider_text_normal_r , _slider_text_normal_g , _slider_text_normal_b ); SetTextColor("gs_adv", _slider_text_sel_a , _slider_text_sel_r , _slider_text_sel_g , _slider_text_sel_b ,1); SetSndSelect( "gs_adv" , _sound_select ); SetSndPush( "gs_adv" , _sound_accept ); end function gs_exp() SetMaterial( 'gs_exp', 0 , _def_butt_texture_normal , _push_text2_alpha_normal , 255 , 255 , 255 ); SetMaterial( 'gs_exp', 1 , _def_butt_texture_sel , _push_text2_alpha_sel , 255 , 255 , 255 ); SetMaterial( 'gs_exp', 1 , _def_butt_texture_push , _push_text2_alpha_push , 255 , 255 , 255 ); SetMaterial( 'gs_exp', 2 , _def_butt_texture_dis , _push_text2_alpha_dis , 255 , 255 , 255 ); SetPos( 'gs_exp', 0 , _def_butt_x3, _def_butt_y); SetDim( 'gs_exp', 0 , _def_butt_dx , _def_butt_dy ); SetPos( 'gs_exp', 1 , _def_butt_x3, _def_butt_y); SetDim( 'gs_exp', 1 , _def_butt_dx , _def_butt_dy ); SetPos( 'gs_exp', 2 , _def_butt_x3, _def_butt_y); SetDim( 'gs_exp', 2 , _def_butt_dx , _def_butt_dy ); SetPos( 'gs_exp', 3 , _def_butt_x3, _def_butt_y); SetDim( 'gs_exp', 3 , _def_butt_dx , _def_butt_dy ); SetState( 'gs_exp', 0 ); SetPush( "gs_exp", _function_push_def3 ); SetHintText( 'gs_exp', _hint_text_exp ); SetSel( 'gs_exp', _function_sel_exp ); SetNSEW("gs_exp","gs4_push", "gs_ok","NULL" ,"gs_adv"); SetTxt( 'gs_exp', 1, 5, "Menu_Options_Gameplay_Expert_Label" ) SetFontScale("gs_exp", _push_text_fontscale_normal ); SetFontScale("gs_exp", _push_text_fontscale_sel , 1 ); SetTextPosition( "gs_exp" , _def_butt_text_off_x , _def_butt_text_off_y , 90 ,18); SetTextColor("gs_exp", _slider_text_normal_a , _slider_text_normal_r , _slider_text_normal_g , _slider_text_normal_b ); SetTextColor("gs_exp", _slider_text_sel_a , _slider_text_sel_r , _slider_text_sel_g , _slider_text_sel_b ,1); SetSndSelect( "gs_exp" , _sound_select ); SetSndPush( "gs_exp" , _sound_accept ); end -- button accept changes: function gs_ok() SetMaterial( 'gs_ok', 0 , _def_butt_texture2_normal , _push_text2_alpha_normal , 255 , 255 , 255 ); SetMaterial( 'gs_ok', 1 , _def_butt_texture2_sel , _push_text2_alpha_sel , 255 , 255 , 255 ); SetMaterial( 'gs_ok', 1 , _def_butt_texture2_push , _push_text2_alpha_push , 255 , 255 , 255 ); SetMaterial( 'gs_ok', 2 , _def_butt_texture2_dis , _push_text2_alpha_dis , 255 , 255 , 255 ); SetPos( 'gs_ok', 0 , _sett_ok_x, _sett_ok_y); SetDim( 'gs_ok', 0 , 256 , 32 ); SetPos( 'gs_ok', 1 , _sett_ok_x, _sett_ok_y); SetDim( 'gs_ok', 1 , 256 , 32 ); SetPos( 'gs_ok', 2 , _sett_ok_x, _sett_ok_y); SetDim( 'gs_ok', 2 , 256 , 32 ); SetPos( 'gs_ok', 3 , _sett_ok_x, _sett_ok_y); SetDim( 'gs_ok', 3 , 256 , 32 ); SetState( 'gs_ok', 0 ); SetPush( "gs_ok", _function_push_ok ); SetHintText( 'gs_ok', _hint_text_ok ); SetSel( 'gs_ok', _function_sel_ok ); SetNSEW("gs_ok","gs_beg", "NULL","gs_retmain" ,"NULL"); -- FIXXXX SetTxt( 'gs_ok', 1, 5, "TEXT0455" ); SetTextPosition( "gs_ok" , 0 , 0 , 134 ,18 ); SetFontScale("gs_ok", _push_text_fontscale_normal ); SetFontScale("gs_ok", _push_text_fontscale_sel , 1 ); SetTextColor("gs_ok", _slider_text_normal_a , _slider_text_normal_r , _slider_text_normal_g , _slider_text_normal_b ); SetTextColor("gs_ok", _slider_text_sel_a , _slider_text_sel_r , _slider_text_sel_g , _slider_text_sel_b ,1); SetSndSelect( "gs_ok" , _sound_select ); SetSndPush( "gs_ok" , _sound_accept ); end function gs_retmain() SetMaterial( 'gs_retmain', 0 , _def_butt_texture2_normal , _push_text2_alpha_normal , 255 , 255 , 255 ); SetMaterial( 'gs_retmain', 1 , _def_butt_texture2_sel , _push_text2_alpha_sel , 255 , 255 , 255 ); SetMaterial( 'gs_retmain', 1 , _def_butt_texture2_push , _push_text2_alpha_push , 255 , 255 , 255 ); SetMaterial( 'gs_retmain', 2 , _def_butt_texture2_dis , _push_text2_alpha_dis , 255 , 255 , 255 ); SetPos( 'gs_retmain', 0 , _sett_ret_x, _sett_ret_y); SetDim( 'gs_retmain', 0 , 256 , 32 ); SetPos( 'gs_retmain', 1 , _sett_ret_x, _sett_ret_y); SetDim( 'gs_retmain', 1 , 256 , 32 ); SetPos( 'gs_retmain', 2 , _sett_ret_x, _sett_ret_y); SetDim( 'gs_retmain', 2 , 256 , 32 ); SetPos( 'gs_retmain', 3 , _sett_ret_x, _sett_ret_y); SetDim( 'gs_retmain', 3 , 256 , 32 ); SetState( 'gs_retmain', 0 ); SetPush( "gs_retmain", _function_push_ret_main ); SetHintText( 'gs_retmain', _hint_text_retmain ); SetSel( 'gs_retmain', _function_sel_retmain ); SetNSEW("gs_retmain","gs_beg", "NULL","NULL" ,"gs_ok"); SetTxt( 'gs_retmain', 1, 5, "Menu_Credits_Return_Label" ) SetTextPosition( "gs_retmain" , 0 , 0 , 134 ,18 ); SetFontScale("gs_retmain", _push_text_fontscale_normal ); SetFontScale("gs_retmain", _push_text_fontscale_sel , 1 ); SetTextColor("gs_retmain", _slider_text_normal_a , _slider_text_normal_r , _slider_text_normal_g , _slider_text_normal_b ); SetTextColor("gs_retmain", _slider_text_sel_a , _slider_text_sel_r , _slider_text_sel_g , _slider_text_sel_b ,1); SetSndSelect( "gs_retmain" , _sound_select ); SetSndPush( "gs_retmain" , _sound_accept ); end function gs_text_cp() SetMaterial( "gs_text_cp" , 0 , "" , 0 , 255 , 255 , 255 ); SetPos( "gs_text_cp" , 0 , 96 , 44 ); SetDim( "gs_text_cp" , 0 , 100 , 24 ); SetTxt( "gs_text_cp" , _dec_but_font_no , 5 , "Menu_Main_Options_Label" ); SetFontScale('gs_text_cp' , _opt_title_text_scale ); SetTextColor( "gs_text_cp", _opt_alpha_text_sel , _opt_r_text_sel , _opt_g_text_sel , _opt_b_text_sel ); SetTextPosition( "gs_text_cp" , 0 , 0 , 50 , _h_text ); end function gs_text_av() SetMaterial( "gs_text_av" , 0 , "" , 0 , 255 , 255 , 255 ); SetPos( "gs_text_av" , 0 , 90 , 66 ); SetDim( "gs_text_av" , 0 , 200 , 24 ); SetTxt( "gs_text_av" , _dec_but_font_no , 5 , "Menu_Options_AudioVideo_Label" ); SetFontScale('gs_text_av' , _opt_title_text_scale ); SetTextColor( "gs_text_av", _opt_alpha_text_normal , _opt_r_text_normal, _opt_g_text_normal, _opt_b_text_normal ); SetTextPosition( "gs_text_av" , 0 , 0 , _w_text, _h_text ); end function gs_text_gs() SetMaterial( "gs_text_gs" , 0 , "" , 0 , 255 , 255 , 255 ); SetPos( "gs_text_gs" , 0 , 330 , 66 ); SetDim( "gs_text_gs" , 0 , 200 , 24 ); SetTxt( "gs_text_gs" , _dec_but_font_no , 5 , "Menu_Options_Game_Label" ); SetFontScale('gs_text_gs' , _opt_title_text_scale ); SetTextColor( "gs_text_gs", _opt_alpha_text_sel , _opt_r_text_sel, _opt_g_text_sel, _opt_b_text_sel ); SetTextPosition( "gs_text_gs" , 0 , 0 , _w_text, _h_text ); end