-- COLLECTION 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 swab_normal_x = tools_x + 354 swab_normal_y = tools_y + 172 swab_sel_x = tools_x + 286 swab_sel_y = tools_y + 172 swab_normal_dx =64 swab_normal_dy =64 swab_sel_dx= 128 swab_sel_dy= 128 gloves_normal_x = tools_x + 319 gloves_normal_y = tools_y + 146 gloves_sel_x = tools_x + 275 gloves_sel_y = tools_y + 146 gloves_normal_dx =128 gloves_normal_dy =64 gloves_sel_dx= 128 gloves_sel_dy= 128 tweezers_normal_x = tools_x + 253 tweezers_normal_y = tools_y + 146 tweezers_sel_x = tools_x + 253 tweezers_sel_y = tools_y + 146 tweezers_normal_dx =128 tweezers_normal_dy =64 tweezers_sel_dx= 128 tweezers_sel_dy= 128 cast_normal_x = tools_x + 227 cast_normal_y = tools_y + 174 cast_sel_x = tools_x + 227 cast_sel_y = tools_y + 174 cast_normal_dx =64 cast_normal_dy =128 cast_sel_dx= 128 cast_sel_dy= 128 mikrosil_normal_x = tools_x + 227 mikrosil_normal_y = tools_y + 240 mikrosil_sel_x = tools_x + 227 mikrosil_sel_y = tools_y + 200 mikrosil_normal_dx =64 mikrosil_normal_dy =128 mikrosil_sel_dx= 128 mikrosil_sel_dy= 128 adhesive_normal_x = tools_x + 257 adhesive_normal_y = tools_y + 275 adhesive_sel_x = tools_x + 254 adhesive_sel_y = tools_y + 204 adhesive_normal_dx =128 adhesive_normal_dy =64 adhesive_sel_dx= 128 adhesive_sel_dy= 128 efoil_normal_x = tools_x + 319 efoil_normal_y = tools_y + 275 efoil_sel_x = tools_x + 274 efoil_sel_y = tools_y + 205 efoil_normal_dx =128 efoil_normal_dy =64 efoil_sel_dx= 128 efoil_sel_dy= 128 asmount_normal_x = tools_x + 354 asmount_normal_y = tools_y + 258 asmount_sel_x = tools_x + 285 asmount_sel_y = tools_y + 217 asmount_normal_dx =64 asmount_normal_dy =64 asmount_sel_dx= 128 asmount_sel_dy= 128 _swab_file_normal ="menu\\MenuTextures\\tools\\icon_swab.dds" _swab_file_sel ="menu\\MenuTextures\\tools\\icon_swab_sel.dds" _gloves_file_normal ="menu\\MenuTextures\\tools\\icon_gloves.dds" _gloves_file_sel ="menu\\MenuTextures\\tools\\icon_gloves_sel.dds" _tweezers_file_normal ="menu\\MenuTextures\\tools\\icon_tweezers.dds" _tweezers_file_sel ="menu\\MenuTextures\\tools\\icon_tweezers_sel.dds" _cast_file_normal ="menu\\MenuTextures\\tools\\icon_cast.dds" _cast_file_sel ="menu\\MenuTextures\\tools\\icon_cast_sel.dds" _mikrosil_file_normal ="menu\\MenuTextures\\tools\\icon_mikrosil.dds" _mikrosil_file_sel ="menu\\MenuTextures\\tools\\icon_mikrosil_sel.dds" _adhesive_file_normal ="menu\\MenuTextures\\tools\\icon_adhesive.dds" _adhesive_file_sel ="menu\\MenuTextures\\tools\\icon_adhesive_sel.dds" _efoil_file_normal ="menu\\MenuTextures\\tools\\icon_efoil.dds" _efoil_file_sel ="menu\\MenuTextures\\tools\\icon_efoil_sel.dds" _asmount_file_normal ="menu\\MenuTextures\\tools\\icon_asmount.dds" _asmount_file_sel ="menu\\MenuTextures\\tools\\icon_asmount_sel.dds" _function_sel="CollectionSelect" _hint_text1="TB_Swab" _hint_text2="TB_Glove" _hint_text3="TB_Tweezer" _hint_text4="TB_Casting_Kit" _hint_text5="TB_Mikrosil" _hint_text6="TB_Adehsive_Lifter" _hint_text7="TB_Electrostatic" _hint_text8="TB_Specimin_Mount" _file_texture_normal="Menu\\MenuTextures\\Tools\\coll_dete_button_UP.tga" _file_texture_press="Menu\\MenuTextures\\Tools\\coll_dete_button_PRESS.tga" function collection() SetMaterial( 'collection', 0 ,"", 0,205,205,200 );--NS SetMaterial( 'collection', 1 ,"", 0,205,205,200 ); SetPos( 'collection',0 , 10, 10); SetDim( 'collection',0 , 220, 60 ); SetPos( 'collection',1 , 10, 10); SetDim( 'collection',1 , 220, 60 ); AddStaticObject( "collection" , "hint_col"); AddStaticObject( "collection" , "text_det_col"); AddStaticObject( "collection" , "text_col_col"); AddPushButton('collection', "swab"); AddPushButton('collection', "gloves"); AddPushButton('collection', "tweezers"); AddPushButton('collection', "cast"); AddPushButton('collection', "mikrosil"); AddPushButton('collection', "adhesive"); AddPushButton('collection', "efoil"); AddPushButton('collection', "asmount"); -- AddStaticObject("collection","collection_leftscroll"); -- AddStaticObject("collection","collection_rightscroll"); -- SetFlagButton("collection",0,"collection_leftscroll"); -- SetFlagButton("collection",1,"collection_rightscroll"); GUISetVisible( "swab", 0 ); GUISetVisible( "gloves", 0 ); GUISetVisible( "tweezers", 0 ); GUISetVisible( "cast", 0 ); GUISetVisible( "mikrosil", 0 ); GUISetVisible( "adhesive", 0 ); GUISetVisible( "efoil", 0 ); GUISetVisible( "asmount", 0 ); GUISetVisible( 'collection', 0 , 2 , 0); SetState( 'collection', 1); end function hint_col() SetMaterial( 'hint_col', 0, "", 214 ,16,16,20 );-- ND SetMaterial( 'hint_col', 1, "", 213 ,12,10,23 ); SetPos( 'hint_col', 0, 156 , 366); SetDim( 'hint_col', 0, 326, 18); SetFontScale('hint_col', _hint_text_fontscale ); SetTextColor('hint_col', _hint_alpha_text_normal , _hint_r_text_normal , _hint_g_text_normal , _hint_b_text_normal ); SetTxt( 'hint_col', _hint_text_font_no , _hint_text_align , "NULL" ) end function text_det_col() SetMaterial( 'text_det_col', 0, _file_texture_normal, 255 ,255, 255, 255 ); SetMaterial( 'text_det_col', 1, "", 255,141, 219, 242 ); SetPos( 'text_det_col', 0 , 365 , 222 ); SetDim( 'text_det_col', 0 , 128, 32 ); SetPos( 'text_det_col', 1 , 365 , 222 ); SetDim( 'text_det_col', 1 , 128, 32 ); SetTxt( 'text_det_col', 1, 5, "TB_Detection" ) SetTextPosition( "text_det_col" , 0 , 1 , 126 , 16 ); SetTextColor( "text_det_col" , 255 , 200 ,255,190 ); SetFontScale( "text_det_col" , "0.7" ); end function text_col_col() SetMaterial( 'text_col_col', 0, _file_texture_press , 255 ,255, 255, 255 ); SetMaterial( 'text_col_col', 1, "", 255,141, 219, 242 ); SetPos( 'text_col_col', 0 ,365 , 240 ); SetDim( 'text_col_col', 0 ,128, 32 ); SetPos( 'text_col_col', 1 ,365 , 240 ); SetDim( 'text_col_col', 1 ,128, 32 ); SetTxt( 'text_col_col', 1, 5, "TB_Collection" ) SetTextPosition( "text_col_col" , 0 , 1 , 126 , 16 ); SetTextColor( "text_col_col" , 255, 230 ,255,249 ); SetFontScale( "text_col_col" , "0.7" ); end function swab() SetMaterial( 'swab', 0, _swab_file_normal , alpha0, color0_r,color0_g,color0_b ); SetMaterial( 'swab', 1, _swab_file_sel , alpha1, color1_r,color1_g,color1_b ); SetMaterial( 'swab', 2, _swab_file_normal , alpha2, color2_r,color2_g,color2_b ); SetMaterial( 'swab', 3, _swab_file_normal , alpha3, color3_r,color3_g,color3_b ); SetPos( 'swab', 0, swab_normal_x, swab_normal_y); SetDim( 'swab', 0, swab_normal_dx , swab_normal_dy ); SetPos( 'swab', 1, swab_sel_x, swab_sel_y); SetDim( 'swab', 1, swab_sel_dx , swab_sel_dy ); SetPos( 'swab', 2, swab_normal_x, swab_normal_y); SetDim( 'swab', 2, swab_normal_dx , swab_normal_dy ); SetPos( 'swab', 3, swab_normal_x, swab_normal_y); SetDim( 'swab', 3, swab_normal_dx , swab_normal_dy ); SetState( 'swab', 1); SetNSEW( 'swab', 'NULL', 'NULL', 'asmount', 'gloves' ); SetPush( 'swab', 'ToolActivate' ); SetSndSelect( 'swab', 'Highlight'); SetSndPush( 'swab', 'accept'); SetSel( "swab" , _function_sel ); SetHintText('swab', _hint_text1 ); end function gloves() SetMaterial( 'gloves', 0, _gloves_file_normal , alpha0, color0_r,color0_g,color0_b ); SetMaterial( 'gloves', 1, _gloves_file_sel , alpha1, color1_r,color1_g,color1_b ); SetMaterial( 'gloves', 2, _gloves_file_normal , alpha2, color2_r,color2_g,color2_b ); SetMaterial( 'gloves', 3, _gloves_file_normal , alpha3, color3_r,color3_g,color3_b ); SetPos( 'gloves', 0, gloves_normal_x, gloves_normal_y); SetDim( 'gloves', 0, gloves_normal_dx , gloves_normal_dy ); SetPos( 'gloves', 1, gloves_sel_x, gloves_sel_y); SetDim( 'gloves', 1, gloves_sel_dx , gloves_sel_dy ); SetPos( 'gloves', 2, gloves_normal_x, gloves_normal_y); SetDim( 'gloves', 2, gloves_normal_dx , gloves_normal_dy ); SetPos( 'gloves', 3, gloves_normal_x, gloves_normal_y); SetDim( 'gloves', 3, gloves_normal_dx , gloves_normal_dy ); SetState( 'gloves', 0); SetNSEW( 'gloves', 'NULL', 'NULL', 'swab', 'tweezers' ); SetPush( 'gloves', 'ToolActivate' ); SetSndSelect( 'gloves', 'Highlight'); SetSndPush( 'gloves', 'accept'); SetSel( "gloves" , _function_sel ); SetHintText('gloves', _hint_text2 ); end function tweezers() SetMaterial( 'tweezers', 0, _tweezers_file_normal , alpha0, color0_r,color0_g,color0_b ); SetMaterial( 'tweezers', 1, _tweezers_file_sel , alpha1, color1_r,color1_g,color1_b ); SetMaterial( 'tweezers', 2, _tweezers_file_normal , alpha2, color2_r,color2_g,color2_b ); SetMaterial( 'tweezers', 3, _tweezers_file_normal , alpha3, color3_r,color3_g,color3_b ); SetPos( 'tweezers', 0, tweezers_normal_x, tweezers_normal_y); SetDim( 'tweezers', 0, tweezers_normal_dx , tweezers_normal_dy ); SetPos( 'tweezers', 1, tweezers_sel_x, tweezers_sel_y); SetDim( 'tweezers', 1, tweezers_sel_dx , tweezers_sel_dy ); SetPos( 'tweezers', 2, tweezers_normal_x, tweezers_normal_y); SetDim( 'tweezers', 2, tweezers_normal_dx , tweezers_normal_dy ); SetPos( 'tweezers', 3, tweezers_normal_x, tweezers_normal_y); SetDim( 'tweezers', 3, tweezers_normal_dx , tweezers_normal_dy ); SetState( 'tweezers', 0); SetNSEW( 'tweezers', 'NULL', 'NULL', 'gloves', 'cast' ); SetPush( 'tweezers', 'ToolActivate' ); SetSndSelect( 'tweezers', 'Highlight'); SetSndPush( 'tweezers', 'accept'); SetSel( "tweezers" , _function_sel ); SetHintText('tweezers', _hint_text3 ); end function cast() SetMaterial( 'cast', 0, _cast_file_normal , alpha0, color0_r,color0_g,color0_b ); SetMaterial( 'cast', 1, _cast_file_sel , alpha1, color1_r,color1_g,color1_b ); SetMaterial( 'cast', 2, _cast_file_normal , alpha2, color2_r,color2_g,color2_b ); SetMaterial( 'cast', 3, _cast_file_normal , alpha3, color3_r,color3_g,color3_b ); SetPos( 'cast', 0, cast_normal_x, cast_normal_y); SetDim( 'cast', 0, cast_normal_dx , cast_normal_dy ); SetPos( 'cast', 1, cast_sel_x, cast_sel_y); SetDim( 'cast', 1, cast_sel_dx , cast_sel_dy ); SetPos( 'cast', 2, cast_normal_x, cast_normal_y); SetDim( 'cast', 2, cast_normal_dx , cast_normal_dy ); SetPos( 'cast', 3, cast_normal_x, cast_normal_y); SetDim( 'cast', 3, cast_normal_dx , cast_normal_dy ); SetState( 'cast', 0); SetNSEW( 'cast', 'NULL', 'NULL', 'tweezers', 'mikrosil' ); SetPush( 'cast', 'ToolActivate' ); SetSndSelect( 'cast', 'Highlight'); SetSndPush( 'cast', 'accept'); SetSel( "cast" , _function_sel ); SetHintText('cast', _hint_text4 ); end function mikrosil() SetMaterial( 'mikrosil', 0, _mikrosil_file_normal , alpha0, color0_r,color0_g,color0_b ); SetMaterial( 'mikrosil', 1, _mikrosil_file_sel , alpha1, color1_r,color1_g,color1_b ); SetMaterial( 'mikrosil', 2, _mikrosil_file_normal , alpha2, color2_r,color2_g,color2_b ); SetMaterial( 'mikrosil', 3, _mikrosil_file_normal , alpha3, color3_r,color3_g,color3_b ); SetPos( 'mikrosil', 0, mikrosil_normal_x, mikrosil_normal_y); SetDim( 'mikrosil', 0, mikrosil_normal_dx , mikrosil_normal_dy ); SetPos( 'mikrosil', 1, mikrosil_sel_x, mikrosil_sel_y); SetDim( 'mikrosil', 1, mikrosil_sel_dx , mikrosil_sel_dy ); SetPos( 'mikrosil', 2, mikrosil_normal_x, mikrosil_normal_y); SetDim( 'mikrosil', 2, mikrosil_normal_dx , mikrosil_normal_dy ); SetPos( 'mikrosil', 3, mikrosil_normal_x, mikrosil_normal_y); SetDim( 'mikrosil', 3, mikrosil_normal_dx , mikrosil_normal_dy ); SetState( 'mikrosil', 0); SetNSEW( 'mikrosil', 'NULL', 'NULL', 'cast', 'adhesive' ); SetPush( 'mikrosil', 'ToolActivate' ); SetSndSelect( 'mikrosil', 'Highlight'); SetSndPush( 'mikrosil', 'accept'); SetSel( "mikrosil" , _function_sel ); SetHintText('mikrosil', _hint_text5 ); end function adhesive() SetMaterial( 'adhesive', 0, _adhesive_file_normal , alpha0, color0_r,color0_g,color0_b ); SetMaterial( 'adhesive', 1, _adhesive_file_sel , alpha1, color1_r,color1_g,color1_b ); SetMaterial( 'adhesive', 2, _adhesive_file_normal , alpha2, color2_r,color2_g,color2_b ); SetMaterial( 'adhesive', 3, _adhesive_file_normal , alpha3, color3_r,color3_g,color3_b ); SetPos( 'adhesive', 0, adhesive_normal_x, adhesive_normal_y); SetDim( 'adhesive', 0, adhesive_normal_dx , adhesive_normal_dy ); SetPos( 'adhesive', 1, adhesive_sel_x, adhesive_sel_y); SetDim( 'adhesive', 1, adhesive_sel_dx , adhesive_sel_dy ); SetPos( 'adhesive', 2, adhesive_normal_x, adhesive_normal_y); SetDim( 'adhesive', 2, adhesive_normal_dx , adhesive_normal_dy ); SetPos( 'adhesive', 3, adhesive_normal_x, adhesive_normal_y); SetDim( 'adhesive', 3, adhesive_normal_dx , adhesive_normal_dy ); SetState( 'adhesive', 0); SetNSEW( 'adhesive', 'NULL', 'NULL', 'mikrosil', 'efoil' ); SetPush( 'adhesive', 'ToolActivate' ); SetSndSelect( 'adhesive', 'Highlight'); SetSndPush( 'adhesive', 'accept'); SetSel( "adhesive" , _function_sel ); SetHintText('adhesive', _hint_text6 ); end function efoil() SetMaterial( 'efoil', 0, _efoil_file_normal , alpha0, color0_r,color0_g,color0_b ); SetMaterial( 'efoil', 1, _efoil_file_sel , alpha1, color1_r,color1_g,color1_b ); SetMaterial( 'efoil', 2, _efoil_file_normal , alpha2, color2_r,color2_g,color2_b ); SetMaterial( 'efoil', 3, _efoil_file_normal , alpha3, color3_r,color3_g,color3_b ); SetPos( 'efoil', 0, efoil_normal_x, efoil_normal_y); SetDim( 'efoil', 0, efoil_normal_dx , efoil_normal_dy ); SetPos( 'efoil', 1, efoil_sel_x, efoil_sel_y); SetDim( 'efoil', 1, efoil_sel_dx , efoil_sel_dy ); SetPos( 'efoil', 2, efoil_normal_x, efoil_normal_y); SetDim( 'efoil', 2, efoil_normal_dx , efoil_normal_dy ); SetPos( 'efoil', 3, efoil_normal_x, efoil_normal_y); SetDim( 'efoil', 3, efoil_normal_dx , efoil_normal_dy ); SetState( 'efoil', 0); SetNSEW( 'efoil', 'NULL', 'NULL', 'adhesive', 'asmount' ); SetPush( 'efoil', 'ToolActivate' ); SetSndSelect( 'efoil', 'Highlight'); SetSndPush( 'efoil', 'accept'); SetSel( "efoil" , _function_sel ); SetHintText('efoil', _hint_text7 ); end function asmount() SetMaterial( 'asmount', 0, _asmount_file_normal , alpha0, color0_r,color0_g,color0_b ); SetMaterial( 'asmount', 1, _asmount_file_sel , alpha1, color1_r,color1_g,color1_b ); SetMaterial( 'asmount', 2, _asmount_file_normal , alpha2, color2_r,color2_g,color2_b ); SetMaterial( 'asmount', 3, _asmount_file_normal , alpha3, color3_r,color3_g,color3_b ); SetPos( 'asmount', 0, asmount_normal_x, asmount_normal_y); SetDim( 'asmount', 0, asmount_normal_dx , asmount_normal_dy ); SetPos( 'asmount', 1, asmount_sel_x, asmount_sel_y); SetDim( 'asmount', 1, asmount_sel_dx , asmount_sel_dy ); SetPos( 'asmount', 2, asmount_normal_x, asmount_normal_y); SetDim( 'asmount', 2, asmount_normal_dx , asmount_normal_dy ); SetPos( 'asmount', 3, asmount_normal_x, asmount_normal_y); SetDim( 'asmount', 3, asmount_normal_dx , asmount_normal_dy ); SetState( 'asmount', 0); SetNSEW( 'asmount', 'NULL', 'Mana_d', 'efoil', 'swab' ); SetPush( 'asmount', 'ToolActivate' ); SetSndSelect( 'asmount', 'Highlight'); SetSndPush( 'asmount', 'accept'); SetSel( "asmount" , _function_sel ); SetHintText('asmount', _hint_text8 ); end