-- DETECTION TOOLS alpha0=255 alpha1=255 alpha2=255 alpha3=255 color0_r=255 color1_r=255 color2_r=255 color3_r=255 color0_b=255 color1_b=255 color2_b=255 color3_b=255 color0_g=255 color1_g=255 color2_g=255 color3_g=255 tools_x=0 tools_y=0 magnetic_normal_x =tools_x + 354 magnetic_normal_y =tools_y + 172 magnetic_sel_x =tools_x + 287 magnetic_sel_y =tools_y + 162 magnetic_normal_dx =64 magnetic_normal_dy =64 magnetic_sel_dx =128 magnetic_sel_dy =128 ninhydrin_normal_x =tools_x + 319 ninhydrin_normal_y =tools_y + 146 ninhydrin_sel_x =tools_x + 292 ninhydrin_sel_y =tools_y + 146 ninhydrin_normal_dx =128 ninhydrin_normal_dy =64 ninhydrin_sel_dx =128 ninhydrin_sel_dy =128 fingerdust_normal_x =tools_x + 253 fingerdust_normal_y =tools_y + 146 fingerdust_sel_x =tools_x + 253 fingerdust_sel_y =tools_y + 146 fingerdust_normal_dx =128 fingerdust_normal_dy =64 fingerdust_sel_dx =128 fingerdust_sel_dy =128 magnifier_normal_x =tools_x + 227 magnifier_normal_y =tools_y + 175 magnifier_sel_x =tools_x + 227 magnifier_sel_y =tools_y + 175 magnifier_normal_dx =64 magnifier_normal_dy =64 magnifier_sel_dx =128 magnifier_sel_dy =128 brush_normal_x =tools_x + 227 brush_normal_y =tools_y + 240 brush_sel_x =tools_x + 227 brush_sel_y =tools_y + 195 brush_normal_dx =64 brush_normal_dy =128 brush_sel_dx =128 brush_sel_dy =128 luminol_normal_x =tools_x + 254 luminol_normal_y =tools_y + 275 luminol_sel_x =tools_x + 254 luminol_sel_y =tools_y + 206 luminol_normal_dx =128 luminol_normal_dy =64 luminol_sel_dx =128 luminol_sel_dy =128 uv_normal_x =tools_x + 319 uv_normal_y =tools_y + 275 uv_sel_x =tools_x + 279 uv_sel_y =tools_y + 206 uv_normal_dx =128 uv_normal_dy =64 uv_sel_dx =128 uv_sel_dy =128 ircam_normal_x =tools_x + 354 ircam_normal_y =tools_y + 258 ircam_sel_x =tools_x + 285 ircam_sel_y =tools_y + 197 ircam_normal_dx =64 ircam_normal_dy =64 ircam_sel_dx =128 ircam_sel_dy =128 _magnetic_file_normal ="menu\\MenuTextures\\tools\\icon_magnetic.dds" _magnetic_file_sel ="menu\\MenuTextures\\tools\\icon_magnetic_sel.dds" _ninhydrin_file_normal ="menu\\MenuTextures\\tools\\icon_ninhydrin.dds" _ninhydrin_file_sel ="menu\\MenuTextures\\tools\\icon_ninhydrin_sel.dds" _fingerdust_file_normal ="menu\\MenuTextures\\tools\\icon_fingerdust.dds" _fingerdust_file_sel ="menu\\MenuTextures\\tools\\icon_fingerdust_sel.dds" _magnifier_file_normal ="menu\\MenuTextures\\tools\\icon_magnifier.dds" _magnifier_file_sel ="menu\\MenuTextures\\tools\\icon_magnifier_sel.dds" _brush_file_normal ="menu\\MenuTextures\\tools\\icon_brush.dds" _brush_file_sel ="menu\\MenuTextures\\tools\\icon_brush_sel.dds" _luminol_file_normal ="menu\\MenuTextures\\tools\\icon_luminol.dds" _luminol_file_sel ="menu\\MenuTextures\\tools\\icon_luminol_sel.dds" _uv_file_normal ="menu\\MenuTextures\\tools\\icon_uv.dds" _uv_file_sel ="menu\\MenuTextures\\tools\\icon_uv_sel.dds" _ircam_file_normal ="menu\\MenuTextures\\tools\\icon_ircam.dds" _ircam_file_sel ="menu\\MenuTextures\\tools\\icon_ircam_sel.dds" _function_sel="DetectionSelect" _hint_text1="TB_Magnetic_Dust" _hint_text2="TB_Ninhydrin" _hint_text3="TB_Fingerprint_Dust" _hint_text4="TB_Magnifying_Scope" _hint_text5="TB_Brush" _hint_text6="TB_Luminol" _hint_text7="TB_UV" _hint_text8="TEXT0039" _file_texture_normal="Menu\\MenuTextures\\Tools\\coll_dete_button_UP.tga" _file_texture_press="Menu\\MenuTextures\\Tools\\coll_dete_button_PRESS.tga" function detection() SetMaterial( 'detection', 0 ,"", 0,205,205,200 );--NS SetMaterial( 'detection', 1 ,"", 0,205,205,200 ); SetPos( 'detection',0 , 10, 10); SetDim( 'detection',0 , 220, 60 ); SetPos( 'detection',1 , 10, 10); SetDim( 'detection',1 , 220, 60 ); AddStaticObject( "detection" , "hint_det"); AddStaticObject( "detection" , "text_det_det"); AddStaticObject( "detection" , "text_col_det"); AddPushButton('detection', "magnetic"); AddPushButton('detection', "ninhydrin"); AddPushButton('detection', "fingerdust"); AddPushButton('detection', "magnifier"); AddPushButton('detection', "brush"); AddPushButton('detection', "luminol"); AddPushButton('detection', "uv"); AddPushButton('detection', "ircam"); GUISetVisible( "magnetic", 0 ); GUISetVisible( "ninhydrin", 0 ); GUISetVisible( "fingerdust", 0 ); GUISetVisible( "magnifier", 0 ); GUISetVisible( "brush", 0 ); GUISetVisible( "luminol", 0 ); GUISetVisible( "uv", 0 ); GUISetVisible( "ircam", 0 ); GUISetVisible( 'detection', 0 , 2 , 0); SetState( 'detection', 1); end function hint_det() SetMaterial( 'hint_det', 0, "", 214 ,16,16,20 );-- ND SetMaterial( 'hint_det', 1, "", 213 ,12,10,23 ); SetPos( 'hint_det', 0, 156 , 366); SetDim( 'hint_det', 0, 326, 18); SetFontScale('hint_det', _hint_text_fontscale ); SetTextColor('hint_det', _hint_alpha_text_normal , _hint_r_text_normal , _hint_g_text_normal , _hint_b_text_normal ); SetTxt( 'hint_det', _hint_text_font_no , _hint_text_align , "NULL" ) end function text_det_det() SetMaterial( 'text_det_det', 0, _file_texture_press, 255 ,255, 255, 255 ); SetMaterial( 'text_det_det', 1, "", 255,141, 219, 242 ); SetPos( 'text_det_det', 0 , 365 , 222 ); SetDim( 'text_det_det', 0 , 128, 32 ); SetPos( 'text_det_det', 1 , 365 , 222 ); SetDim( 'text_det_det', 1 , 128, 32 ); SetTxt( 'text_det_det', 1, 5, "TB_Detection" ) SetTextPosition( "text_det_det" , 0 , 1 , 126 , 16 ); SetTextColor( "text_det_det" , 255 , 230 ,255,249 ); SetFontScale( "text_det_det" , "0.7" ); end function text_col_det() SetMaterial( 'text_col_det', 0, _file_texture_normal , 255 ,255, 255, 255 ); SetMaterial( 'text_col_det', 1, "", 255,141, 219, 242 ); SetPos( 'text_col_det', 0 ,365 , 240 ); SetDim( 'text_col_det', 0 ,128, 32 ); SetPos( 'text_col_det', 1 ,365 , 240 ); SetDim( 'text_col_det', 1 ,128, 32 ); SetTxt( 'text_col_det', 1, 5, "TB_Collection" ) SetTextPosition( "text_col_det" , 0 , 1 , 126 , 16 ); SetTextColor( "text_col_det" , 255 , 200 ,255,190 ); SetFontScale( "text_col_det" , "0.7" ); end function magnetic() SetMaterial( 'magnetic', 0, _magnetic_file_normal , alpha0, color0_r,color0_g,color0_b ); SetMaterial( 'magnetic', 1, _magnetic_file_sel , alpha1, color1_r,color1_g,color1_b ); SetMaterial( 'magnetic', 2, _magnetic_file_normal , alpha2, color2_r,color2_g,color2_b ); SetMaterial( 'magnetic', 3, _magnetic_file_normal , alpha3, color3_r,color3_g,color3_b ); SetPos( 'magnetic', 0, magnetic_normal_x , magnetic_normal_y); SetDim( 'magnetic', 0, magnetic_normal_dx , magnetic_normal_dy); SetPos( 'magnetic', 1, magnetic_sel_x , magnetic_sel_y); SetDim( 'magnetic', 1, magnetic_sel_dx , magnetic_sel_dy); SetPos( 'magnetic', 2, magnetic_normal_x , magnetic_normal_y); SetDim( 'magnetic', 2, magnetic_normal_dx , magnetic_normal_dy); SetPos( 'magnetic', 3, magnetic_normal_x , magnetic_normal_y); SetDim( 'magnetic', 3, magnetic_normal_dx , magnetic_normal_dy); SetState( 'magnetic', 1); SetNSEW( 'magnetic', 'NULL', 'NULL', 'ircam', 'ninhydrin' ); SetPush( 'magnetic', 'ToolActivate' ); SetSndSelect( 'magnetic', 'Highlight'); SetSndPush( 'magnetic', 'accept'); SetSel( "magnetic" , _function_sel ); SetHintText('magnetic', _hint_text1 ); end function ninhydrin() SetMaterial( 'ninhydrin', 0, _ninhydrin_file_normal , alpha0, color0_r,color0_g,color0_b ); SetMaterial( 'ninhydrin', 1, _ninhydrin_file_sel , alpha1, color1_r,color1_g,color1_b ); SetMaterial( 'ninhydrin', 2, _ninhydrin_file_normal , alpha2, color2_r,color2_g,color2_b ); SetMaterial( 'ninhydrin', 3, _ninhydrin_file_normal , alpha3, color3_r,color3_g,color3_b ); SetPos( 'ninhydrin', 0, ninhydrin_normal_x , ninhydrin_normal_y); SetDim( 'ninhydrin', 0, ninhydrin_normal_dx , ninhydrin_normal_dy); SetPos( 'ninhydrin', 1, ninhydrin_sel_x , ninhydrin_sel_y); SetDim( 'ninhydrin', 1, ninhydrin_sel_dx , ninhydrin_sel_dy); SetPos( 'ninhydrin', 2, ninhydrin_normal_x , ninhydrin_normal_y); SetDim( 'ninhydrin', 2, ninhydrin_normal_dx , ninhydrin_normal_dy); SetPos( 'ninhydrin', 3, ninhydrin_normal_x , ninhydrin_normal_y); SetDim( 'ninhydrin', 3, ninhydrin_normal_dx , ninhydrin_normal_dy); SetState( 'ninhydrin', 0); SetNSEW( 'ninhydrin', 'NULL', 'NULL', 'magnetic', 'fingerdust' ); SetPush( 'ninhydrin', 'ToolActivate' ); SetSndSelect( 'ninhydrin', 'Highlight'); SetSndPush( 'ninhydrin', 'accept'); SetSel( "ninhydrin" , _function_sel ); SetHintText('ninhydrin', _hint_text2 ); end function fingerdust() SetMaterial( 'fingerdust', 0, _fingerdust_file_normal , alpha0, color0_r,color0_g,color0_b ); SetMaterial( 'fingerdust', 1, _fingerdust_file_sel , alpha1, color1_r,color1_g,color1_b ); SetMaterial( 'fingerdust', 2, _fingerdust_file_normal , alpha2, color2_r,color2_g,color2_b ); SetMaterial( 'fingerdust', 3, _fingerdust_file_normal , alpha3, color3_r,color3_g,color3_b ); SetPos( 'fingerdust', 0, fingerdust_normal_x , fingerdust_normal_y); SetDim( 'fingerdust', 0, fingerdust_normal_dx , fingerdust_normal_dy); SetPos( 'fingerdust', 1, fingerdust_sel_x , fingerdust_sel_y); SetDim( 'fingerdust', 1, fingerdust_sel_dx , fingerdust_sel_dy); SetPos( 'fingerdust', 2, fingerdust_normal_x , fingerdust_normal_y); SetDim( 'fingerdust', 2, fingerdust_normal_dx , fingerdust_normal_dy); SetPos( 'fingerdust', 3, fingerdust_normal_x , fingerdust_normal_y); SetDim( 'fingerdust', 3, fingerdust_normal_dx , fingerdust_normal_dy); SetState( 'fingerdust', 0); SetNSEW( 'fingerdust', 'NULL', 'NULL', 'ninhydrin', 'magnifier' ); SetPush( 'fingerdust', 'ToolActivate' ); SetSndSelect( 'fingerdust', 'Highlight'); SetSndPush( 'fingerdust', 'accept'); SetSel( "fingerdust" , _function_sel ); SetHintText('fingerdust', _hint_text3 ); end function magnifier() SetMaterial( 'magnifier', 0, _magnifier_file_normal , alpha0, color0_r,color0_g,color0_b ); SetMaterial( 'magnifier', 1, _magnifier_file_sel , alpha1, color1_r,color1_g,color1_b ); SetMaterial( 'magnifier', 2, _magnifier_file_normal , alpha2, color2_r,color2_g,color2_b ); SetMaterial( 'magnifier', 3, _magnifier_file_normal , alpha3, color3_r,color3_g,color3_b ); SetPos( 'magnifier', 0, magnifier_normal_x , magnifier_normal_y); SetDim( 'magnifier', 0, magnifier_normal_dx , magnifier_normal_dy); SetPos( 'magnifier', 1, magnifier_sel_x , magnifier_sel_y); SetDim( 'magnifier', 1, magnifier_sel_dx , magnifier_sel_dy); SetPos( 'magnifier', 2, magnifier_normal_x , magnifier_normal_y); SetDim( 'magnifier', 2, magnifier_normal_dx , magnifier_normal_dy); SetPos( 'magnifier', 3, magnifier_normal_x , magnifier_normal_y); SetDim( 'magnifier', 3, magnifier_normal_dx , magnifier_normal_dy); SetState( 'magnifier', 0); SetNSEW( 'magnifier', 'NULL', 'NULL', 'fingerdust', 'brush' ); SetPush( 'magnifier', 'ToolActivate' ); SetSndSelect( 'magnifier', 'Highlight'); SetSndPush( 'magnifier', 'accept'); SetSel( "magnifier" , _function_sel ); SetHintText('magnifier', _hint_text4 ); end function brush() SetMaterial( 'brush', 0, _brush_file_normal , alpha0, color0_r,color0_g,color0_b ); SetMaterial( 'brush', 1, _brush_file_sel , alpha1, color1_r,color1_g,color1_b ); SetMaterial( 'brush', 2, _brush_file_normal , alpha2, color2_r,color2_g,color2_b ); SetMaterial( 'brush', 3, _brush_file_normal , alpha3, color3_r,color3_g,color3_b ); SetPos( 'brush', 0, brush_normal_x , brush_normal_y); SetDim( 'brush', 0, brush_normal_dx , brush_normal_dy); SetPos( 'brush', 1, brush_sel_x , brush_sel_y); SetDim( 'brush', 1, brush_sel_dx , brush_sel_dy); SetPos( 'brush', 2, brush_normal_x , brush_normal_y); SetDim( 'brush', 2, brush_normal_dx , brush_normal_dy); SetPos( 'brush', 3, brush_normal_x , brush_normal_y); SetDim( 'brush', 3, brush_normal_dx , brush_normal_dy); SetState( 'brush', 0); SetNSEW( 'brush', 'NULL', 'NULL', 'magnifier', 'luminol' ); SetPush( 'brush', 'ToolActivate' ); SetSndSelect( 'brush', 'Highlight'); SetSndPush( 'brush', 'accept'); SetSel( "brush" , _function_sel ); SetHintText('brush', _hint_text5 ); end function luminol() SetMaterial( 'luminol', 0, _luminol_file_normal , alpha0, color0_r,color0_g,color0_b ); SetMaterial( 'luminol', 1, _luminol_file_sel , alpha1, color1_r,color1_g,color1_b ); SetMaterial( 'luminol', 2, _luminol_file_normal , alpha2, color2_r,color2_g,color2_b ); SetMaterial( 'luminol', 3, _luminol_file_normal , alpha3, color3_r,color3_g,color3_b ); SetPos( 'luminol', 0, luminol_normal_x , luminol_normal_y); SetDim( 'luminol', 0, luminol_normal_dx , luminol_normal_dy); SetPos( 'luminol', 1, luminol_sel_x , luminol_sel_y); SetDim( 'luminol', 1, luminol_sel_dx , luminol_sel_dy); SetPos( 'luminol', 2, luminol_normal_x , luminol_normal_y); SetDim( 'luminol', 2, luminol_normal_dx , luminol_normal_dy); SetPos( 'luminol', 3, luminol_normal_x , luminol_normal_y); SetDim( 'luminol', 3, luminol_normal_dx , luminol_normal_dy); SetState( 'luminol', 0); SetNSEW( 'luminol', 'NULL', 'NULL', 'brush', 'uv' ); SetPush( 'luminol', 'ToolActivate' ); SetSndSelect( 'luminol', 'Highlight'); SetSndPush( 'luminol', 'accept'); SetSel( "luminol" , _function_sel ); SetHintText('luminol', _hint_text6 ); end function uv() SetMaterial( 'uv', 0, _uv_file_normal , alpha0, color0_r,color0_g,color0_b ); SetMaterial( 'uv', 1, _uv_file_sel , alpha1, color1_r,color1_g,color1_b ); SetMaterial( 'uv', 2, _uv_file_normal , alpha2, color2_r,color2_g,color2_b ); SetMaterial( 'uv', 3, _uv_file_normal , alpha3, color3_r,color3_g,color3_b ); SetPos( 'uv', 0, uv_normal_x , uv_normal_y); SetDim( 'uv', 0, uv_normal_dx , uv_normal_dy); SetPos( 'uv', 1, uv_sel_x , uv_sel_y); SetDim( 'uv', 1, uv_sel_dx , uv_sel_dy); SetPos( 'uv', 2, uv_normal_x , uv_normal_y); SetDim( 'uv', 2, uv_normal_dx , uv_normal_dy); SetPos( 'uv', 3, uv_normal_x , uv_normal_y); SetDim( 'uv', 3, uv_normal_dx , uv_normal_dy); SetState( 'uv', 0); SetNSEW( 'uv', 'NULL', 'NULL', 'luminol', 'ircam' ); SetPush( 'uv', 'ToolActivate' ); SetSndSelect( 'uv', 'Highlight'); SetSndPush( 'uv', 'accept'); SetSel( "uv" , _function_sel ); SetHintText('uv', _hint_text7 ); end function ircam() SetMaterial( 'ircam', 0, _ircam_file_normal , alpha0, color0_r,color0_g,color0_b ); SetMaterial( 'ircam', 1, _ircam_file_sel , alpha1, color1_r,color1_g,color1_b ); SetMaterial( 'ircam', 2, _ircam_file_normal , alpha2, color2_r,color2_g,color2_b ); SetMaterial( 'ircam', 3, _ircam_file_normal , alpha3, color3_r,color3_g,color3_b ); SetPos( 'ircam', 0, ircam_normal_x , ircam_normal_y); SetDim( 'ircam', 0, ircam_normal_dx , ircam_normal_dy); SetPos( 'ircam', 1, ircam_sel_x , ircam_sel_y); SetDim( 'ircam', 1, ircam_sel_dx , ircam_sel_dy); SetPos( 'ircam', 2, ircam_normal_x , ircam_normal_y); SetDim( 'ircam', 2, ircam_normal_dx , ircam_normal_dy); SetPos( 'ircam', 3, ircam_normal_x , ircam_normal_y); SetDim( 'ircam', 3, ircam_normal_dx , ircam_normal_dy); SetState( 'ircam', 0); SetNSEW( 'ircam', 'NULL', 'NULL', 'uv', 'magnetic' ); SetPush( 'ircam', 'ToolActivate' ); SetSndSelect( 'ircam', 'Highlight'); SetSndPush( 'ircam', 'accept'); SetSel( "ircam" , _function_sel ); SetHintText('ircam', _hint_text8 ); end