locposx=0 locposy=363 dimx=64 dimy=64 loccolor0_a=255 loccolor1_a=255 loccolor2_a=255 loccolor3_a=255 loccolor0_r=255 loccolor1_r=255 loccolor2_r=255 loccolor3_r=255 loccolor0_g=255 loccolor1_g=255 loccolor2_g=255 loccolor3_g=255 loccolor0_b=255 loccolor1_b=255 loccolor2_b=255 loccolor3_b=255 _file_location_morgue_normal ="menu\\MenuTextures\\locations\\nav_morgue_unselect.dds" _file_location_morgue_sel="menu\\MenuTextures\\locations\\nav_morgue_press.dds" _file_location_morgue_push ="menu\\MenuTextures\\locations\\nav_morgue_press.dds" _file_location_lab_normal = "menu\\MenuTextures\\locations\\nav_lab_unselect.dds" _file_location_lab_sel = "menu\\MenuTextures\\locations\\nav_lab_press.dds" _file_location_lab_push = "menu\\MenuTextures\\locations\\nav_lab_press.dds" _file_location_brass_normal = "menu\\MenuTextures\\locations\\nav_brass_unselect.dds" _file_location_brass_sel = "menu\\MenuTextures\\locations\\nav_brass_press.dds" _file_location_brass_push = "menu\\MenuTextures\\locations\\nav_brass_press.dds" _function_loc_select = 'LocationsSelectCSI' _function_loc_activate = 'LocationActivate' _sound_select = "highlight" _sound_accept = "accept" _hint_loc_morgue='TEXT0014' _hint_loc_lab='TEXT0013' _hint_loc_brass='TEXT0010' _file_texture_bgrd="Menu\\MenuTextures\\Menu\\meniuBgrd.dds" _file_texture_left_bgrd= "Menu\\MenuTextures\\Menu\\buttonsLeft.dds" _file_texture_right_bgrd= "Menu\\MenuTextures\\Menu\\buttonsRight.dds" _file_texture_left_scroll_normal= "Menu\\MenuTextures\\Menu\\buton_left.dds" _file_texture_left_scroll_sel= "Menu\\MenuTextures\\Menu\\buton_leftPress.dds" _file_texture_right_scroll_normal= "Menu\\MenuTextures\\Menu\\buton_right.dds" _file_texture_right_scroll_sel= "Menu\\MenuTextures\\Menu\\buton_rightPress.dds" function csi_location() SetMaterial( 'csi_location', 0 , _file_texture_bgrd , 255 , 255 , 255 , 255 ); SetMaterial( 'csi_location', 1 , _file_texture_bgrd , 255 , 255 , 255 , 255 ); SetPos( 'csi_location',0 , locposx, locposy); SetDim( 'csi_location',0 , 1024 , 128 ); SetPos( 'csi_location',1 , locposx, locposy); SetDim( 'csi_location',1 , 1024 , 128 ); AddStaticObject('csi_location', "hint_loc_csi"); AddStaticObject('csi_location', "evidenceButton_loc_csi"); AddStaticObject('csi_location', "locationsButton_loc_csi"); --AddStaticObject('csi_location', "caseButton_loc_csi"); AddStaticObject('csi_location', "crimetext_loc_csi"); AddStaticObject('csi_location', "csitext_loc_csi"); AddStaticObject('csi_location', "scrollLeft_loc_csi"); AddStaticObject('csi_location', "scrollRight_loc_csi"); SetFlagButton("csi_location",0,"scrollLeft_loc_csi"); SetFlagButton("csi_location",1,"scrollRight_loc_csi"); AddStaticObject('csi_location', "tag_computer"); AddStaticObject('csi_location', "tag_dna"); AddStaticObject('csi_location', "tag_micro"); AddStaticObject('csi_location', "tag_full"); AddStaticObject('csi_location', "tag_half"); GUISetVisible( 'tag_computer', 0 ); GUISetVisible( 'tag_dna', 0 ); GUISetVisible( 'tag_micro', 0 ); GUISetVisible( 'tag_full', 0 ); GUISetVisible( 'tag_half', 0 ); -- locations : AddPushButton('csi_location', "morgue"); AddPushButton('csi_location', "laboratory"); AddPushButton('csi_location', "grissomoffice"); AddPushButton('csi_location', "brass_office"); -- view mode :4 (variable children positions & rectangle with CENTER) , maximum 5 children visible GUISetVisible( 'csi_location', 0 , 4 , 5 ); -- drawmode=rectangle scroll (all fit in area) SetChildrenPos( 'csi_location', 168 , 396 , 60 , 0 ); SetState("csi_location",0); end function tag_computer() SetMaterial( 'tag_computer', 0, "Menu\\MenuTextures\\tag_icons\\computer_tag.dds", 255 , 255, 255, 255); SetPos( "tag_computer" , 0 , 320 , 396 ); SetDim( "tag_computer" , 0 , 16 ,16 ); end function tag_dna() SetMaterial( 'tag_dna', 0, "Menu\\MenuTextures\\tag_icons\\dna_tag.dds", 255 , 255, 255, 255); SetPos( "tag_dna" , 0 , 330, 396 ); SetDim( "tag_dna" , 0 , 16 ,16 ); end function tag_micro() SetMaterial( 'tag_micro', 0, "Menu\\MenuTextures\\tag_icons\\microscope_tag.dds", 255 , 255, 255, 255); SetPos( "tag_micro" , 0 , 320, 396 ); SetDim( "tag_micro" , 0 , 16 ,16 ); end function tag_full() SetMaterial( 'tag_full', 0, "Menu\\MenuTextures\\tag_icons\\full_tag.dds", 255 , 255, 255, 255); SetPos( "tag_full" , 0 , 340, 396 ); SetDim( "tag_full" , 0 , 16 ,16 ); end function tag_half() SetMaterial( 'tag_half', 0, "Menu\\MenuTextures\\tag_icons\\full_tag.dds", 255 , 127 , 127 , 127 ); SetPos( "tag_half" , 0 , 340, 396 ); SetDim( "tag_half" , 0 , 16 ,16 ); end -- icoane locatii : function morgue() SetMaterial( 'morgue', 0, _file_location_morgue_normal, loccolor0_a , loccolor0_r , loccolor0_g , loccolor0_b ); SetMaterial( 'morgue', 1, _file_location_morgue_sel , loccolor1_a , loccolor1_r , loccolor1_g , loccolor1_b ); SetMaterial( 'morgue', 2, _file_location_morgue_push, loccolor2_a , loccolor2_r , loccolor2_g , loccolor2_b ); SetMaterial( 'morgue', 3, _file_location_morgue_normal , loccolor3_a , loccolor3_r , loccolor3_g , loccolor3_b ); SetDim( 'morgue', 0, dimx, dimy); SetDim( 'morgue', 1, dimx, dimy); SetDim( 'morgue', 2, dimx, dimy); SetDim( 'morgue', 3, dimx, dimy); SetHintText('morgue', _hint_loc_morgue ); SetSel('morgue', _function_loc_select); SetState( 'morgue', 1); SetPush( 'morgue', _function_loc_activate ); SetSndSelect( 'morgue', _sound_select ); SetSndPush( 'morgue', _sound_accept ); end function laboratory() SetMaterial( 'laboratory', 0, _file_location_lab_normal , loccolor0_a , loccolor0_r , loccolor0_g , loccolor0_b ); SetMaterial( 'laboratory', 1, _file_location_lab_sel, loccolor1_a , loccolor1_r , loccolor1_g , loccolor1_b ); SetMaterial( 'laboratory', 2, _file_location_lab_push , loccolor2_a , loccolor2_r , loccolor2_g , loccolor2_b ); SetMaterial( 'laboratory', 3, _file_location_lab_normal , loccolor3_a , loccolor3_r , loccolor3_g , loccolor3_b ); SetDim( 'laboratory', 0, dimx, dimy); SetDim( 'laboratory', 1, dimx, dimy); SetDim( 'laboratory', 2, dimx, dimy); SetDim( 'laboratory', 3, dimx, dimy); SetHintText('laboratory', _hint_loc_lab ); SetSel('laboratory', _function_loc_select ); SetState( 'laboratory', 0); SetPush( 'laboratory', _function_loc_activate ); SetSndSelect( 'laboratory', _sound_select ); SetSndPush( 'laboratory', _sound_accept ); end function grissomoffice() SetMaterial( 'grissomoffice', 0, "", 255, 255,255,200 ); SetMaterial( 'grissomoffice', 1, "", 255, 255,255,200 ); SetMaterial( 'grissomoffice', 2, "", 255, 55,255,200 ); SetMaterial( 'grissomoffice', 3, "", 255, 55,55,200 ); SetDim( 'grissomoffice', 0, dimx, dimy); SetDim( 'grissomoffice', 1, dimx, dimy); SetDim( 'grissomoffice', 2, dimx, dimy); SetDim( 'grissomoffice', 3, dimx, dimy); SetHintText('grissomoffice', 'TEXT1036' ); SetSel('grissomoffice', _function_loc_select ); SetState( 'grissomoffice', 0); SetPush( 'grissomoffice', _function_loc_activate ); SetSndSelect( 'grissomoffice', _sound_select ); SetSndPush( 'grissomoffice', _sound_accept ); end function brass_office() SetMaterial( 'brass_office', 0, _file_location_brass_normal , loccolor0_a , loccolor0_r , loccolor0_g , loccolor0_b ); SetMaterial( 'brass_office', 1, _file_location_brass_sel , loccolor1_a , loccolor1_r , loccolor1_g , loccolor1_b ); SetMaterial( 'brass_office', 2, _file_location_brass_push , loccolor2_a , loccolor2_r , loccolor2_g , loccolor2_b ); SetMaterial( 'brass_office', 3, _file_location_brass_normal , loccolor3_a , loccolor3_r , loccolor3_g , loccolor3_b ); SetDim( 'brass_office', 0, dimx, dimy); SetDim( 'brass_office', 1, dimx, dimy); SetDim( 'brass_office', 2, dimx, dimy); SetDim( 'brass_office', 3, dimx, dimy); SetHintText('brass_office', _hint_loc_brass ); SetSel('brass_office', _function_loc_select ); SetState( 'brass_office', 0); SetPush( 'brass_office', _function_loc_activate ); SetSndSelect( 'brass_office', _sound_select ); SetSndPush( 'brass_office', _sound_accept ); end function hint_loc_csi() SetMaterial( 'hint_loc_csi', 0, "", 214 ,16,16,20 );-- ND SetMaterial( 'hint_loc_csi', 1, "", 213 ,12,10,23 ); SetPos( 'hint_loc_csi', 0, 156 , 346); SetDim( 'hint_loc_csi', 0, 326, 18); SetFontScale('hint_loc_csi', _hint_text_fontscale ); SetTextColor('hint_loc_csi', _hint_alpha_text_normal , _hint_r_text_normal, _hint_g_text_normal, _hint_b_text_normal ); SetTxt( 'hint_loc_csi', _hint_text_font_no, _hint_text_align, "NULL" ) end function evidenceButton_loc_csi() SetMaterial( 'evidenceButton_loc_csi', 0, "", 0 ,255, 255, 255 ); SetMaterial( 'evidenceButton_loc_csi', 1, "Menu\\MenuTextures\\Menu\\Evidence\\buton_evidence.dds", 255,141, 219, 242 ); SetPos( 'evidenceButton_loc_csi', 0 ,_xButt + xLeftOffset , _yButt +28 ); SetDim( 'evidenceButton_loc_csi', 0 , _wButt, _hButt ); SetPos( 'evidenceButton_loc_csi', 1 , _xButt + xLeftOffset , _yButt +28 ); SetDim( 'evidenceButton_loc_csi', 1 , _wButt, _hButt ); SetTxt( 'evidenceButton_loc_csi', _text_font_no, 4, "TB_Evidence" ) SetTextPosition( "evidenceButton_loc_csi" , _left_offset_x_text , 0 , _w_text, _h_text ); SetTextColor( "evidenceButton_loc_csi" , 255 , 200 ,255,190 ); SetFontScale( "evidenceButton_loc_csi" , _sizenormal ); end -- in area de location -> obiectul locationsButton trebuie "activat" function locationsButton_loc_csi() SetMaterial( 'locationsButton_loc_csi', 0, _file_texture_left_bgrd , 255,255,255,255); SetMaterial( 'locationsButton_loc_csi', 1, "", 255,255, 255, 255 ); SetPos( 'locationsButton_loc_csi', 0 , _xButt + xLeftOffset , _yButt ); SetDim( 'locationsButton_loc_csi', 0 , _wButt, _hButt ); SetPos( 'locationsButton_loc_csi', 1 , _xButt + xLeftOffset, _yButt ); SetDim( 'locationsButton_loc_csi', 1 , _wButt, _hButt ); SetTxt( 'locationsButton_loc_csi', _text_font_no, 4, "TB_Locations" ); SetTextPosition( "locationsButton_loc_csi" , _left_offset_x_text , 0 , _w_text, _h_text ); SetTextColor( "locationsButton_loc_csi" , 255 ,180 ,180, 0 ); SetFontScale( "locationsButton_loc_csi" , _sizeselected ); end function caseButton_loc_csi() SetMaterial( 'caseButton_loc_csi', 0, "", 0,255, 255, 255 ); SetMaterial( 'caseButton_loc_csi', 1, "", 255,141, 219, 242 ); SetPos( 'caseButton_loc_csi', 0 , _xButt + xLeftOffset, _yButt+55 ); SetDim( 'caseButton_loc_csi', 0 , _wButt, _hButt ); SetPos( 'caseButton_loc_csi', 1 , _xButt + xLeftOffset, _yButt+55 ); SetDim( 'caseButton_loc_csi', 1 , _wButt, _hButt ); SetTxt( 'caseButton_loc_csi', _text_font_no, 4, "CF_Title" ) SetTextPosition( "caseButton_loc_csi" , _left_offset_x_text , 0 , _w_text, _h_text ); SetTextColor( "caseButton_loc_csi" , 255 , 200 ,255,190 ); SetFontScale( "caseButton_loc_csi" , _sizenormal ); end function crimetext_loc_csi() SetMaterial( 'crimetext_loc_csi', 0, "", 0,255, 255, 255 ); SetMaterial( 'crimetext_loc_csi', 1, "", 255,141, 219, 242 ); SetPos( 'crimetext_loc_csi', 0 , _xButt+483, _yButt+30 ); SetDim( 'crimetext_loc_csi', 0 , _wButt, _hButt ); SetPos( 'crimetext_loc_csi', 1 , _xButt+483, _yButt+30 ); SetDim( 'crimetext_loc_csi', 1 , _wButt, _hButt ); SetTxt( 'crimetext_loc_csi', _text_font_no, 6, "CF_CrimeScene" ) SetTextPosition( "crimetext_loc_csi" , _right_offset_x_text , 0 , _w_text, _h_text ); SetFontScale( "crimetext_loc_csi" , _sizenormal ); end function csitext_loc_csi() SetMaterial( 'csitext_loc_csi', 0, _file_texture_right_bgrd , 255,255, 255,255 ); SetMaterial( 'csitext_loc_csi', 1, "", 255,141, 219, 242 ); SetPos( 'csitext_loc_csi', 0 , _xButt+483, _yButt ); SetDim( 'csitext_loc_csi', 0 , _wButt, _hButt ); SetPos( 'csitext_loc_csi', 1 , _xButt+483, _yButt ); SetDim( 'csitext_loc_csi', 1 , _wButt, _hButt ); SetTxt( 'csitext_loc_csi', _text_font_no, 6, "TEXT0082" ) SetTextPosition( "csitext_loc_csi" , _right_offset_x_text , 0 , _w_text, _h_text ); SetFontScale( "csitext_loc_csi" , _sizeselected ); SetTextColor( "csitext_loc_csi" , 255 ,224 ,224,255 ); end function scrollLeft_loc_csi() SetMaterial( 'scrollLeft_loc_csi', 0, _file_texture_left_scroll_sel , 255,255, 255, 255 ); SetMaterial( 'scrollLeft_loc_csi', 1, _file_texture_left_scroll_normal, 255,255,255,255 ); SetPos( 'scrollLeft_loc_csi', 0 , 149, _yButt+37 ); SetDim( 'scrollLeft_loc_csi', 0 , 16 , 32 ); SetPos( 'scrollLeft_loc_csi', 1 , 149, _yButt+37 ); SetDim( 'scrollLeft_loc_csi', 1 , 16 , 32 ); end function scrollRight_loc_csi() SetMaterial( 'scrollRight_loc_csi', 0, _file_texture_right_scroll_sel , 255,255, 255, 255 ); SetMaterial( 'scrollRight_loc_csi', 1, _file_texture_right_scroll_normal , 255,141, 219, 242 ); SetPos( 'scrollRight_loc_csi', 0 , 475, _yButt+37 ); SetDim( 'scrollRight_loc_csi', 0 , 16 , 32 ); SetPos( 'scrollRight_loc_csi', 1 , 475, _yButt+37 ); SetDim( 'scrollRight_loc_csi', 1 , 16 , 32 ); end