You are not logged in.

1

Tuesday, February 20th 2018, 6:11am

I would like to make border to thumbnail images.

I would like to make border to thumbnail images.


But, not working under the cord.

<action name="skin_addthumbs">
....
set(layer[get(thumbname)].jsborder,'3 0xFFFFFF 1.0');

Please let me know, how to fix the problem.
worldnow has attached the following image:
  • thumb.png

This post has been edited 2 times, last edit by "worldnow" (Feb 21st 2018, 2:21am)


2

Tuesday, February 20th 2018, 7:24am

bgborder

3

Wednesday, February 21st 2018, 2:24am

Thank you for your reply.

but, Still does not work.


<action name="skin_addthumbs" scope="local">
if(skin_settings.thumbs == false,
set(layer[skin_btn_thumbs].visible,false);
,
copy(thumbwidth, skin_settings.thumbs_width);
copy(thumbheight, skin_settings.thumbs_height);
copy(thumbpadding, skin_settings.thumbs_padding);
copy(thumbcrop, skin_settings.thumbs_crop);

calc(thumbxoffset, thumbwidth + thumbpadding);
calc(thumbxcenter, thumbxoffset * 0.5);
calc(thumbbarwidth, thumbxoffset * scene.count + thumbpadding);
calc(thumbbarheight, thumbpadding + thumbheight + thumbpadding);

if(skin_settings.thumbs_scrollindicator,
copy(layer[skin_thumbs_scrollindicator].y, thumbbarheight);
add(thumbbarheight, layer[skin_thumbs_scrollindicator].height);
);

set(layer[skin_thumbs], width=get(thumbbarwidth), height=get(thumbbarheight) );

calc(layer[skin_thumbs_scrollleft].y, thumbbarheight * 0.5);
calc(layer[skin_thumbs_scrollright].y, thumbbarheight * 0.5);



for(set(i,0), i LT scene.count, inc(i),
calc(thumbname, 'skin_thumb_' + i);
addlayer(get(thumbname));

set(layer[get(thumbname)].bgborder,'3 0xFFFFFF 5.0');

set(layer[get(thumbname)],
url=get(scene[get(i)].thumburl),
keep=true,
parent='skin_thumbs',
align='lefttop',
crop=get(thumbcrop),
width=get(thumbwidth),
height=get(thumbheight),
x=calc(thumbpadding + i*thumbxoffset),
y=get(thumbpadding),
linkedscene=get(scene[get(i)].name),
onclick='copy(layer[skin_thumbborder].parent, name); skin_loadscene(get(linkedscene),get(skin_settings.loadscene_blend));'

);






set(scene[get(i)],
thumbx=calc(thumbpadding + i*thumbxoffset + thumbxcenter),
thumby=get(thumbpadding)
);

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,
calc(thumbtext, 'skin_thumbtext_' + i);
addlayer(get(thumbtext));
layer[get(thumbtext)].loadstyle(skin_thumbtext_style);
set(layer[get(thumbtext)], keep=true, parent=get(thumbname), html=get(scene[get(i)].title) );
);
);

if(scene.count == 1,
set(layer[skin_thumbs].align, 'lefttop');
);
);
</action>

4

Wednesday, February 21st 2018, 11:21am

oh, sorry, bgborder works only with type=container layer element
you need to create layers with type=container for each thumb