Hi Umalo,
It worked, it now only displays thumbnails for scenes where include_thumbs="true"
But the Thumb Border is is always sticking to the next scene in advance rather than sticking to the current scene being viewed, and if you go to the last shown thumbnail the thumb Border goes to the upper left part of the screen and you get the No Parent "skin_thumb" found. Is there a fix for this please?
For others, to save your time, I've compiled Umalo's codes above. So here's the updated skin_addthumbs action just replace the one in your vtourskin.xml file:
<action name="skin_addthumbs">
set(number_of_used_scenes,0);
for(set(i,0), i LT scene.count, inc(i),
if(scene[get(i)].include_thumb , inc(number_of_used_scenes););
);
copy(thumbwidth, skin_settings.thumbs_width);
copy(thumbheight, skin_settings.thumbs_height);
copy(thumbpadding, skin_settings.thumbs_padding);
copy(thumbcrop, skin_settings.thumbs_crop);
if(device.mobile,
mul(thumbwidth,2);
mul(thumbheight,2);
mul(thumbpadding,2);
);
add(thumbxoffset, thumbwidth, thumbpadding);
mul(thumbxcenter, thumbxoffset, 0.5);
mul(thumbbarwidth, thumbxoffset, get(number_of_used_scenes));
add(thumbbarwidth, thumbpadding);
add(thumbbarheight, thumbpadding, thumbheight);
add(thumbbarheight, thumbpadding);
if (skin_settings.thumbs_scrollindicator,
copy(layer[skin_thumbs_scrollindicator].y, thumbbarheight);
add(thumbbarheight, layer[skin_thumbs_scrollindicator].height);
);
copy(layer[skin_thumbs].height, thumbbarheight);
copy(layer[skin_thumbs].width, thumbbarwidth);
mul(halfheight, thumbbarheight, 0.5);
copy(layer[skin_thumbs_scrollleft].y, halfheight);
copy(layer[skin_thumbs_scrollright].y, halfheight);
set(number_of_active_thumbs,0);
set(adding_thumbs_from_zerro,0);
for(set(i,0), i LT scene.count, inc(i),
if(scene[get(i)].include_thumb,
inc(number_of_active_thumbs);
txtadd(thumbname,'skin_thumb_',get(adding_thumbs_from_zerro));
addlayer(get(thumbname));
copy(layer[get(thumbname)].url, scene[get(i)].thumburl);
set(layer[get(thumbname)].keep, true);
set(layer[get(thumbname)].parent, 'skin_thumbs');
set(layer[get(thumbname)].align, lefttop);
copy(layer[get(thumbname)].crop, thumbcrop);
copy(layer[get(thumbname)].width, thumbwidth);
copy(layer[get(thumbname)].height, thumbheight);
mul(thumbx, adding_thumbs_from_zerro, thumbxoffset);
add(thumbx, thumbpadding);
copy(layer[get(thumbname)].x, thumbx);
copy(layer[get(thumbname)].y, thumbpadding);
add(scene[get(i)].thumbx, thumbx, thumbxcenter);
copy(scene[get(i)].thumby, thumbpadding);
set(layer[get(thumbname)].linkedscene, get(scene[get(i)].name) );
set(layer[get(thumbname)].onclick, copy(layer[skin_thumbborder].parent, name); loadscene(get(linkedscene), null, MERGE, BLEND(0.5)); );
if(skin_settings.tooltips_thumbs,
set(layer[get(thumbname)].tooltip, get(scene[get(i)].title) );
layer[get(thumbname)].loadstyle(skin_tooltips);
);
if(skin_settings.thumbs_text,
txtadd(thumbtext, 'skin_thumbtext_', get(adding_thumbs_from_zerro));
inc(adding_thumbs_from_zerro);
);
);
addlayer(get(thumbtext));
layer[get(thumbtext)].loadstyle(skin_thumbtext_style);
set(layer[get(thumbtext)].keep, true);
set(layer[get(thumbtext)].parent, get(thumbname));
set(layer[get(thumbtext)].html, get(scene[get(i)].title));
);
</action>