function tile_layer_hide_ch1(arg0) { var __depth = arg0; var __layers = layer_get_all(); var __numlayers = array_length_1d(__layers); for (var __i = 0; __i < __numlayers; __i++) { if (layer_get_depth(__layers[__i]) != __depth) continue; var __els = layer_get_all_elements(__layers[__i]); var __numels = array_length_1d(__els); for (var __j = 0; __j < __numels; __j++) { var __eltype = layer_get_element_type(__els[__j]); if (__eltype == 7) layer_tile_visible(__els[__j], false); } } }