-- area for select & load player _function_push_player="AcceptPlayer" _function_sel_player="SelectPlayer" _function_sel_case="SelectCase" _function_accept_case1 = "LoadCase1" _function_accept_case2 = "LoadCase2" _function_accept_case3 = "LoadCase3" _function_accept_case4 = "LoadCase4" _function_accept_case5 = "LoadCase5" _function_accept_case6 = "LoadCase6" _function_accept_case7 = "LoadCase7" _function_accept_case8 = "LoadCase8" _function_accept_case9 = "LoadCase9" _function_accept_case10 = "LoadCase10" _function_accept_restart_case = "LoadRestartCase" _function_accept_load = "LoadSavedCase" _file_texture_player_normal="" _file_texture_player_sel="Menu\\MenuTextures\\loadgame\\buton_inv_press.dds" _file_texture_player_push="Menu\\MenuTextures\\loadgame\\buton_inv_press.dds" _file_texture_player_dis="" _file_case_buton_normal="" _file_case_buton_sel="Menu\\MenuTextures\\loadgame\\buton_cases_press.dds" _player_dimx=256 _player_dimy=32 -- 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 = 200 pl_g_text_normal = 200 pl_b_text_normal = 200 pl_alpha_text_sel = 255 pl_r_text_sel = 240 pl_g_text_sel = 240 pl_b_text_sel = 10 pl_alpha_text_push = 255 pl_r_text_push = 40 pl_g_text_push = 240 pl_b_text_push = 10 -- case texts colors : alpha_text_normal = 255 r_text_normal = 200 g_text_normal = 200 b_text_normal = 200 alpha_text_sel = 255 r_text_sel = 255 g_text_sel = 205 b_text_sel = 10 alpha_text_dis = 255 r_text_dis = 50 g_text_dis = 70 b_text_dis = 70 -- players buttons _alpha_player_normal=0 _alpha_player_sel=255 _alpha_player_push=255 _alpha_player_dis=0 alpha_sel=255 alpha_normal=0 _file_texture_player_bgrd01="Menu\\MenuTextures\\loadgame\\CP_bgrd01.dds" _file_texture_player_bgrd02="Menu\\MenuTextures\\loadgame\\CP_bgrd02.dds" _file_texture_player_bgrd03="Menu\\MenuTextures\\loadgame\\CP_bgrd03.dds" _file_texture_player_bgrd04="Menu\\MenuTextures\\loadgame\\CP_bgrd04.dds" _player_font=1 _player_align=0 _player_font_scale_all = "0.90" _player_font_scale_sel = "0.90" _player_font_scale_push = "0.90" _fontscale_case_normal= "0.9" _fontscale_case_sel= "0.90" _sound_select="HIGHLIGHT" _sound_accept="ACCEPT" _but_font_no = 1 _but_align = 0 _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" _cp_common_bgrd01="Menu\\MenuTextures\\cp\\common_CP_bgrd01.dds" _cp_common_bgrd02="Menu\\MenuTextures\\cp\\common_CP_bgrd02.dds" _cp_common_bgrd03="Menu\\MenuTextures\\cp\\common_CP_bgrd03.dds" _cp_common_bgrd04="Menu\\MenuTextures\\cp\\common_CP_bgrd04.dds" function player_area() SetMaterial( 'player_area', 0 ,_file_texture_player_bgrd01, 255 ,255,255,255); SetMaterial( 'player_area', 1 ,_file_texture_player_bgrd01, 255 ,255,255,255); SetPos( 'player_area',0 , 45, 107 ); SetDim( 'player_area',0 , 512, 256 ); SetPos( 'player_area',1 , 45, 107 ); SetDim( 'player_area',1 , 512, 256 ); AddStaticObject( 'player_area' , "loadgame_bgrd2" ); AddStaticObject( 'player_area' , "loadgame_bgrd3" ); AddStaticObject( 'player_area' , "loadgame_bgrd4" ); AddStaticObject( "player_area" ,"lc_common_brgd01" ); AddStaticObject( "player_area" ,"lc_common_brgd02" ); AddStaticObject( "player_area" ,"lc_common_brgd03" ); AddStaticObject( "player_area" ,"lc_common_brgd04" ); AddStaticObject( "player_area" ,"lc_common_back" ); AddStaticObject( "player_area" ,"lc_common_x" ); AddStaticObject( "player_area" ,"lc_common_y" ); AddStaticObject( "player_area" ,"lc_common_acc" ); AddStaticObject( "player_area" ,"lc_text_cp" ); AddStaticObject( 'player_area' , "case_picture" ); AddStaticObject( 'player_area' , "lc_inprg" ); AddStaticObject( 'player_area' , "lc_fin" ); AddStaticObject( 'player_area' , "lc_available" ); AddPushButton( "player_area" ,"pb1_player"); AddPushButton( "player_area" ,"pb2_player"); AddPushButton( "player_area" ,"pb3_player"); AddPushButton( "player_area" ,"pb4_player"); AddPushButton( "player_area" ,"pb5_player"); AddPushButton( "player_area" ,"pb6_player"); AddPushButton( "player_area" ,"pb7_player"); AddPushButton( "player_area" ,"pb8_player"); AddPushButton( "player_area" ,"pb9_player"); AddPushButton( "player_area" ,"pb10_player"); AddPushButton( "player_area" ,"pb11_player"); AddPushButton( "player_area" ,"pb12_player"); AddPushButton( "player_area" ,"pb13_player"); AddPushButton( "player_area" ,"pb14_player"); AddPushButton( "player_area" ,"pb15_player"); AddPushButton( "player_area" ,"pb16_player"); AddPushButton( "player_area" ,"case1_button" ); AddPushButton( "player_area" ,"case2_button" ); AddPushButton( "player_area" ,"case3_button" ); AddPushButton( "player_area" ,"case4_button" ); AddPushButton( "player_area" ,"case5_button" ); AddPushButton( "player_area" ,"case6_button" ); AddPushButton( "player_area" ,"case7_button" ); AddPushButton( "player_area" ,"case8_button" ); AddPushButton( "player_area" ,"case9_button" ); AddPushButton( "player_area" ,"case10_button" ); AddPushButton( "player_area" ,"pbcase_startover" ); AddPushButton( "player_area" ,"pbcase_load" ); AddStaticObject( 'player_area' , "arrow_up_players" ); AddStaticObject( 'player_area' , "arrow_up_cases" ); AddStaticObject( 'player_area' , "arrow_down_players" ); AddStaticObject( 'player_area' , "arrow_down_cases" ); AddStaticObject( 'player_area' , "txtcases_lc" ); AddStaticObject( 'player_area' , "txtuser_lc" ); AddStaticObject( 'player_area' , "lc_damaged" ); GUISetVisible( 'player_area', 0 ); SetChildrenPos( 'player_area', 60 , 40 , 0 , 20 ); end function txtuser_lc() SetMaterial( "txtuser_lc" , 0 , "" , 0 , 255 , 255 , 255 ); SetPos( "txtuser_lc" , 0 , 74 , 90 ); SetDim( "txtuser_lc" , 0 , 170 , 16 ); SetTxt( "txtuser_lc" , _but_font_no, 4 , "Menu_Load_Profiles" ); SetFontScale('txtuser_lc' , _fontscale_case_normal); SetTextColor( "txtuser_lc", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); end function txtcases_lc() SetMaterial( "txtcases_lc" , 0 , "" , 0 , 255 , 255 , 255 ); SetPos( "txtcases_lc" , 0 , 270 , 90 ); SetDim( "txtcases_lc" , 0 , 280 , 16 ); SetTxt( "txtcases_lc" , _but_font_no, 4 , "Menu_Load_Cases" ); SetFontScale('txtcases_lc' , _fontscale_case_normal); SetTextColor( "txtcases_lc", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); end function lc_damaged() SetMaterial( "lc_damaged" , 0 , "" , 170 , 0 , 0 , 0 ); SetPos( "lc_damaged" , 0 , 272 , 115 ); SetDim( "lc_damaged" , 0 , 295 , 250 ); SetTxt( "lc_damaged" , _but_font_no, 1 , "damaged_id" ); SetFontScale('lc_damaged' , "1.4" ); SetTextColor( "lc_damaged", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); SetTextPosition("lc_damaged", 40 , 40 , 205 , 32 ); end function lc_inprg() SetMaterial( "lc_inprg" , 0 , "" , 0 , 255 , 255 , 255 ); SetPos( "lc_inprg" , 0 , 400 , 130 ); SetDim( "lc_inprg" , 0 , 160 , 24 ); SetTxt( "lc_inprg" , _but_font_no, 6 , "In_progress" ); SetFontScale('lc_inprg' , _fontscale_case_normal); SetTextColor( "lc_inprg", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); end function lc_fin() SetMaterial( "lc_fin" , 0 , "" , 0 , 255 , 255 , 255 ); SetPos( "lc_fin" , 0 , 400 , 160 ); SetDim( "lc_fin" , 0 , 160 , 24 ); SetTxt( "lc_fin" , _but_font_no, 6 , "msg_case_completed" ); SetFontScale('lc_fin' , _fontscale_case_normal); SetTextColor( "lc_fin", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); end function lc_available() SetMaterial( "lc_available" , 0 , "" , 0 , 255 , 255 , 255 ); SetPos( "lc_available" , 0 , 400 , 190 ); SetDim( "lc_available" , 0 , 160 , 24 ); SetTxt( "lc_available" , _but_font_no, 6 , "available_id" ); SetFontScale('lc_available' , _fontscale_case_normal); SetTextColor( "lc_available", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); end function loadgame_bgrd2() SetMaterial( 'loadgame_bgrd2', 0 ,_file_texture_player_bgrd02, 255 ,255,255,255); SetPos( 'loadgame_bgrd2' ,0, 557 , 107 ); SetDim( 'loadgame_bgrd2' ,0, 64 , 256 ); end function loadgame_bgrd3() SetMaterial( 'loadgame_bgrd3', 0 ,_file_texture_player_bgrd03, 255 ,255,255,255); SetPos( 'loadgame_bgrd3' ,0, 45 , 363 ); SetDim( 'loadgame_bgrd3' ,0, 512 , 64 ); end function loadgame_bgrd4() SetMaterial( 'loadgame_bgrd4', 0 ,_file_texture_player_bgrd04, 255 ,255,255,255); SetPos( 'loadgame_bgrd4' ,0, 557 , 363 ); SetDim( 'loadgame_bgrd4' ,0, 64 , 64 ); end function case_picture() SetMaterial( 'case_picture', 0 ,"", 255 ,255,255,255); SetPos( 'case_picture' , 0 , 278 , 120 ); SetDim( 'case_picture' , 0 , 128 , 128 ); end function arrow_up_players() SetMaterial( 'arrow_up_players', 0 ,_file_texture_arrow_up, 255 ,255,255,255); SetPos( 'arrow_up_players' , 0 , 240 , 118 ); SetDim( 'arrow_up_players' , 0 , 32 , 16 ); end function arrow_down_players() SetMaterial( 'arrow_down_players', 0 ,_file_texture_arrow_down, 255 ,255,255,255); SetPos( 'arrow_down_players' , 0 , 240, 360 ); SetDim( 'arrow_down_players' , 0 , 32 , 16 ); end function arrow_up_cases() SetMaterial( 'arrow_up_cases', 0 ,_file_texture_arrow_up, 255 ,255,255,255); SetPos( 'arrow_up_cases' , 0 , 539 , 231 ); SetDim( 'arrow_up_cases' , 0 , 32 , 16 ); end function arrow_down_cases() SetMaterial( 'arrow_down_cases', 0 ,_file_texture_arrow_down, 255 ,255,255,255); SetPos( 'arrow_down_cases' , 0 , 539, 329 ); SetDim( 'arrow_down_cases' , 0 , 32 , 16 ); end function pb1_player() SetMaterial( 'pb1_player', 0 ,_file_texture_player_normal, _alpha_player_normal ,255,255,255); SetMaterial( 'pb1_player', 1 ,_file_texture_player_sel, _alpha_player_sel ,255,255,255); SetMaterial( 'pb1_player', 2 ,_file_texture_player_push, _alpha_player_push ,255,255,255); SetMaterial( 'pb1_player', 3 ,_file_texture_player_dis, _alpha_player_dis ,255,255,255); SetDim( 'pb1_player', 0 , _player_dimx , _player_dimy ); SetDim( 'pb1_player', 1 , _player_dimx , _player_dimy ); SetDim( 'pb1_player', 2 , _player_dimx , _player_dimy ); SetDim( 'pb1_player', 3 , _player_dimx , _player_dimy ); SetTxt( 'pb1_player', _player_font , _player_align , "NULL" ); SetFontScale("pb1_player", _player_font_scale_all ); SetFontScale("pb1_player", _player_font_scale_sel , 1 ); SetFontScale("pb1_player", _player_font_scale_push , 2 ); SetTextColor("pb1_player", pl_alpha_text_normal, pl_r_text_normal , pl_g_text_normal , pl_b_text_normal ); SetTextColor("pb1_player", pl_alpha_text_sel , pl_r_text_sel , pl_g_text_sel , pl_b_text_sel ,1 ); SetTextColor("pb1_player", pl_alpha_text_push , pl_r_text_push , pl_g_text_push , pl_b_text_push ,2 ); SetPush( "pb1_player", _function_push_player ); SetSel( "pb1_player", _function_sel_player ); SetSndSelect( "pb1_player" , _sound_select ); SetSndPush( "pb1_player" , _sound_accept ); end function pb2_player() SetMaterial( 'pb2_player', 0 ,_file_texture_player_normal, _alpha_player_normal ,255,255,255); SetMaterial( 'pb2_player', 1 ,_file_texture_player_sel, _alpha_player_sel ,255,255,255); SetMaterial( 'pb2_player', 2 ,_file_texture_player_push, _alpha_player_push ,255,255,255); SetMaterial( 'pb2_player', 3 ,_file_texture_player_dis, _alpha_player_dis ,255,255,255); SetDim( 'pb2_player', 0 , _player_dimx , _player_dimy ); SetDim( 'pb2_player', 1 , _player_dimx , _player_dimy ); SetDim( 'pb2_player', 2 , _player_dimx , _player_dimy ); SetDim( 'pb2_player', 3 , _player_dimx , _player_dimy ); SetTxt( 'pb2_player', _player_font , _player_align , "NULL" ); SetFontScale("pb2_player", _player_font_scale_all ); SetFontScale("pb2_player", _player_font_scale_sel , 1 ); SetFontScale("pb2_player", _player_font_scale_push , 2 ); SetTextColor("pb2_player", pl_alpha_text_normal, pl_r_text_normal , pl_g_text_normal , pl_b_text_normal ); SetTextColor("pb2_player", pl_alpha_text_sel , pl_r_text_sel , pl_g_text_sel , pl_b_text_sel ,1); SetTextColor("pb2_player", pl_alpha_text_push , pl_r_text_push , pl_g_text_push , pl_b_text_push ,2); SetPush( "pb2_player", _function_push_player ); SetSel( "pb2_player", _function_sel_player ); SetSndSelect( "pb2_player" , _sound_select ); SetSndPush( "pb2_player" , _sound_accept ); end function pb3_player() SetMaterial( 'pb3_player', 0 ,_file_texture_player_normal, _alpha_player_normal ,255,255,255); SetMaterial( 'pb3_player', 1 ,_file_texture_player_sel, _alpha_player_sel ,255,255,255); SetMaterial( 'pb3_player', 2 ,_file_texture_player_push, _alpha_player_push ,255,255,255); SetMaterial( 'pb3_player', 3 ,_file_texture_player_dis, _alpha_player_dis ,255,255,255); SetDim( 'pb3_player', 0 , _player_dimx , _player_dimy ); SetDim( 'pb3_player', 1 , _player_dimx , _player_dimy ); SetDim( 'pb3_player', 2 , _player_dimx , _player_dimy ); SetDim( 'pb3_player', 3 , _player_dimx , _player_dimy ); SetTxt( 'pb3_player', _player_font , _player_align , "NULL" ); SetFontScale("pb3_player", _player_font_scale_all ); SetFontScale("pb3_player", _player_font_scale_sel , 1 ); SetFontScale("pb3_player", _player_font_scale_push , 2 ); SetTextColor("pb3_player", pl_alpha_text_normal, pl_r_text_normal , pl_g_text_normal , pl_b_text_normal ); SetTextColor("pb3_player", pl_alpha_text_sel , pl_r_text_sel , pl_g_text_sel , pl_b_text_sel ,1); SetTextColor("pb3_player", pl_alpha_text_push , pl_r_text_push , pl_g_text_push , pl_b_text_push,2 ); SetPush( "pb3_player", _function_push_player ); SetSel( "pb3_player", _function_sel_player ); SetSndSelect( "pb3_player" , _sound_select ); SetSndPush( "pb3_player" , _sound_accept ); end function pb4_player() SetMaterial( 'pb4_player', 0 ,_file_texture_player_normal, _alpha_player_normal ,255,255,255); SetMaterial( 'pb4_player', 1 ,_file_texture_player_sel, _alpha_player_sel ,255,255,255); SetMaterial( 'pb4_player', 2 ,_file_texture_player_push, _alpha_player_push ,255,255,255); SetMaterial( 'pb4_player', 3 ,_file_texture_player_dis, _alpha_player_dis ,255,255,255); SetDim( 'pb4_player', 0 , _player_dimx , _player_dimy ); SetDim( 'pb4_player', 1 , _player_dimx , _player_dimy ); SetDim( 'pb4_player', 2 , _player_dimx , _player_dimy ); SetDim( 'pb4_player', 3 , _player_dimx , _player_dimy ); SetTxt( 'pb4_player', _player_font , _player_align , "NULL" ); SetFontScale("pb4_player", _player_font_scale_all ); SetFontScale("pb4_player", _player_font_scale_sel , 1 ); SetFontScale("pb4_player", _player_font_scale_push , 2 ); SetTextColor("pb4_player", pl_alpha_text_normal, pl_r_text_normal , pl_g_text_normal , pl_b_text_normal ); SetTextColor("pb4_player", pl_alpha_text_sel , pl_r_text_sel , pl_g_text_sel , pl_b_text_sel ,1); SetTextColor("pb4_player", pl_alpha_text_push , pl_r_text_push , pl_g_text_push , pl_b_text_push ,2 ); SetPush( "pb4_player", _function_push_player ); SetSel( "pb4_player", _function_sel_player ); SetSndSelect( "pb4_player" , _sound_select ); SetSndPush( "pb4_player" , _sound_accept ); end function pb5_player() SetMaterial( 'pb5_player', 0 ,_file_texture_player_normal, _alpha_player_normal ,255,255,255); SetMaterial( 'pb5_player', 1 ,_file_texture_player_sel, _alpha_player_sel ,255,255,255); SetMaterial( 'pb5_player', 2 ,_file_texture_player_push, _alpha_player_push ,255,255,255); SetMaterial( 'pb5_player', 3 ,_file_texture_player_dis, _alpha_player_dis ,255,255,255); SetDim( 'pb5_player', 0 , _player_dimx , _player_dimy ); SetDim( 'pb5_player', 1 , _player_dimx , _player_dimy ); SetDim( 'pb5_player', 2 , _player_dimx , _player_dimy ); SetDim( 'pb5_player', 3 , _player_dimx , _player_dimy ); SetTxt( 'pb5_player', _player_font , _player_align , "NULL" ); SetFontScale("pb5_player", _player_font_scale_all ); SetFontScale("pb5_player", _player_font_scale_sel , 1 ); SetFontScale("pb5_player", _player_font_scale_push , 2 ); SetTextColor("pb5_player", pl_alpha_text_normal, pl_r_text_normal , pl_g_text_normal , pl_b_text_normal ); SetTextColor("pb5_player", pl_alpha_text_sel , pl_r_text_sel , pl_g_text_sel , pl_b_text_sel ,1 ); SetTextColor("pb5_player", pl_alpha_text_push , pl_r_text_push , pl_g_text_push , pl_b_text_push , 2 ); SetPush( "pb5_player", _function_push_player ); SetSel( "pb5_player", _function_sel_player ); SetSndSelect( "pb5_player" , _sound_select ); SetSndPush( "pb5_player" , _sound_accept ); end function pb6_player() SetMaterial( 'pb6_player', 0 ,_file_texture_player_normal, _alpha_player_normal ,255,255,255); SetMaterial( 'pb6_player', 1 ,_file_texture_player_sel, _alpha_player_sel ,255,255,255); SetMaterial( 'pb6_player', 2 ,_file_texture_player_push, _alpha_player_push ,255,255,255); SetMaterial( 'pb6_player', 3 ,_file_texture_player_dis, _alpha_player_dis ,255,255,255); SetDim( 'pb6_player', 0 , _player_dimx , _player_dimy ); SetDim( 'pb6_player', 1 , _player_dimx , _player_dimy ); SetDim( 'pb6_player', 2 , _player_dimx , _player_dimy ); SetDim( 'pb6_player', 3 , _player_dimx , _player_dimy ); SetTxt( 'pb6_player', _player_font , _player_align , "NULL" ); SetFontScale("pb6_player", _player_font_scale_all ); SetFontScale("pb6_player", _player_font_scale_sel , 1 ); SetFontScale("pb6_player", _player_font_scale_push , 2 ); SetTextColor("pb6_player", pl_alpha_text_normal, pl_r_text_normal , pl_g_text_normal , pl_b_text_normal ); SetTextColor("pb6_player", pl_alpha_text_sel , pl_r_text_sel , pl_g_text_sel , pl_b_text_sel ,1); SetTextColor("pb6_player", pl_alpha_text_push , pl_r_text_push , pl_g_text_push , pl_b_text_push , 2 ); SetPush( "pb6_player", _function_push_player ); SetSel( "pb6_player", _function_sel_player ); SetSndSelect( "pb6_player" , _sound_select ); SetSndPush( "pb6_player" , _sound_accept ); end function pb7_player() SetMaterial( 'pb7_player', 0 ,_file_texture_player_normal, _alpha_player_normal ,255,255,255); SetMaterial( 'pb7_player', 1 ,_file_texture_player_sel, _alpha_player_sel ,255,255,255); SetMaterial( 'pb7_player', 2 ,_file_texture_player_push, _alpha_player_push ,255,255,255); SetMaterial( 'pb7_player', 3 ,_file_texture_player_dis, _alpha_player_dis ,255,255,255); SetDim( 'pb7_player', 0 , _player_dimx , _player_dimy ); SetDim( 'pb7_player', 1 , _player_dimx , _player_dimy ); SetDim( 'pb7_player', 2 , _player_dimx , _player_dimy ); SetDim( 'pb7_player', 3 , _player_dimx , _player_dimy ); SetTxt( 'pb7_player', _player_font , _player_align , "NULL" ); SetFontScale("pb7_player", _player_font_scale_all ); SetFontScale("pb7_player", _player_font_scale_sel , 1 ); SetFontScale("pb7_player", _player_font_scale_push , 2 ); SetTextColor("pb7_player", pl_alpha_text_normal, pl_r_text_normal , pl_g_text_normal , pl_b_text_normal ); SetTextColor("pb7_player", pl_alpha_text_sel , pl_r_text_sel , pl_g_text_sel , pl_b_text_sel ,1); SetTextColor("pb7_player", pl_alpha_text_push , pl_r_text_push , pl_g_text_push , pl_b_text_push ,2); SetPush( "pb7_player", _function_push_player ); SetSel( "pb7_player", _function_sel_player ); SetSndSelect( "pb7_player" , _sound_select ); SetSndPush( "pb7_player" , _sound_accept ); end function pb8_player() SetMaterial( 'pb8_player', 0 ,_file_texture_player_normal, _alpha_player_normal ,255,255,255); SetMaterial( 'pb8_player', 1 ,_file_texture_player_sel, _alpha_player_sel ,255,255,255); SetMaterial( 'pb8_player', 2 ,_file_texture_player_push, _alpha_player_push ,255,255,255); SetMaterial( 'pb8_player', 3 ,_file_texture_player_dis, _alpha_player_dis ,255,255,255); SetDim( 'pb8_player', 0 , _player_dimx , _player_dimy ); SetDim( 'pb8_player', 1 , _player_dimx , _player_dimy ); SetDim( 'pb8_player', 2 , _player_dimx , _player_dimy ); SetDim( 'pb8_player', 3 , _player_dimx , _player_dimy ); SetTxt( 'pb8_player', _player_font , _player_align , "NULL" ); SetFontScale("pb8_player", _player_font_scale_all ); SetFontScale("pb8_player", _player_font_scale_sel , 1 ); SetFontScale("pb8_player", _player_font_scale_push , 2 ); SetTextColor("pb8_player", pl_alpha_text_normal, pl_r_text_normal , pl_g_text_normal , pl_b_text_normal ); SetTextColor("pb8_player", pl_alpha_text_sel , pl_r_text_sel , pl_g_text_sel , pl_b_text_sel ,1); SetTextColor("pb8_player", pl_alpha_text_push , pl_r_text_push , pl_g_text_push , pl_b_text_push ,2); SetPush( "pb8_player", _function_push_player ); SetSel( "pb8_player", _function_sel_player ); SetSndSelect( "pb8_player" , _sound_select ); SetSndPush( "pb8_player" , _sound_accept ); end function pb9_player() SetMaterial( 'pb9_player', 0 ,_file_texture_player_normal, _alpha_player_normal ,255,255,255); SetMaterial( 'pb9_player', 1 ,_file_texture_player_sel, _alpha_player_sel ,255,255,255); SetMaterial( 'pb9_player', 2 ,_file_texture_player_push, _alpha_player_push ,255,255,255); SetMaterial( 'pb9_player', 3 ,_file_texture_player_dis, _alpha_player_dis ,255,255,255); SetDim( 'pb9_player', 0 , _player_dimx , _player_dimy ); SetDim( 'pb9_player', 1 , _player_dimx , _player_dimy ); SetDim( 'pb9_player', 2 , _player_dimx , _player_dimy ); SetDim( 'pb9_player', 3 , _player_dimx , _player_dimy ); SetTxt( 'pb9_player', _player_font , _player_align , "NULL" ); SetFontScale("pb9_player", _player_font_scale_all ); SetFontScale("pb9_player", _player_font_scale_sel , 1 ); SetFontScale("pb9_player", _player_font_scale_push , 2 ); SetTextColor("pb9_player", pl_alpha_text_normal, pl_r_text_normal , pl_g_text_normal , pl_b_text_normal ); SetTextColor("pb9_player", pl_alpha_text_sel , pl_r_text_sel , pl_g_text_sel , pl_b_text_sel ,1); SetTextColor("pb9_player", pl_alpha_text_push , pl_r_text_push , pl_g_text_push , pl_b_text_push ,2); SetPush( "pb9_player", _function_push_player ); SetSel( "pb9_player", _function_sel_player ); SetSndSelect( "pb9_player" , _sound_select ); SetSndPush( "pb9_player" , _sound_accept ); end function pb10_player() SetMaterial( 'pb10_player', 0 ,_file_texture_player_normal, _alpha_player_normal ,255,255,255); SetMaterial( 'pb10_player', 1 ,_file_texture_player_sel, _alpha_player_sel ,255,255,255); SetMaterial( 'pb10_player', 2 ,_file_texture_player_push, _alpha_player_push ,255,255,255); SetMaterial( 'pb10_player', 3 ,_file_texture_player_dis, _alpha_player_dis ,255,255,255); SetDim( 'pb10_player', 0 , _player_dimx , _player_dimy ); SetDim( 'pb10_player', 1 , _player_dimx , _player_dimy ); SetDim( 'pb10_player', 2 , _player_dimx , _player_dimy ); SetDim( 'pb10_player', 3 , _player_dimx , _player_dimy ); SetTxt( 'pb10_player', _player_font , _player_align , "NULL" ); SetFontScale("pb10_player", _player_font_scale_all ); SetFontScale("pb10_player", _player_font_scale_sel , 1 ); SetFontScale("pb10_player", _player_font_scale_push , 2 ); SetTextColor("pb10_player", pl_alpha_text_normal, pl_r_text_normal , pl_g_text_normal , pl_b_text_normal ); SetTextColor("pb10_player", pl_alpha_text_sel , pl_r_text_sel , pl_g_text_sel , pl_b_text_sel ,1); SetTextColor("pb10_player", pl_alpha_text_push , pl_r_text_push , pl_g_text_push , pl_b_text_push ,2); SetPush( "pb10_player", _function_push_player ); SetSel( "pb10_player", _function_sel_player ); SetSndSelect( "pb10_player" , _sound_select ); SetSndPush( "pb10_player" , _sound_accept ); end function pb11_player() SetMaterial( 'pb11_player', 0 ,_file_texture_player_normal, _alpha_player_normal ,255,255,255); SetMaterial( 'pb11_player', 1 ,_file_texture_player_sel, _alpha_player_sel ,255,255,255); SetMaterial( 'pb11_player', 2 ,_file_texture_player_push, _alpha_player_push ,255,255,255); SetMaterial( 'pb11_player', 3 ,_file_texture_player_dis, _alpha_player_dis ,255,255,255); SetDim( 'pb11_player', 0 , _player_dimx , _player_dimy ); SetDim( 'pb11_player', 1 , _player_dimx , _player_dimy ); SetDim( 'pb11_player', 2 , _player_dimx , _player_dimy ); SetDim( 'pb11_player', 3 , _player_dimx , _player_dimy ); SetTxt( 'pb11_player', _player_font , _player_align , "NULL" ); SetFontScale("pb11_player", _player_font_scale_all ); SetFontScale("pb11_player", _player_font_scale_sel , 1 ); SetFontScale("pb11_player", _player_font_scale_push , 2 ); SetTextColor("pb11_player", pl_alpha_text_normal, pl_r_text_normal , pl_g_text_normal , pl_b_text_normal ); SetTextColor("pb11_player", pl_alpha_text_sel , pl_r_text_sel , pl_g_text_sel , pl_b_text_sel ,1); SetTextColor("pb11_player", pl_alpha_text_push , pl_r_text_push , pl_g_text_push , pl_b_text_push ,2); SetPush( "pb11_player", _function_push_player ); SetSel( "pb11_player", _function_sel_player ); SetSndSelect( "pb11_player" , _sound_select ); SetSndPush( "pb11_player" , _sound_accept ); end function pb12_player() SetMaterial( 'pb12_player', 0 ,_file_texture_player_normal, _alpha_player_normal ,255,255,255); SetMaterial( 'pb12_player', 1 ,_file_texture_player_sel, _alpha_player_sel ,255,255,255); SetMaterial( 'pb12_player', 2 ,_file_texture_player_push, _alpha_player_push ,255,255,255); SetMaterial( 'pb12_player', 3 ,_file_texture_player_dis, _alpha_player_dis ,255,255,255); SetDim( 'pb12_player', 0 , _player_dimx , _player_dimy ); SetDim( 'pb12_player', 1 , _player_dimx , _player_dimy ); SetDim( 'pb12_player', 2 , _player_dimx , _player_dimy ); SetDim( 'pb12_player', 3 , _player_dimx , _player_dimy ); SetTxt( 'pb12_player', _player_font , _player_align , "NULL" ); SetFontScale("pb12_player", _player_font_scale_all ); SetFontScale("pb12_player", _player_font_scale_sel , 1 ); SetFontScale("pb12_player", _player_font_scale_push , 2 ); SetTextColor("pb12_player", pl_alpha_text_normal, pl_r_text_normal , pl_g_text_normal , pl_b_text_normal ); SetTextColor("pb12_player", pl_alpha_text_sel , pl_r_text_sel , pl_g_text_sel , pl_b_text_sel ,1); SetTextColor("pb12_player", pl_alpha_text_push , pl_r_text_push , pl_g_text_push , pl_b_text_push ,2); SetPush( "pb12_player", _function_push_player ); SetSel( "pb12_player", _function_sel_player ); SetSndSelect( "pb12_player" , _sound_select ); SetSndPush( "pb12_player" , _sound_accept ); end function pb13_player() SetMaterial( 'pb13_player', 0 ,_file_texture_player_normal, _alpha_player_normal ,255,255,255); SetMaterial( 'pb13_player', 1 ,_file_texture_player_sel, _alpha_player_sel ,255,255,255); SetMaterial( 'pb13_player', 2 ,_file_texture_player_push, _alpha_player_push ,255,255,255); SetMaterial( 'pb13_player', 3 ,_file_texture_player_dis, _alpha_player_dis ,255,255,255); SetDim( 'pb13_player', 0 , _player_dimx , _player_dimy ); SetDim( 'pb13_player', 1 , _player_dimx , _player_dimy ); SetDim( 'pb13_player', 2 , _player_dimx , _player_dimy ); SetDim( 'pb13_player', 3 , _player_dimx , _player_dimy ); SetTxt( 'pb13_player', _player_font , _player_align , "NULL" ); SetFontScale("pb13_player", _player_font_scale_all ); SetFontScale("pb13_player", _player_font_scale_sel , 1 ); SetFontScale("pb13_player", _player_font_scale_push , 2 ); SetTextColor("pb13_player", pl_alpha_text_normal, pl_r_text_normal , pl_g_text_normal , pl_b_text_normal ); SetTextColor("pb13_player", pl_alpha_text_sel , pl_r_text_sel , pl_g_text_sel , pl_b_text_sel ,1); SetTextColor("pb13_player", pl_alpha_text_push , pl_r_text_push , pl_g_text_push , pl_b_text_push ,2); SetPush( "pb13_player", _function_push_player ); SetSel( "pb13_player", _function_sel_player ); SetSndSelect( "pb13_player" , _sound_select ); SetSndPush( "pb13_player" , _sound_accept ); end function pb14_player() SetMaterial( 'pb14_player', 0 ,_file_texture_player_normal, _alpha_player_normal ,255,255,255); SetMaterial( 'pb14_player', 1 ,_file_texture_player_sel, _alpha_player_sel ,255,255,255); SetMaterial( 'pb14_player', 2 ,_file_texture_player_push, _alpha_player_push ,255,255,255); SetMaterial( 'pb14_player', 3 ,_file_texture_player_dis, _alpha_player_dis ,255,255,255); SetDim( 'pb14_player', 0 , _player_dimx , _player_dimy ); SetDim( 'pb14_player', 1 , _player_dimx , _player_dimy ); SetDim( 'pb14_player', 2 , _player_dimx , _player_dimy ); SetDim( 'pb14_player', 3 , _player_dimx , _player_dimy ); SetTxt( 'pb14_player', _player_font , _player_align , "NULL" ); SetFontScale("pb14_player", _player_font_scale_all ); SetFontScale("pb14_player", _player_font_scale_sel , 1 ); SetFontScale("pb14_player", _player_font_scale_push , 2 ); SetTextColor("pb14_player", pl_alpha_text_normal, pl_r_text_normal , pl_g_text_normal , pl_b_text_normal ); SetTextColor("pb14_player", pl_alpha_text_sel , pl_r_text_sel , pl_g_text_sel , pl_b_text_sel ,1); SetTextColor("pb14_player", pl_alpha_text_push , pl_r_text_push , pl_g_text_push , pl_b_text_push ,2); SetPush( "pb14_player", _function_push_player ); SetSel( "pb14_player", _function_sel_player ); SetSndSelect( "pb14_player" , _sound_select ); SetSndPush( "pb14_player" , _sound_accept ); end function pb15_player() SetMaterial( 'pb15_player', 0 ,_file_texture_player_normal, _alpha_player_normal ,255,255,255); SetMaterial( 'pb15_player', 1 ,_file_texture_player_sel, _alpha_player_sel ,255,255,255); SetMaterial( 'pb15_player', 2 ,_file_texture_player_push, _alpha_player_push ,255,255,255); SetMaterial( 'pb15_player', 3 ,_file_texture_player_dis, _alpha_player_dis ,255,255,255); SetDim( 'pb15_player', 0 , _player_dimx , _player_dimy ); SetDim( 'pb15_player', 1 , _player_dimx , _player_dimy ); SetDim( 'pb15_player', 2 , _player_dimx , _player_dimy ); SetDim( 'pb15_player', 3 , _player_dimx , _player_dimy ); SetTxt( 'pb15_player', _player_font , _player_align , "NULL" ); SetFontScale("pb15_player", _player_font_scale_all ); SetFontScale("pb15_player", _player_font_scale_sel , 1 ); SetFontScale("pb15_player", _player_font_scale_push , 2 ); SetTextColor("pb15_player", pl_alpha_text_normal, pl_r_text_normal , pl_g_text_normal , pl_b_text_normal ); SetTextColor("pb15_player", pl_alpha_text_sel , pl_r_text_sel , pl_g_text_sel , pl_b_text_sel ,1); SetTextColor("pb15_player", pl_alpha_text_push , pl_r_text_push , pl_g_text_push , pl_b_text_push ,2); SetPush( "pb15_player", _function_push_player ); SetSel( "pb15_player", _function_sel_player ); SetSndSelect( "pb15_player" , _sound_select ); SetSndPush( "pb15_player" , _sound_accept ); end function pb16_player() SetMaterial( 'pb16_player', 0 ,_file_texture_player_normal, _alpha_player_normal ,255,255,255); SetMaterial( 'pb16_player', 1 ,_file_texture_player_sel, _alpha_player_sel ,255,255,255); SetMaterial( 'pb16_player', 2 ,_file_texture_player_push, _alpha_player_push ,255,255,255); SetMaterial( 'pb16_player', 3 ,_file_texture_player_dis, _alpha_player_dis ,255,255,255); SetDim( 'pb16_player', 0 , _player_dimx , _player_dimy ); SetDim( 'pb16_player', 1 , _player_dimx , _player_dimy ); SetDim( 'pb16_player', 2 , _player_dimx , _player_dimy ); SetDim( 'pb16_player', 3 , _player_dimx , _player_dimy ); SetTxt( 'pb16_player', _player_font , _player_align , "NULL" ); SetFontScale("pb16_player", _player_font_scale_all ); SetFontScale("pb16_player", _player_font_scale_sel , 1 ); SetFontScale("pb16_player", _player_font_scale_push , 2 ); SetTextColor("pb16_player", pl_alpha_text_normal, pl_r_text_normal , pl_g_text_normal , pl_b_text_normal ); SetTextColor("pb16_player", pl_alpha_text_sel , pl_r_text_sel , pl_g_text_sel , pl_b_text_sel ,1); SetTextColor("pb16_player", pl_alpha_text_push , pl_r_text_push , pl_g_text_push , pl_b_text_push ,2); SetPush( "pb16_player", _function_push_player ); SetSel( "pb16_player", _function_sel_player ); SetSndSelect( "pb16_player" , _sound_select ); SetSndPush( "pb16_player" , _sound_accept ); end -- pushbuttons for cases : function case1_button() SetMaterial( 'case1_button', 0, _file_case_buton_normal , alpha_normal ,255,255,255 ); SetMaterial( 'case1_button', 1, _file_case_buton_sel , alpha_sel ,255,255,255 ); SetMaterial( 'case1_button', 2, _file_case_buton_sel , alpha_sel ,255,255,255 ); SetMaterial( 'case1_button', 3, _file_case_buton_normal , alpha_normal ,255,255,255 ); SetDim( 'case1_button', 0 , button_dx, button_dy ); SetDim( 'case1_button', 1 , button_dx, button_dy ); SetDim( 'case1_button', 2 , button_dx, button_dy ); SetDim( 'case1_button', 3 , button_dx, button_dy ); SetState( 'case1_button', 1 ); SetTxt( "case1_button" ,_but_font_no, _but_align, _level1_name_id); SetFontScale('case1_button' , _fontscale_case_normal); SetFontScale('case1_button' , _fontscale_case_sel , 1); SetTextColor( "case1_button", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); SetTextColor( "case1_button", alpha_text_sel , r_text_sel, g_text_sel, b_text_sel , 1); SetPush( 'case1_button', _function_accept_case1 ); SetNSEW( 'case1_button', 'NULL', 'case2_button', 'NULL', 'NULL' ); SetSndSelect( "case1_button" , _sound_select); SetSndPush( "case1_button" , _sound_accept); SetSel( "case1_button" , _function_sel_case ); end function case2_button() SetMaterial( 'case2_button', 0, _file_case_buton_normal , alpha_normal ,255,255,255 ); SetMaterial( 'case2_button', 1, _file_case_buton_sel , alpha_sel ,255,255,255 ); SetMaterial( 'case2_button', 2, _file_case_buton_sel , alpha_sel ,255,255,255 ); SetMaterial( 'case2_button', 3, _file_case_buton_normal , alpha_normal ,255,255,255 ); SetDim( 'case2_button', 0 , button_dx, button_dy ); SetDim( 'case2_button', 1 , button_dx, button_dy ); SetDim( 'case2_button', 2 , button_dx, button_dy ); SetDim( 'case2_button', 3 , button_dx, button_dy ); SetState( 'case2_button', 0 ); SetTxt( "case2_button" ,_but_font_no, _but_align, _level2_name_id); SetFontScale('case2_button' , _fontscale_case_normal); SetFontScale('case2_button' , _fontscale_case_sel , 1); SetTextColor( "case2_button", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); SetTextColor( "case2_button", alpha_text_sel , r_text_sel, g_text_sel, b_text_sel , 1); SetPush( 'case2_button', _function_accept_case2 ); SetNSEW( 'case2_button', 'case1_button', 'case3_button', 'NULL', 'NULL' ); SetSndSelect( "case2_button" , _sound_select); SetSndPush( "case2_button" , _sound_accept); SetSel( "case2_button" , _function_sel_case ); end function case3_button() SetMaterial( 'case3_button', 0, _file_case_buton_normal , alpha_normal ,255,255,255 ); SetMaterial( 'case3_button', 1, _file_case_buton_sel , alpha_sel ,255,255,255 ); SetMaterial( 'case3_button', 2, _file_case_buton_sel , alpha_sel ,255,255,255 ); SetMaterial( 'case3_button', 3, _file_case_buton_normal , alpha_normal ,255,255,255 ); SetDim( 'case3_button', 0 , button_dx, button_dy ); SetDim( 'case3_button', 1 , button_dx, button_dy ); SetDim( 'case3_button', 2 , button_dx, button_dy ); SetDim( 'case3_button', 3 , button_dx, button_dy ); SetState( 'case3_button', 0 ); SetTxt( "case3_button" ,_but_font_no, _but_align, _level3_name_id); SetFontScale('case3_button' , _fontscale_case_normal); SetFontScale('case3_button' , _fontscale_case_sel , 1); SetTextColor( "case3_button", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); SetTextColor( "case3_button", alpha_text_sel , r_text_sel, g_text_sel, b_text_sel , 1); SetPush( 'case3_button', _function_accept_case3 ); SetNSEW( 'case3_button', 'case2_button', 'case4_button', 'NULL', 'NULL' ); SetSndSelect( "case3_button" , _sound_select); SetSndPush( "case3_button" , _sound_accept); SetSel( "case3_button" , _function_sel_case ); end function case4_button() SetMaterial( 'case4_button', 0, _file_case_buton_normal , alpha_normal ,255,255,255 ); SetMaterial( 'case4_button', 1, _file_case_buton_sel , alpha_sel ,255,255,255 ); SetMaterial( 'case4_button', 2, _file_case_buton_sel , alpha_sel ,255,255,255 ); SetMaterial( 'case4_button', 3, _file_case_buton_normal , alpha_normal ,255,255,255 ); SetDim( 'case4_button', 0 , button_dx, button_dy ); SetDim( 'case4_button', 1 , button_dx, button_dy ); SetDim( 'case4_button', 2 , button_dx, button_dy ); SetDim( 'case4_button', 3 , button_dx, button_dy ); SetState( 'case4_button', 0 ); SetTxt( "case4_button" ,_but_font_no, _but_align, _level4_name_id); SetFontScale('case4_button' , _fontscale_case_normal); SetFontScale('case4_button' , _fontscale_case_sel , 1); SetTextColor( "case4_button", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); SetTextColor( "case4_button", alpha_text_sel , r_text_sel, g_text_sel, b_text_sel , 1); SetPush( 'case4_button', _function_accept_case4 ); SetNSEW( 'case4_button', 'case3_button', 'case5_button', 'NULL', 'NULL' ); SetSndSelect( "case4_button" , _sound_select); SetSndPush( "case4_button" , _sound_accept); SetSel( "case4_button" , _function_sel_case ); end function case5_button() SetMaterial( 'case5_button', 0, _file_case_buton_normal , alpha_normal ,255,255,255 ); SetMaterial( 'case5_button', 1, _file_case_buton_sel , alpha_sel ,255,255,255 ); SetMaterial( 'case5_button', 2, _file_case_buton_sel , alpha_sel ,255,255,255 ); SetMaterial( 'case5_button', 3, _file_case_buton_normal , alpha_normal ,255,255,255 ); SetDim( 'case5_button', 0 , button_dx, button_dy ); SetDim( 'case5_button', 1 , button_dx, button_dy ); SetDim( 'case5_button', 2 , button_dx, button_dy ); SetDim( 'case5_button', 3 , button_dx, button_dy ); SetState( 'case5_button', 0 ); SetTxt( "case5_button" ,_but_font_no, _but_align, _level5_name_id); SetFontScale('case5_button' , _fontscale_case_normal); SetFontScale('case5_button' , _fontscale_case_sel , 1); SetTextColor( "case5_button", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); SetTextColor( "case5_button", alpha_text_sel , r_text_sel, g_text_sel, b_text_sel , 1); SetPush( 'case5_button', _function_accept_case5 ); SetNSEW( 'case5_button', 'case4_button', 'case6_button', 'NULL', 'NULL' ); SetSndSelect( "case5_button" , _sound_select); SetSndPush( "case5_button" , _sound_accept); SetSel( "case5_button" , _function_sel_case ); end function case6_button() SetMaterial( 'case6_button', 0, _file_case_buton_normal , alpha_normal ,255,255,255 ); SetMaterial( 'case6_button', 1, _file_case_buton_sel , alpha_sel ,255,255,255 ); SetMaterial( 'case6_button', 2, _file_case_buton_sel , alpha_sel ,255,255,255 ); SetMaterial( 'case6_button', 3, _file_case_buton_normal , alpha_normal ,255,255,255 ); SetDim( 'case6_button', 0 , button_dx, button_dy ); SetDim( 'case6_button', 1 , button_dx, button_dy ); SetDim( 'case6_button', 2 , button_dx, button_dy ); SetDim( 'case6_button', 3 , button_dx, button_dy ); SetState( 'case6_button', 0 ); SetTxt( "case6_button" ,_but_font_no, _but_align, _level6_name_id); SetFontScale('case6_button' , _fontscale_case_normal); SetFontScale('case6_button' , _fontscale_case_sel , 1); SetTextColor( "case6_button", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); SetTextColor( "case6_button", alpha_text_sel , r_text_sel, g_text_sel, b_text_sel , 1); SetPush( 'case6_button', _function_accept_case6 ); SetNSEW( 'case6_button', 'case5_button', 'case7_button', 'NULL', 'NULL' ); SetSndSelect( "case6_button" , _sound_select); SetSndPush( "case6_button" , _sound_accept); SetSel( "case6_button" , _function_sel_case ); end function case7_button() SetMaterial( 'case7_button', 0, _file_case_buton_normal , alpha_normal ,255,255,255 ); SetMaterial( 'case7_button', 1, _file_case_buton_sel , alpha_sel ,255,255,255 ); SetMaterial( 'case7_button', 2, _file_case_buton_sel , alpha_sel ,255,255,255 ); SetMaterial( 'case7_button', 3, _file_case_buton_normal , alpha_normal ,255,255,255 ); SetDim( 'case7_button', 0 , button_dx, button_dy ); SetDim( 'case7_button', 1 , button_dx, button_dy ); SetDim( 'case7_button', 2 , button_dx, button_dy ); SetDim( 'case7_button', 3 , button_dx, button_dy ); SetState( 'case7_button', 0 ); SetTxt( "case7_button" ,_but_font_no, _but_align, _level7_name_id); SetFontScale('case7_button' , _fontscale_case_normal); SetFontScale('case7_button' , _fontscale_case_sel , 1); SetTextColor( "case7_button", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); SetTextColor( "case7_button", alpha_text_sel , r_text_sel, g_text_sel, b_text_sel , 1); SetPush( 'case7_button', _function_accept_case7 ); SetNSEW( 'case7_button', 'case6_button', 'case8_button', 'NULL', 'NULL' ); SetSndSelect( "case7_button" , _sound_select); SetSndPush( "case7_button" , _sound_accept); SetSel( "case7_button" , _function_sel_case ); end function case8_button() SetMaterial( 'case8_button', 0, _file_case_buton_normal , alpha_normal ,255,255,255 ); SetMaterial( 'case8_button', 1, _file_case_buton_sel , alpha_sel ,255,255,255 ); SetMaterial( 'case8_button', 2, _file_case_buton_sel , alpha_sel ,255,255,255 ); SetMaterial( 'case8_button', 3, _file_case_buton_normal , alpha_normal ,255,255,255 ); SetDim( 'case8_button', 0 , button_dx, button_dy ); SetDim( 'case8_button', 1 , button_dx, button_dy ); SetDim( 'case8_button', 2 , button_dx, button_dy ); SetDim( 'case8_button', 3 , button_dx, button_dy ); SetState( 'case8_button', 0 ); SetTxt( "case8_button" ,_but_font_no, _but_align, _level8_name_id); SetFontScale('case8_button' , _fontscale_case_normal); SetFontScale('case8_button' , _fontscale_case_sel , 1); SetTextColor( "case8_button", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); SetTextColor( "case8_button", alpha_text_sel , r_text_sel, g_text_sel, b_text_sel , 1); SetPush( 'case8_button', _function_accept_case8 ); SetNSEW( 'case8_button', 'case7_button', 'case9_button', 'NULL', 'NULL' ); SetSndSelect( "case8_button" , _sound_select); SetSndPush( "case8_button" , _sound_accept); SetSel( "case8_button" , _function_sel_case ); end function case9_button() SetMaterial( 'case9_button', 0, _file_case_buton_normal , alpha_normal ,255,255,255 ); SetMaterial( 'case9_button', 1, _file_case_buton_sel , alpha_sel ,255,255,255 ); SetMaterial( 'case9_button', 2, _file_case_buton_sel , alpha_sel ,255,255,255 ); SetMaterial( 'case9_button', 3, _file_case_buton_normal , alpha_normal ,255,255,255 ); SetDim( 'case9_button', 0 , button_dx, button_dy ); SetDim( 'case9_button', 1 , button_dx, button_dy ); SetDim( 'case9_button', 2 , button_dx, button_dy ); SetDim( 'case9_button', 3 , button_dx, button_dy ); SetState( 'case9_button', 0 ); SetTxt( "case9_button" ,_but_font_no, _but_align, _level9_name_id); SetFontScale('case9_button' , _fontscale_case_normal); SetFontScale('case9_button' , _fontscale_case_sel , 1); SetTextColor( "case9_button", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); SetTextColor( "case9_button", alpha_text_sel , r_text_sel, g_text_sel, b_text_sel , 1); SetPush( 'case9_button', _function_accept_case9 ); SetNSEW( 'case9_button', 'case8_button', 'case10_button', 'NULL', 'NULL' ); SetSndSelect( "case9_button" , _sound_select); SetSndPush( "case9_button" , _sound_accept); SetSel( "case9_button" , _function_sel_case ); end function case10_button() SetMaterial( 'case10_button', 0, _file_case_buton_normal , alpha_normal ,255,255,255 ); SetMaterial( 'case10_button', 1, _file_case_buton_sel , alpha_sel ,255,255,255 ); SetMaterial( 'case10_button', 2, _file_case_buton_sel , alpha_sel ,255,255,255 ); SetMaterial( 'case10_button', 3, _file_case_buton_normal , alpha_normal ,255,255,255 ); SetDim( 'case10_button', 0 , button_dx, button_dy ); SetDim( 'case10_button', 1 , button_dx, button_dy ); SetDim( 'case10_button', 2 , button_dx, button_dy ); SetDim( 'case10_button', 3 , button_dx, button_dy ); SetState( 'case10_button', 0 ); SetTxt( "case10_button" ,_but_font_no, _but_align, _level10_name_id); SetFontScale('case10_button' , _fontscale_case_normal); SetFontScale('case10_button' , _fontscale_case_sel , 1); SetTextColor( "case10_button", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); SetTextColor( "case10_button", alpha_text_sel , r_text_sel, g_text_sel, b_text_sel , 1); SetPush( 'case10_button', _function_accept_case10 ); SetNSEW( 'case10_button', 'case9_button', 'NULL', 'NULL', 'NULL' ); SetSndSelect( "case10_button" , _sound_select); SetSndPush( "case10_button" , _sound_accept); SetSel( "case10_button" , _function_sel_case ); end function pbcase_startover() SetMaterial( 'pbcase_startover', 0, _file_case_buton_normal , alpha_normal ,255,255,255 ); SetMaterial( 'pbcase_startover', 1, _file_case_buton_sel , alpha_sel ,255,255,255 ); SetMaterial( 'pbcase_startover', 2, _file_case_buton_sel , alpha_sel ,255,255,255 ); SetMaterial( 'pbcase_startover', 3, _file_case_buton_normal , alpha_normal ,255,255,255 ); SetPos( 'pbcase_startover', 0 , 432 , 343 ); SetPos( 'pbcase_startover', 1 , 432 , 343 ); SetPos( 'pbcase_startover', 2 , 432 , 343 ); SetPos( 'pbcase_startover', 3 , 432 , 343 ); SetDim( 'pbcase_startover', 0 , 128, 32 ); SetDim( 'pbcase_startover', 1 , 128, 32 ); SetDim( 'pbcase_startover', 2 , 128, 32 ); SetDim( 'pbcase_startover', 3 , 128, 32 ); SetState( 'pbcase_startover', 0 ); SetTxt( "pbcase_startover" ,_but_font_no, 5 , "Menu_Load_Restart_Label" ); SetFontScale('pbcase_startover' , _fontscale_case_normal); SetFontScale('pbcase_startover' , _fontscale_case_sel , 1); SetTextColor( "pbcase_startover", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); SetTextColor( "pbcase_startover", alpha_text_sel , r_text_sel, g_text_sel, b_text_sel , 1); SetPush( 'pbcase_startover', _function_accept_restart_case ); SetNSEW( 'pbcase_startover', 'NULL', 'NULL', 'NULL', 'NULL' ); SetSndSelect( "pbcase_startover" , _sound_select); SetSndPush( "pbcase_startover" , _sound_accept); SetTextPosition( "pbcase_startover" , 0 , 0 , _w_text, _h_text ); end function pbcase_load() SetMaterial( 'pbcase_load', 0, _file_case_buton_normal , alpha_normal ,255,255,255 ); SetMaterial( 'pbcase_load', 1, _file_case_buton_sel , alpha_sel ,255,255,255 ); SetMaterial( 'pbcase_load', 2, _file_case_buton_sel , alpha_sel ,255,255,255 ); SetMaterial( 'pbcase_load', 3, _file_case_buton_normal , alpha_normal ,255,255,255 ); SetPos( 'pbcase_load', 0 , 272 , 343 ); SetPos( 'pbcase_load', 1 , 272 , 343 ); SetPos( 'pbcase_load', 2 , 272 , 343 ); SetPos( 'pbcase_load', 3 , 272 , 343 ); SetDim( 'pbcase_load', 0 , 128, 32 ); SetDim( 'pbcase_load', 1 , 128, 32 ); SetDim( 'pbcase_load', 2 , 128, 32 ); SetDim( 'pbcase_load', 3 , 128, 32 ); SetState( 'pbcase_load', 0 ); SetTxt( "pbcase_load" ,_but_font_no, 5 , "Menu_Load_Load_Label" ); SetFontScale('pbcase_load' , _fontscale_case_normal); SetFontScale('pbcase_load' , _fontscale_case_sel , 1); SetTextColor( "pbcase_load", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); SetTextColor( "pbcase_load", alpha_text_sel , r_text_sel, g_text_sel, b_text_sel , 1); SetTextColor( "pbcase_load", alpha_text_dis , r_text_dis, g_text_dis, b_text_dis , 3); SetPush( 'pbcase_load', _function_accept_load ); SetNSEW( 'pbcase_load', 'NULL', 'NULL', 'NULL', 'NULL' ); SetSndSelect( "pbcase_load" , _sound_select); SetSndPush( "pbcase_load" , _sound_accept); SetTextPosition( "pbcase_load" , 0 , 0 , _w_text, _h_text ); end function lc_common_brgd01() SetMaterial( "lc_common_brgd01" , 0 , _cp_common_bgrd01 , 255 , 255 , 255 , 255 ); SetPos( "lc_common_brgd01" , 0 , 45 , 32 ); SetDim( "lc_common_brgd01" , 0 , 512 , 128 ); end function lc_common_brgd02() SetMaterial( "lc_common_brgd02" , 0 , _cp_common_bgrd02 , 255 , 255 , 255 , 255 ); SetPos( "lc_common_brgd02" , 0 , 557 , 32 ); SetDim( "lc_common_brgd02" , 0 , 64 , 128 ); end function lc_common_brgd03() SetMaterial( "lc_common_brgd03" , 0 , _cp_common_bgrd03 , 255 , 255 , 255 , 255 ); SetPos( "lc_common_brgd03" , 0 , 45 , 397 ); SetDim( "lc_common_brgd03" , 0 , 512 , 64 ); end function lc_common_brgd04() SetMaterial( "lc_common_brgd04" , 0 , _cp_common_bgrd04 , 255 , 255 , 255 , 255 ); SetPos( "lc_common_brgd04" , 0 , 557 , 397 ); SetDim( "lc_common_brgd04" , 0 , 64 , 64 ); end function lc_common_back() SetMaterial( "lc_common_back" , 0 , _cp_common_back , 255 , 255 , 255 , 255 ); SetPos( "lc_common_back" , 0 , 64 , 391 ); SetDim( "lc_common_back" , 0 , _dec_but_dx , _dec_but_dy ); SetTxt( "lc_common_back" , _dec_but_font_no, 5 , "back" ); SetFontScale('lc_common_back' , _fontscale_dec_buttons); SetTextColor( "lc_common_back", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); SetTextPosition( 'lc_common_back', _back_bt_offset_x ,_back_bt_offset_y , _back_bt_dx, _back_bt_dy ); end function lc_common_x() SetMaterial( "lc_common_x" , 0 , _cp_common_x , 255 , 255 , 255 , 255 ); SetPos( "lc_common_x" , 0 , 194 , 391 ); SetDim( "lc_common_x" , 0 , _dec_but_dx , _dec_but_dy ); SetTxt( "lc_common_x" , _dec_but_font_no, 5 , "label_delete" ); SetFontScale('lc_common_x' , _fontscale_dec_buttons); SetTextColor( "lc_common_x", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); SetTextPosition( 'lc_common_x', _x_bt_offset_x ,_x_bt_offset_y , _x_bt_dx, _x_bt_dy ); end function lc_common_y() SetMaterial( "lc_common_y" , 0 , _cp_common_y , 255 , 255 , 255 , 255 ); SetPos( "lc_common_y" , 0 , 330 , 391 ); SetDim( "lc_common_y" , 0 , _dec_but_dx , _dec_but_dy ); SetTxt( "lc_common_y" , _dec_but_font_no, 5 , "Menu_Load_Heading_Stats" ); SetFontScale('lc_common_y' , _fontscale_dec_buttons); SetTextColor( "lc_common_y", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); SetTextPosition( 'lc_common_y', _y_bt_offset_x ,_y_bt_offset_y , _y_bt_dx, _y_bt_dy ); end function lc_common_acc() SetMaterial( "lc_common_acc" , 0 , _cp_common_acc , 255 , 255 , 255 , 255 ); SetPos( "lc_common_acc" , 0 , 460 , 391 ); SetDim( "lc_common_acc" , 0 , _dec_but_dx , _dec_but_dy ); SetTxt( "lc_common_acc" , _dec_but_font_no, 5 , "TEXT0185" ); SetFontScale('lc_common_acc' , _fontscale_dec_buttons); SetTextColor( "lc_common_acc", alpha_text_normal , r_text_normal, g_text_normal, b_text_normal ); SetTextPosition( 'lc_common_acc', _acc_bt_offset_x ,_acc_bt_offset_y , _acc_bt_dx, _acc_bt_dy ); end function lc_text_cp() SetMaterial( "lc_text_cp" , 0 , "" , 0 , 255 , 255 , 255 ); SetPos( "lc_text_cp" , 0 , 76 , 44 ); SetDim( "lc_text_cp" , 0 , 142 , 24 ); SetTxt( "lc_text_cp" , _but_font_no, 5 , "Menu_Main_LoadGame_Label" ); SetFontScale('lc_text_cp' , _fontscale_case_sel ); SetTextColor( "lc_text_cp", alpha_text_sel , r_text_sel , g_text_sel , b_text_sel ); SetTextPosition( "lc_text_cp" , 0 , 2 , 142 , _h_text ); end