-- area for statistics : _function_push_player="ViewCaseExtras" _function_sel_player="SelectCaseStat" _function_push_extra_extra="ViewExtraExtras" _function_sel_extra_extra="SelectExtraExtra" _file_texture_case1_normal="Menu\\MenuTextures\\cp\\stat\\cases\\case1_UP.dds" _file_texture_case1_sel="Menu\\MenuTextures\\cp\\stat\\cases\\case1_OVER.dds" _file_texture_case1_push="Menu\\MenuTextures\\cp\\stat\\cases\\case1_PRESS.dds" _file_texture_case1_dis="Menu\\MenuTextures\\cp\\stat\\cases\\case1_UP.dds" _file_texture_case2_normal="Menu\\MenuTextures\\cp\\stat\\cases\\case2_UP.dds" _file_texture_case2_sel="Menu\\MenuTextures\\cp\\stat\\cases\\case2_OVER.dds" _file_texture_case2_push="Menu\\MenuTextures\\cp\\stat\\cases\\case2_PRESS.dds" _file_texture_case2_dis="Menu\\MenuTextures\\cp\\stat\\cases\\case2_UP.dds" _file_texture_case3_normal="Menu\\MenuTextures\\cp\\stat\\cases\\case3_UP.dds" _file_texture_case3_sel="Menu\\MenuTextures\\cp\\stat\\cases\\case3_OVER.dds" _file_texture_case3_push="Menu\\MenuTextures\\cp\\stat\\cases\\case3_PRESS.dds" _file_texture_case3_dis="Menu\\MenuTextures\\cp\\stat\\cases\\case3_UP.dds" _file_texture_case4_normal="Menu\\MenuTextures\\cp\\stat\\cases\\case4_UP.dds" _file_texture_case4_sel="Menu\\MenuTextures\\cp\\stat\\cases\\case4_OVER.dds" _file_texture_case4_push="Menu\\MenuTextures\\cp\\stat\\cases\\case4_PRESS.dds" _file_texture_case4_dis="Menu\\MenuTextures\\cp\\stat\\cases\\case4_UP.dds" _file_texture_case5_normal="Menu\\MenuTextures\\cp\\stat\\cases\\case5_UP.dds" _file_texture_case5_sel="Menu\\MenuTextures\\cp\\stat\\cases\\case5_OVER.dds" _file_texture_case5_push="Menu\\MenuTextures\\cp\\stat\\cases\\case5_PRESS.dds" _file_texture_case5_dis="Menu\\MenuTextures\\cp\\stat\\cases\\case5_UP.dds" _file_texture_case6_normal="Menu\\MenuTextures\\cp\\stat\\cases\\case6_UP.dds" _file_texture_case6_sel="Menu\\MenuTextures\\cp\\stat\\cases\\case6_OVER.dds" _file_texture_case6_push="Menu\\MenuTextures\\cp\\stat\\cases\\case6_PRESS.dds" _file_texture_case6_dis="Menu\\MenuTextures\\cp\\stat\\cases\\case6_UP.dds" _file_texture_case7_normal="Menu\\MenuTextures\\cp\\stat\\cases\\case7_UP.dds" _file_texture_case7_sel="Menu\\MenuTextures\\cp\\stat\\cases\\case7_OVER.dds" _file_texture_case7_push="Menu\\MenuTextures\\cp\\stat\\cases\\case7_PRESS.dds" _file_texture_case7_dis="Menu\\MenuTextures\\cp\\stat\\cases\\case7_UP.dds" _file_texture_case8_normal="Menu\\MenuTextures\\cp\\stat\\cases\\case8_UP.dds" _file_texture_case8_sel="Menu\\MenuTextures\\cp\\stat\\cases\\case8_OVER.dds" _file_texture_case8_push="Menu\\MenuTextures\\cp\\stat\\cases\\case8_PRESS.dds" _file_texture_case8_dis="Menu\\MenuTextures\\cp\\stat\\cases\\case8_UP.dds" _file_texture_case9_normal="Menu\\MenuTextures\\cp\\stat\\cases\\case9_UP.dds" _file_texture_case9_sel="Menu\\MenuTextures\\cp\\stat\\cases\\case9_OVER.dds" _file_texture_case9_push="Menu\\MenuTextures\\cp\\stat\\cases\\case9_PRESS.dds" _file_texture_case9_dis="Menu\\MenuTextures\\cp\\stat\\cases\\case9_UP.dds" _file_texture_case10_normal="Menu\\MenuTextures\\cp\\stat\\cases\\case10_UP.dds" _file_texture_case10_sel="Menu\\MenuTextures\\cp\\stat\\cases\\case10_OVER.dds" _file_texture_case10_push="Menu\\MenuTextures\\cp\\stat\\cases\\case10_PRESS.dds" _file_texture_case10_dis="Menu\\MenuTextures\\cp\\stat\\cases\\case10_UP.dds" _file_texture_case11_normal="Menu\\MenuTextures\\cp\\stat\\cases\\case10_UP.dds" _file_texture_case11_sel="Menu\\MenuTextures\\cp\\stat\\cases\\case10_OVER.dds" _file_texture_case11_push="Menu\\MenuTextures\\cp\\stat\\cases\\case10_PRESS.dds" _file_texture_case11_dis="Menu\\MenuTextures\\cp\\stat\\cases\\case10_UP.dds" _file_case_buton_normal="" _file_case_buton_sel="Menu\\MenuTextures\\loadgame\\buton_cases_press.dds" _file_texture_arrow_up="Menu\\MenuTextures\\CSI_common\\common_CP_scrollButton_susPress.dds" _file_texture_arrow_down="Menu\\MenuTextures\\CSI_common\\common_CP_scrollButton_josPress.dds" _player_dimx=256 _player_dimy=64 -- cases names: button_dx=512 button_dy=32 _w_text=128 _h_text=16 -- players text: pl_alpha_text_normal = 255 pl_r_text_normal = 255 pl_g_text_normal = 205 pl_b_text_normal = 200 pl_alpha_text_sel = 255 pl_r_text_sel = 250 pl_g_text_sel = 250 pl_b_text_sel = 2 pl_alpha_text_push = 255 pl_r_text_push = 40 pl_g_text_push = 240 pl_b_text_push = 10 -- players buttons _alpha_player_normal=255 _alpha_player_sel=255 _alpha_player_push=255 _alpha_player_dis=0 alpha_sel=255 alpha_normal=0 _file_texture_stat_bgrd01="Menu\\MenuTextures\\cp\\stat\\CP_bgrd03.dds" -- lista cazuri : _player_font=1 _player_align=5 _player_font_scale_all = "0.6" _player_font_scale_sel = "0.6" _player_font_scale_push = "0.6" _but_font_no = 1 _but_align = 0 _sound_select="HIGHLIGHT" _sound_accept="ACCEPT" _level1_name_id ="TEXT0140" _level2_name_id ="TEXT0141" _level3_name_id ="TEXT0142" _level4_name_id ="TEXT0143" _level5_name_id ="TEXT0144" _level6_name_id ="Menu_Case_1_Name" _level7_name_id ="Menu_Case_2_Name" _level8_name_id ="Menu_Case_3_Name" _level9_name_id ="Menu_Case_4_Name" _level10_name_id ="Menu_Case_5_Name" _level11_name_id ="master_bonus_id" _file_texture_bgrd01="Menu\\MenuTextures\\cp\\stat\\CP_bgrd03.dds" _cp_common_bgrd01="Menu\\MenuTextures\\cp\\stat\\CP_bgrd01.dds" _cp_common_bgrd02="Menu\\MenuTextures\\cp\\stat\\CP_bgrd02.dds" _cp_common_bgrd04="Menu\\MenuTextures\\cp\\stat\\CP_bgrd04.dds" _cp_common_bgrd05="Menu\\MenuTextures\\cp\\stat\\CP_bgrd05.dds" _cp_common_bgrd06="Menu\\MenuTextures\\cp\\stat\\CP_bgrd06.dds" _cp_common_bgrd07="Menu\\MenuTextures\\cp\\common_CP_bgrd03.dds" _cp_common_bgrd08="Menu\\MenuTextures\\cp\\common_CP_bgrd04.dds" -- texte detalied statistics (dreapta) _fontscale_case_normal= "0.7" _fontscale_case_sel= "1.0" alpha_text_normal = 255 r_text_normal = 250 g_text_normal = 205 b_text_normal = 200 alpha_text_sel = 255 r_text_sel = 255 g_text_sel = 205 b_text_sel = 2 function stat_area() SetMaterial( 'stat_area', 0 ,_file_texture_stat_bgrd01, 255 ,255,255,255); SetMaterial( 'stat_area', 1 ,_file_texture_stat_bgrd01, 255 ,255,255,255); SetPos( 'stat_area',0 , 45, 114 ); SetDim( 'stat_area',0 , 512, 256 ); SetPos( 'stat_area',1 , 45, 114 ); SetDim( 'stat_area',1 , 512, 256 ); -- AddStaticObject( 'stat_area' , "loadgame_bgrd2" ); -- AddStaticObject( 'stat_area' , "loadgame_bgrd3" ); -- AddStaticObject( 'stat_area' , "loadgame_bgrd4" ); AddStaticObject( "stat_area" ,"stat_common_brgd01" ); AddStaticObject( "stat_area" ,"stat_common_brgd02" ); AddStaticObject( "stat_area" ,"stat_common_brgd04" ); AddStaticObject( "stat_area" ,"stat_common_brgd05" ); AddStaticObject( "stat_area" ,"stat_common_brgd06" ); AddStaticObject( "stat_area" ,"stat_common_brgd07" ); AddStaticObject( "stat_area" ,"stat_common_brgd08" ); AddStaticObject( "stat_area" ,"stat_text_cp" ); AddStaticObject( "stat_area" ,"casetxt_stat" ); AddStaticObject( "stat_area" ,"stat_common_back" ); AddStaticObject( "stat_area" ,"stat_common_acc" ); AddPushButton( "stat_area" ,"pb1_case"); AddPushButton( "stat_area" ,"pb2_case"); AddPushButton( "stat_area" ,"pb3_case"); AddPushButton( "stat_area" ,"pb4_case"); AddPushButton( "stat_area" ,"pb5_case"); AddPushButton( "stat_area" ,"pb6_case"); AddPushButton( "stat_area" ,"pb7_case"); AddPushButton( "stat_area" ,"pb8_case"); AddPushButton( "stat_area" ,"pb9_case"); AddPushButton( "stat_area" ,"pb10_case"); AddPushButton( "stat_area" ,"pb11_case"); AddStaticObject( 'stat_area' , "stat_pn" ); AddStaticObject( 'stat_area' , "stattxt_pn" ); AddStaticObject( 'stat_area' , "stattxt_rank" ); AddStaticObject( 'stat_area' , "stat_rank" ); -- AddStaticObject( 'stat_area' , "stattxt_score" ); AddStaticObject( 'stat_area' , "stat_score" ); AddStaticObject( 'stat_area' , "stattxt_bestrank" ); AddStaticObject( 'stat_area' , "stat_bestrank" ); -- AddStaticObject( 'stat_area' , "stattxt_bestscore" ); AddStaticObject( 'stat_area' , "stat_bestscore" ); AddStaticObject( 'stat_area' , "stattxt_quest" ); AddStaticObject( 'stat_area' , "stat_quest" ); AddStaticObject( 'stat_area' , "stattxt_evd" ); AddStaticObject( 'stat_area' , "stat_evd" ); AddStaticObject( 'stat_area' , "stattxt_hintq" ); AddStaticObject( 'stat_area' , "stat_hintq" ); AddStaticObject( 'stat_area' , "arrow_up_stat" ); AddStaticObject( 'stat_area' , "arrow_down_stat" ); AddStaticObject( 'stat_area' , "detstattxt_stat" ); GUISetVisible( 'stat_area', 0 ); end function casetxt_stat() SetMaterial( "casetxt_stat" , 0 , "" , 0 , 255 , 255 , 255 ); SetPos( "casetxt_stat" , 0 , 72 , 95 ); SetDim( "casetxt_stat" , 0 , 170 , 18 ); SetTxt( "casetxt_stat" , 1 , 4 , "Menu_Load_Cases" ); SetFontScale('casetxt_stat' , "0.85" ); SetTextColor( "casetxt_stat", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); end function detstattxt_stat() SetMaterial( "detstattxt_stat" , 0 , "" , 0 , 255 , 255 , 255 ); SetPos( "detstattxt_stat" , 0 , 258 , 95 ); SetDim( "detstattxt_stat" , 0 , 310 , 18 ); SetTxt( "detstattxt_stat" , 1 , 4 , "Menu_Statistics_Heading_DetailedStats" ); SetFontScale('detstattxt_stat' , "0.85" ); SetTextColor( "detstattxt_stat", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); end function stattxt_pn() SetMaterial( "stattxt_pn" , 0 , "" , 0 , 255 , 255 , 255 ); SetPos( "stattxt_pn" , 0 , 240 , 140 ); SetDim( "stattxt_pn" , 0 , 200 , 24 ); SetTxt( "stattxt_pn" , _but_font_no, 6 , "Menu_New_Investigator" ); SetFontScale('stattxt_pn' , _fontscale_case_normal); SetTextColor( "stattxt_pn", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); end function stat_pn() SetMaterial( "stat_pn" , 0 , "" , 0 , 255 , 255 , 255 ); SetPos( "stat_pn" , 0 , 450 , 140 ); SetDim( "stat_pn" , 0 , 140 , 24 ); SetTxt( "stat_pn" , _but_font_no, 4 , "" ); SetFontScale('stat_pn' , _fontscale_case_normal); SetTextColor( "stat_pn", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); end function stattxt_rank() SetMaterial( "stattxt_rank" , 0 , "" , 0 , 255 , 255 , 255 ); SetPos( "stattxt_rank" , 0 , 240 , 170 ); SetDim( "stattxt_rank" , 0 , 200 , 24 ); SetTxt( "stattxt_rank" , _but_font_no, 6 , "Menu_Statistics_Heading_Ranking_1" ); SetFontScale('stattxt_rank' , _fontscale_case_normal); SetTextColor( "stattxt_rank", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); end function stat_rank() SetMaterial( "stat_rank" , 0 , "" , 0 , 255 , 255 , 255 ); SetPos( "stat_rank" , 0 , 450 , 170 ); SetDim( "stat_rank" , 0 , 140 , 24 ); SetTxt( "stat_rank" , _but_font_no, 4 , "" ); SetFontScale('stat_rank' , _fontscale_case_normal); SetTextColor( "stat_rank", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); end function stattxt_score() SetMaterial( "stattxt_score" , 0 , "" , 0 , 255 , 255 , 255 ); SetPos( "stattxt_score" , 0 , 240 , 200 ); SetDim( "stattxt_score" , 0 , 200 , 24 ); SetTxt( "stattxt_score" , _but_font_no, 6 , "Menu_StatsPopup_Accuracy" ); SetFontScale('stattxt_score' , _fontscale_case_normal); SetTextColor( "stattxt_score", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); end function stat_score() SetMaterial( "stat_score" , 0 , "" , 0 , 255 , 255 , 255 ); SetPos( "stat_score" , 0 , 450 , 200 ); SetDim( "stat_score" , 0 , 140 , 24 ); SetTxt( "stat_score" , _but_font_no, 4 , "" ); SetFontScale('stat_score' , _fontscale_case_normal); SetTextColor( "stat_score", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); end function stattxt_bestrank() SetMaterial( "stattxt_bestrank" , 0 , "" , 0 , 255 , 255 , 255 ); SetPos( "stattxt_bestrank" , 0 , 240 , 230 ); SetDim( "stattxt_bestrank" , 0 , 200 , 24 ); SetTxt( "stattxt_bestrank" , _but_font_no, 6 , "Menu_StatsPopup_Best_ranking" ); SetFontScale('stattxt_bestrank' , _fontscale_case_normal); SetTextColor( "stattxt_bestrank", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); end function stattxt_hintq() SetMaterial( "stattxt_hintq" , 0 , "" , 0 , 255 , 255 , 255 ); SetPos( "stattxt_hintq" , 0 , 240 , 350 ); SetDim( "stattxt_hintq" , 0 , 200 , 24 ); SetTxt( "stattxt_hintq" , _but_font_no, 6 , "Menu_StatsPopup_Hints" ); SetFontScale('stattxt_hintq' , _fontscale_case_normal); SetTextColor( "stattxt_hintq", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); end function stat_hintq() SetMaterial( "stat_hintq" , 0 , "" , 0 , 255 , 255 , 255 ); SetPos( "stat_hintq" , 0 , 450 , 350 ); SetDim( "stat_hintq" , 0 , 140 , 24 ); SetTxt( "stat_hintq" , _but_font_no, 4 , "" ); SetFontScale('stat_hintq' , _fontscale_case_normal); SetTextColor( "stat_hintq", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); end function stat_bestrank() SetMaterial( "stat_bestrank" , 0 , "" , 0 , 255 , 255 , 255 ); SetPos( "stat_bestrank" , 0 , 450 , 230 ); SetDim( "stat_bestrank" , 0 , 140 , 24 ); SetTxt( "stat_bestrank" , _but_font_no, 4 , "" ); SetFontScale('stat_bestrank' , _fontscale_case_normal); SetTextColor( "stat_bestrank", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); end function stattxt_bestscore() SetMaterial( "stattxt_bestscore" , 0 , "" , 0 , 255 , 255 , 255 ); SetPos( "stattxt_bestscore" , 0 , 240 , 260 ); SetDim( "stattxt_bestscore" , 0 , 200 , 24 ); SetTxt( "stattxt_bestscore" , _but_font_no, 6 , "Menu_StatsPopup_Accuracy" ); SetFontScale('stattxt_bestscore' , _fontscale_case_normal); SetTextColor( "stattxt_bestscore", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); end function stat_bestscore() SetMaterial( "stat_bestscore" , 0 , "" , 0 , 255 , 255 , 255 ); SetPos( "stat_bestscore" , 0 , 450 , 260 ); SetDim( "stat_bestscore" , 0 , 140 , 24 ); SetTxt( "stat_bestscore" , _but_font_no, 4 , "" ); SetFontScale('stat_bestscore' , _fontscale_case_normal); SetTextColor( "stat_bestscore", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); end function stattxt_quest() SetMaterial( "stattxt_quest" , 0 , "" , 0 , 255 , 255 , 255 ); SetPos( "stattxt_quest" , 0 , 240 , 290 ); SetDim( "stattxt_quest" , 0 , 200 , 24 ); SetTxt( "stattxt_quest" , _but_font_no, 6 , "Menu_StatsPopup_questions_asked" ); SetFontScale('stattxt_quest' , _fontscale_case_normal); SetTextColor( "stattxt_quest", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); end function stat_quest() SetMaterial( "stat_quest" , 0 , "" , 0 , 255 , 255 , 255 ); SetPos( "stat_quest" , 0 , 450 , 290 ); SetDim( "stat_quest" , 0 , 140 , 24 ); SetTxt( "stat_quest" , _but_font_no, 4 , "" ); SetFontScale('stat_quest' , _fontscale_case_normal); SetTextColor( "stat_quest", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); end function stattxt_evd() SetMaterial( "stattxt_evd" , 0 , "" , 0 , 255 , 255 , 255 ); SetPos( "stattxt_evd" , 0 , 240 , 320 ); SetDim( "stattxt_evd" , 0 , 200 , 24 ); SetTxt( "stattxt_evd" , _but_font_no, 6 , "Menu_StatsPopup_Total_evidence" ); SetFontScale('stattxt_evd' , _fontscale_case_normal); SetTextColor( "stattxt_evd", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); end function stat_evd() SetMaterial( "stat_evd" , 0 , "" , 0 , 255 , 255 , 255 ); SetPos( "stat_evd" , 0 , 450 , 320 ); SetDim( "stat_evd" , 0 , 140 , 24 ); SetTxt( "stat_evd" , _but_font_no, 4 , "" ); SetFontScale('stat_evd' , _fontscale_case_normal); SetTextColor( "stat_evd", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); end function stat_common_brgd01() SetMaterial( "stat_common_brgd01" , 0 , _cp_common_bgrd01 , 255 , 255 , 255 , 255 ); SetPos( "stat_common_brgd01" , 0 , 45 , 40 ); SetDim( "stat_common_brgd01" , 0 , 512 , 128 ); end function stat_common_brgd02() SetMaterial( "stat_common_brgd02" , 0 , _cp_common_bgrd02 , 255 , 255 , 255 , 255 ); SetPos( "stat_common_brgd02" , 0 , 557 , 40 ); SetDim( "stat_common_brgd02" , 0 , 64 , 128 ); end function stat_common_brgd04() SetMaterial( "stat_common_brgd04" , 0 , _cp_common_bgrd04 , 255 , 255 , 255 , 255 ); SetPos( "stat_common_brgd04" , 0 , 557 , 114 ); SetDim( "stat_common_brgd04" , 0 , 64 , 256 ); end function stat_common_brgd05() SetMaterial( "stat_common_brgd05" , 0 , _cp_common_bgrd05 , 255 , 255 , 255 , 255 ); SetPos( "stat_common_brgd05" , 0 , 45 , 370 ); SetDim( "stat_common_brgd05" , 0 , 512 , 64 ); end function stat_common_brgd06() SetMaterial( "stat_common_brgd06" , 0 , _cp_common_bgrd06 , 255 , 255 , 255 , 255 ); SetPos( "stat_common_brgd06" , 0 , 557 , 370 ); SetDim( "stat_common_brgd06" , 0 , 64 , 64 ); end function stat_common_brgd07() SetMaterial( "stat_common_brgd07" , 0 , _cp_common_bgrd07 , 255 , 255 , 255 , 255 ); SetPos( "stat_common_brgd07" , 0 , 45 , 397 ); SetDim( "stat_common_brgd07" , 0 , 512 , 64 ); end function stat_common_brgd08() SetMaterial( "stat_common_brgd08" , 0 , _cp_common_bgrd08 , 255 , 255 , 255 , 255 ); SetPos( "stat_common_brgd08" , 0 , 557 , 397 ); SetDim( "stat_common_brgd08" , 0 , 64 , 64 ); end function infotext_stat() SetMaterial( 'infotext_stat', 0 , "" , 0 ,255,255,255); SetPos( 'infotext_stat' , 0 , 360 , 138 ); SetDim( 'infotext_stat' , 0 , 260 , 240 ); end function arrow_up_stat() SetMaterial( 'arrow_up_stat', 0 ,_file_texture_arrow_up, 255 ,255,255,255); SetPos( 'arrow_up_stat' , 0 , 210 , 100 ); SetDim( 'arrow_up_stat' , 0 , 32 , 16 ); end function arrow_down_stat() SetMaterial( 'arrow_down_stat', 0 ,_file_texture_arrow_down, 255 ,255,255,255); SetPos( 'arrow_down_stat' , 0 , 210 , 378 ); SetDim( 'arrow_down_stat' , 0 , 32 , 16 ); end function pb1_case() SetMaterial( 'pb1_case', 0 ,_file_texture_case1_normal, _alpha_player_normal ,255,255,255); SetMaterial( 'pb1_case', 1 ,_file_texture_case1_sel, _alpha_player_sel ,255,255,255); SetMaterial( 'pb1_case', 2 ,_file_texture_case1_push, _alpha_player_push ,255,255,255); SetMaterial( 'pb1_case', 3 ,_file_texture_case1_dis, _alpha_player_dis ,255,255,255); SetDim( 'pb1_case', 0 , _player_dimx , _player_dimy ); SetDim( 'pb1_case', 1 , _player_dimx , _player_dimy ); SetDim( 'pb1_case', 2 , _player_dimx , _player_dimy ); SetDim( 'pb1_case', 3 , _player_dimx , _player_dimy ); SetTxt( 'pb1_case', _player_font , _player_align , _level1_name_id ); SetFontScale("pb1_case", _player_font_scale_all ); SetFontScale("pb1_case", _player_font_scale_sel , 1 ); SetFontScale("pb1_case", _player_font_scale_push , 2 ); SetTextColor("pb1_case", pl_alpha_text_normal, pl_r_text_normal , pl_g_text_normal , pl_b_text_normal ); SetTextColor("pb1_case", pl_alpha_text_sel , pl_r_text_sel , pl_g_text_sel , pl_b_text_sel ,1 ); SetTextColor("pb1_case", pl_alpha_text_push , pl_r_text_push , pl_g_text_push , pl_b_text_push ,2 ); SetPush( "pb1_case", _function_push_player ); SetSel( "pb1_case", _function_sel_player ); SetSndSelect( "pb1_case" , _sound_select ); SetSndPush( "pb1_case" , _sound_accept ); end function pb2_case() SetMaterial( 'pb2_case', 0 ,_file_texture_case2_normal, _alpha_player_normal ,255,255,255); SetMaterial( 'pb2_case', 1 ,_file_texture_case2_sel, _alpha_player_sel ,255,255,255); SetMaterial( 'pb2_case', 2 ,_file_texture_case2_push, _alpha_player_push ,255,255,255); SetMaterial( 'pb2_case', 3 ,_file_texture_case2_dis, _alpha_player_dis ,255,255,255); SetDim( 'pb2_case', 0 , _player_dimx , _player_dimy ); SetDim( 'pb2_case', 1 , _player_dimx , _player_dimy ); SetDim( 'pb2_case', 2 , _player_dimx , _player_dimy ); SetDim( 'pb2_case', 3 , _player_dimx , _player_dimy ); SetTxt( 'pb2_case', _player_font , _player_align , _level2_name_id ); SetFontScale("pb2_case", _player_font_scale_all ); SetFontScale("pb2_case", _player_font_scale_sel , 1 ); SetFontScale("pb2_case", _player_font_scale_push , 2 ); SetTextColor("pb2_case", pl_alpha_text_normal, pl_r_text_normal , pl_g_text_normal , pl_b_text_normal ); SetTextColor("pb2_case", pl_alpha_text_sel , pl_r_text_sel , pl_g_text_sel , pl_b_text_sel ,1 ); SetTextColor("pb2_case", pl_alpha_text_push , pl_r_text_push , pl_g_text_push , pl_b_text_push ,2 ); SetPush( "pb2_case", _function_push_player ); SetSel( "pb2_case", _function_sel_player ); SetSndSelect( "pb2_case" , _sound_select ); SetSndPush( "pb2_case" , _sound_accept ); end function pb3_case() SetMaterial( 'pb3_case', 0 ,_file_texture_case3_normal, _alpha_player_normal ,255,255,255); SetMaterial( 'pb3_case', 1 ,_file_texture_case3_sel, _alpha_player_sel ,255,255,255); SetMaterial( 'pb3_case', 2 ,_file_texture_case3_push, _alpha_player_push ,255,255,255); SetMaterial( 'pb3_case', 3 ,_file_texture_case3_dis, _alpha_player_dis ,255,255,255); SetDim( 'pb3_case', 0 , _player_dimx , _player_dimy ); SetDim( 'pb3_case', 1 , _player_dimx , _player_dimy ); SetDim( 'pb3_case', 2 , _player_dimx , _player_dimy ); SetDim( 'pb3_case', 3 , _player_dimx , _player_dimy ); SetTxt( 'pb3_case', _player_font , _player_align , _level3_name_id ); SetFontScale("pb3_case", _player_font_scale_all ); SetFontScale("pb3_case", _player_font_scale_sel , 1 ); SetFontScale("pb3_case", _player_font_scale_push , 2 ); SetTextColor("pb3_case", pl_alpha_text_normal, pl_r_text_normal , pl_g_text_normal , pl_b_text_normal ); SetTextColor("pb3_case", pl_alpha_text_sel , pl_r_text_sel , pl_g_text_sel , pl_b_text_sel ,1 ); SetTextColor("pb3_case", pl_alpha_text_push , pl_r_text_push , pl_g_text_push , pl_b_text_push ,2 ); SetPush( "pb3_case", _function_push_player ); SetSel( "pb3_case", _function_sel_player ); SetSndSelect( "pb3_case" , _sound_select ); SetSndPush( "pb3_case" , _sound_accept ); end function pb4_case() SetMaterial( 'pb4_case', 0 ,_file_texture_case4_normal, _alpha_player_normal ,255,255,255); SetMaterial( 'pb4_case', 1 ,_file_texture_case4_sel, _alpha_player_sel ,255,255,255); SetMaterial( 'pb4_case', 2 ,_file_texture_case4_push, _alpha_player_push ,255,255,255); SetMaterial( 'pb4_case', 3 ,_file_texture_case4_dis, _alpha_player_dis ,255,255,255); SetDim( 'pb4_case', 0 , _player_dimx , _player_dimy ); SetDim( 'pb4_case', 1 , _player_dimx , _player_dimy ); SetDim( 'pb4_case', 2 , _player_dimx , _player_dimy ); SetDim( 'pb4_case', 3 , _player_dimx , _player_dimy ); SetTxt( 'pb4_case', _player_font , _player_align , _level4_name_id ); SetFontScale("pb4_case", _player_font_scale_all ); SetFontScale("pb4_case", _player_font_scale_sel , 1 ); SetFontScale("pb4_case", _player_font_scale_push , 2 ); SetTextColor("pb4_case", pl_alpha_text_normal, pl_r_text_normal , pl_g_text_normal , pl_b_text_normal ); SetTextColor("pb4_case", pl_alpha_text_sel , pl_r_text_sel , pl_g_text_sel , pl_b_text_sel ,1 ); SetTextColor("pb4_case", pl_alpha_text_push , pl_r_text_push , pl_g_text_push , pl_b_text_push ,2 ); SetPush( "pb4_case", _function_push_player ); SetSel( "pb4_case", _function_sel_player ); SetSndSelect( "pb4_case" , _sound_select ); SetSndPush( "pb4_case" , _sound_accept ); end function pb5_case() SetMaterial( 'pb5_case', 0 ,_file_texture_case5_normal, _alpha_player_normal ,255,255,255); SetMaterial( 'pb5_case', 1 ,_file_texture_case5_sel, _alpha_player_sel ,255,255,255); SetMaterial( 'pb5_case', 2 ,_file_texture_case5_push, _alpha_player_push ,255,255,255); SetMaterial( 'pb5_case', 3 ,_file_texture_case5_dis, _alpha_player_dis ,255,255,255); SetDim( 'pb5_case', 0 , _player_dimx , _player_dimy ); SetDim( 'pb5_case', 1 , _player_dimx , _player_dimy ); SetDim( 'pb5_case', 2 , _player_dimx , _player_dimy ); SetDim( 'pb5_case', 3 , _player_dimx , _player_dimy ); SetTxt( 'pb5_case', _player_font , _player_align , _level5_name_id ); SetFontScale("pb5_case", _player_font_scale_all ); SetFontScale("pb5_case", _player_font_scale_sel , 1 ); SetFontScale("pb5_case", _player_font_scale_push , 2 ); SetTextColor("pb5_case", pl_alpha_text_normal, pl_r_text_normal , pl_g_text_normal , pl_b_text_normal ); SetTextColor("pb5_case", pl_alpha_text_sel , pl_r_text_sel , pl_g_text_sel , pl_b_text_sel ,1 ); SetTextColor("pb5_case", pl_alpha_text_push , pl_r_text_push , pl_g_text_push , pl_b_text_push ,2 ); SetPush( "pb5_case", _function_push_player ); SetSel( "pb5_case", _function_sel_player ); SetSndSelect( "pb5_case" , _sound_select ); SetSndPush( "pb5_case" , _sound_accept ); end function pb6_case() SetMaterial( 'pb6_case', 0 ,_file_texture_case6_normal, _alpha_player_normal ,255,255,255); SetMaterial( 'pb6_case', 1 ,_file_texture_case6_sel, _alpha_player_sel ,255,255,255); SetMaterial( 'pb6_case', 2 ,_file_texture_case6_push, _alpha_player_push ,255,255,255); SetMaterial( 'pb6_case', 3 ,_file_texture_case6_dis, _alpha_player_dis ,255,255,255); SetDim( 'pb6_case', 0 , _player_dimx , _player_dimy ); SetDim( 'pb6_case', 1 , _player_dimx , _player_dimy ); SetDim( 'pb6_case', 2 , _player_dimx , _player_dimy ); SetDim( 'pb6_case', 3 , _player_dimx , _player_dimy ); SetTxt( 'pb6_case', _player_font , _player_align , _level6_name_id ); SetFontScale("pb6_case", _player_font_scale_all ); SetFontScale("pb6_case", _player_font_scale_sel , 1 ); SetFontScale("pb6_case", _player_font_scale_push , 2 ); SetTextColor("pb6_case", pl_alpha_text_normal, pl_r_text_normal , pl_g_text_normal , pl_b_text_normal ); SetTextColor("pb6_case", pl_alpha_text_sel , pl_r_text_sel , pl_g_text_sel , pl_b_text_sel ,1 ); SetTextColor("pb6_case", pl_alpha_text_push , pl_r_text_push , pl_g_text_push , pl_b_text_push ,2 ); SetPush( "pb6_case", _function_push_player ); SetSel( "pb6_case", _function_sel_player ); SetSndSelect( "pb6_case" , _sound_select ); SetSndPush( "pb6_case" , _sound_accept ); end function pb7_case() SetMaterial( 'pb7_case', 0 ,_file_texture_case7_normal, _alpha_player_normal ,255,255,255); SetMaterial( 'pb7_case', 1 ,_file_texture_case7_sel, _alpha_player_sel ,255,255,255); SetMaterial( 'pb7_case', 2 ,_file_texture_case7_push, _alpha_player_push ,255,255,255); SetMaterial( 'pb7_case', 3 ,_file_texture_case7_dis, _alpha_player_dis ,255,255,255); SetDim( 'pb7_case', 0 , _player_dimx , _player_dimy ); SetDim( 'pb7_case', 1 , _player_dimx , _player_dimy ); SetDim( 'pb7_case', 2 , _player_dimx , _player_dimy ); SetDim( 'pb7_case', 3 , _player_dimx , _player_dimy ); SetTxt( 'pb7_case', _player_font , _player_align , _level7_name_id ); SetFontScale("pb7_case", _player_font_scale_all ); SetFontScale("pb7_case", _player_font_scale_sel , 1 ); SetFontScale("pb7_case", _player_font_scale_push , 2 ); SetTextColor("pb7_case", pl_alpha_text_normal, pl_r_text_normal , pl_g_text_normal , pl_b_text_normal ); SetTextColor("pb7_case", pl_alpha_text_sel , pl_r_text_sel , pl_g_text_sel , pl_b_text_sel ,1 ); SetTextColor("pb7_case", pl_alpha_text_push , pl_r_text_push , pl_g_text_push , pl_b_text_push ,2 ); SetPush( "pb7_case", _function_push_player ); SetSel( "pb7_case", _function_sel_player ); SetSndSelect( "pb7_case" , _sound_select ); SetSndPush( "pb7_case" , _sound_accept ); end function pb8_case() SetMaterial( 'pb8_case', 0 ,_file_texture_case8_normal, _alpha_player_normal ,255,255,255); SetMaterial( 'pb8_case', 1 ,_file_texture_case8_sel, _alpha_player_sel ,255,255,255); SetMaterial( 'pb8_case', 2 ,_file_texture_case8_push, _alpha_player_push ,255,255,255); SetMaterial( 'pb8_case', 3 ,_file_texture_case8_dis, _alpha_player_dis ,255,255,255); SetDim( 'pb8_case', 0 , _player_dimx , _player_dimy ); SetDim( 'pb8_case', 1 , _player_dimx , _player_dimy ); SetDim( 'pb8_case', 2 , _player_dimx , _player_dimy ); SetDim( 'pb8_case', 3 , _player_dimx , _player_dimy ); SetTxt( 'pb8_case', _player_font , _player_align , _level8_name_id ); SetFontScale("pb8_case", _player_font_scale_all ); SetFontScale("pb8_case", _player_font_scale_sel , 1 ); SetFontScale("pb8_case", _player_font_scale_push , 2 ); SetTextColor("pb8_case", pl_alpha_text_normal, pl_r_text_normal , pl_g_text_normal , pl_b_text_normal ); SetTextColor("pb8_case", pl_alpha_text_sel , pl_r_text_sel , pl_g_text_sel , pl_b_text_sel ,1 ); SetTextColor("pb8_case", pl_alpha_text_push , pl_r_text_push , pl_g_text_push , pl_b_text_push ,2 ); SetPush( "pb8_case", _function_push_player ); SetSel( "pb8_case", _function_sel_player ); SetSndSelect( "pb8_case" , _sound_select ); SetSndPush( "pb8_case" , _sound_accept ); end function pb9_case() SetMaterial( 'pb9_case', 0 ,_file_texture_case9_normal, _alpha_player_normal ,255,255,255); SetMaterial( 'pb9_case', 1 ,_file_texture_case9_sel, _alpha_player_sel ,255,255,255); SetMaterial( 'pb9_case', 2 ,_file_texture_case9_push, _alpha_player_push ,255,255,255); SetMaterial( 'pb9_case', 3 ,_file_texture_case9_dis, _alpha_player_dis ,255,255,255); SetDim( 'pb9_case', 0 , _player_dimx , _player_dimy ); SetDim( 'pb9_case', 1 , _player_dimx , _player_dimy ); SetDim( 'pb9_case', 2 , _player_dimx , _player_dimy ); SetDim( 'pb9_case', 3 , _player_dimx , _player_dimy ); SetTxt( 'pb9_case', _player_font , _player_align , _level9_name_id ); SetFontScale("pb9_case", _player_font_scale_all ); SetFontScale("pb9_case", _player_font_scale_sel , 1 ); SetFontScale("pb9_case", _player_font_scale_push , 2 ); SetTextColor("pb9_case", pl_alpha_text_normal, pl_r_text_normal , pl_g_text_normal , pl_b_text_normal ); SetTextColor("pb9_case", pl_alpha_text_sel , pl_r_text_sel , pl_g_text_sel , pl_b_text_sel ,1 ); SetTextColor("pb9_case", pl_alpha_text_push , pl_r_text_push , pl_g_text_push , pl_b_text_push ,2 ); SetPush( "pb9_case", _function_push_player ); SetSel( "pb9_case", _function_sel_player ); SetSndSelect( "pb9_case" , _sound_select ); SetSndPush( "pb9_case" , _sound_accept ); end function pb10_case() SetMaterial( 'pb10_case', 0 ,_file_texture_case10_normal, _alpha_player_normal ,255,255,255); SetMaterial( 'pb10_case', 1 ,_file_texture_case10_sel, _alpha_player_sel ,255,255,255); SetMaterial( 'pb10_case', 2 ,_file_texture_case10_push, _alpha_player_push ,255,255,255); SetMaterial( 'pb10_case', 3 ,_file_texture_case10_dis, _alpha_player_dis ,255,255,255); SetDim( 'pb10_case', 0 , _player_dimx , _player_dimy ); SetDim( 'pb10_case', 1 , _player_dimx , _player_dimy ); SetDim( 'pb10_case', 2 , _player_dimx , _player_dimy ); SetDim( 'pb10_case', 3 , _player_dimx , _player_dimy ); SetTxt( 'pb10_case', _player_font , _player_align , _level10_name_id ); SetFontScale("pb10_case", _player_font_scale_all ); SetFontScale("pb10_case", _player_font_scale_sel , 1 ); SetFontScale("pb10_case", _player_font_scale_push , 2 ); SetTextColor("pb10_case", pl_alpha_text_normal, pl_r_text_normal , pl_g_text_normal , pl_b_text_normal ); SetTextColor("pb10_case", pl_alpha_text_sel , pl_r_text_sel , pl_g_text_sel , pl_b_text_sel ,1 ); SetTextColor("pb10_case", pl_alpha_text_push , pl_r_text_push , pl_g_text_push , pl_b_text_push ,2 ); SetPush( "pb10_case", _function_push_player ); SetSel( "pb10_case", _function_sel_player ); SetSndSelect( "pb10_case" , _sound_select ); SetSndPush( "pb10_case" , _sound_accept ); end function pb11_case() SetMaterial( 'pb11_case', 0 ,_file_texture_case11_normal, _alpha_player_normal ,255,255,255); SetMaterial( 'pb11_case', 1 ,_file_texture_case11_sel, _alpha_player_sel ,255,255,255); SetMaterial( 'pb11_case', 2 ,_file_texture_case11_push, _alpha_player_push ,255,255,255); SetMaterial( 'pb11_case', 3 ,_file_texture_case11_dis, _alpha_player_dis ,255,255,255); SetDim( 'pb11_case', 0 , _player_dimx , _player_dimy ); SetDim( 'pb11_case', 1 , _player_dimx , _player_dimy ); SetDim( 'pb11_case', 2 , _player_dimx , _player_dimy ); SetDim( 'pb11_case', 3 , _player_dimx , _player_dimy ); SetTxt( 'pb11_case', _player_font , _player_align , _level11_name_id ); SetFontScale("pb11_case", _player_font_scale_all ); SetFontScale("pb11_case", _player_font_scale_sel , 1 ); SetFontScale("pb11_case", _player_font_scale_push , 2 ); SetTextColor("pb11_case", pl_alpha_text_normal, pl_r_text_normal , pl_g_text_normal , pl_b_text_normal ); SetTextColor("pb11_case", pl_alpha_text_sel , pl_r_text_sel , pl_g_text_sel , pl_b_text_sel ,1 ); SetTextColor("pb11_case", pl_alpha_text_push , pl_r_text_push , pl_g_text_push , pl_b_text_push ,2 ); SetPush( "pb11_case", _function_push_extra_extra ); SetSel( "pb11_case", _function_sel_extra_extra ); SetSndSelect( "pb11_case" , _sound_select ); SetSndPush( "pb11_case" , _sound_accept ); end function stat_text_cp() SetMaterial( "stat_text_cp" , 0 , "" , 0 , 255 , 255 , 255 ); SetPos( "stat_text_cp" , 0 , 28 + 45 , 52 ); SetDim( "stat_text_cp" , 0 , 100 , 24 ); SetTxt( "stat_text_cp" , _but_font_no, 5 , "Menu_Load_Heading_Stats" ); SetFontScale('stat_text_cp' , _fontscale_case_sel ); SetTextColor( "stat_text_cp", alpha_text_sel , r_text_sel , g_text_sel , b_text_sel ); SetTextPosition( "stat_text_cp" , 0 , 0 , 142 , _h_text ); end function stat_common_back() SetMaterial( "stat_common_back" , 0 , _cp_common_back , 255 , 255 , 255 , 255 ); SetPos( "stat_common_back" , 0 , 64 , 392 ); SetDim( "stat_common_back" , 0 , _dec_but_dx , _dec_but_dy ); SetTxt( "stat_common_back" , _dec_but_font_no, 5 , "back" ); SetFontScale('stat_common_back' , _fontscale_dec_buttons); SetTextColor( "stat_common_back", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); SetTextPosition( 'stat_common_back', _back_bt_offset_x ,_back_bt_offset_y , _back_bt_dx, _back_bt_dy ); end function stat_common_acc() SetMaterial( "stat_common_acc" , 0 , _cp_common_acc , 255 , 255 , 255 , 255 ); SetPos( "stat_common_acc" , 0 , 460 , 392 ); SetDim( "stat_common_acc" , 0 , _dec_but_dx , _dec_but_dy ); SetTxt( "stat_common_acc" , _dec_but_font_no, 5 , "Menu_Statistics_ViewExtras_Label" ); SetFontScale('stat_common_acc' , _fontscale_dec_buttons); SetTextColor( "stat_common_acc", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); SetTextPosition( 'stat_common_acc', _acc_bt_offset_x ,_acc_bt_offset_y , _acc_bt_dx, _acc_bt_dy ); end