Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
|
|
Source code |
1 |
<scene name="scene_1" title="krpano" onstart="" id="tuur" thumburl="../../1.tiles/thumb.jpg" lat="" lng="" heading=""> |
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
<action name="skin_addthumbs"> copy(thumbwidth, skin_settings.thumbswidth); copy(thumbheight, skin_settings.thumbsheight); copy(thumbpadding, skin_settings.thumbspadding); copy(thumbcrop, skin_settings.thumbscrop); if(ismobile, mul(thumbwidth,2); mul(thumbheight,2); mul(thumbpadding,2); ); for(set(i,0);set(j,0); , i LT scene.count, inc(i), if(scene[get(i)].id == 'tuur', inc(j); ); ); add(thumbxoffset, thumbwidth, thumbpadding); mul(thumbxcenter, thumbxoffset, 0.5); mul(thumbbarwidth, thumbxoffset, get(j)); add(thumbbarwidth, thumbpadding); add(thumbbarheight, thumbpadding, thumbheight); add(thumbbarheight, thumbpadding); copy(layer[skin_thumbs].height, thumbbarheight); copy(layer[skin_thumbs].width, thumbbarwidth); for(set(i,0);set(j,0); , i LT scene.count, inc(i), if(scene[get(i)].id == 'tuur', txtadd(thumbname,'skin_thumb_',get(j)); 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, j, 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)); ); inc(j); ); ); </action> |
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
<action name="skin_nextscene"> add(newsceneindex, scene[get(xml.scene)].index, %1); if(newsceneindex GE 0, if(newsceneindex LT scene.count, if(scene[get(newsceneindex)].id != 'tuur', set(trynextstep, %1); if(%1 LT 0, sub(trynextstep,1), add(trynextstep,1)); skin_nextscene(get(trynextstep)); , txtadd(layer[skin_thumbborder].parent, 'skin_thumb_', get(newsceneindex)); layer[skin_thumbs].scrolltocenter(get(scene[get(newsceneindex)].thumbx), get(scene[get(newsceneindex)].thumby)); loadscene(get(newsceneindex), null, MERGE, BLEND(0.5)); ); ); ); </action> |
: https://pame.virtualtuur.comLocation: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.comLocation: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.com|
|
Source code |
1 2 3 4 5 6 7 8 9 10 |
<action name="skin_addthumbs"> 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); for(set(i,0);set(j,0), i LT scene.count, inc(i), if(scene[get(scene[get(i)].name)].thumb_display!="false",inc(j)); ); mul(thumbbarwidth, thumbxoffset, j); 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); for(set(i,0);set(j,0), i LT scene.count, inc(i), if(scene[get(scene[get(i)].name)].thumb_display=="false",inc(j), txtadd(thumbname,'skin_thumb_',get(i)); 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); sub(k,i,j); mul(thumbx, k, 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); set(layer[sidebar].keep, true); loadscene(get(linkedscene), null, MERGE, BLEND(0.5));); if(skin_settings.tooltips_thumbs, set(layer[get(thumbname)].onhover, showtext(get(scene[get(linkedscene)].title_hover),SKIN_TOOLTIPS); ); ); if(skin_settings.thumbs_text, txtadd(thumbtext, 'skin_thumbtext_', get(i)); 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> |
|
|
Source code |
1 2 3 4 |
<action name="skin_update_scene_infos"> if(xml.scene != null, if(title, set(layer[skin_title_right].html,'');txtadd(layer[skin_title_right].html, get(scene[get(xml.scene)].title_top),' ',get(scene[get(xml.scene)].title_area) );txtadd(layer[skin_title].html, get(title), ' - ', get(scene[get(xml.scene)].title_hover) ) , copy(layer[skin_title].html, scene[get(xml.scene)].title ); ); delayedcall(0.1, set(layer[skin_title].visible,true);set(layer[skin_title_right].visible,true)); set(firstscene_panonum,0); set(scene_true,0); for(set(k,1), k LE scene.count, inc(k), if(scene[get(k)].thumb_display == "true", set(scene_true,1)); ); if(scene_true == 1, for(set(i,1), scene[get(i)].thumb_display != "true", inc(i), add(firstscene_panonum,1); ); ); if(scene_true == 0, for(set(i,0), i LT scene.count, inc(i), add(firstscene_panonum,1); ); ); if(scene[get(xml.scene)].index GT firstscene_panonum, set(layer[skin_btn_prev].enabled, true); set(layer[skin_btn_prev].alpha, 1.0); , set(layer[skin_btn_prev].enabled, false); set(layer[skin_btn_prev].alpha, 0.3); ); sub(lastsceneindex, scene.count, 1); for(set(i,0), scene[get(lastsceneindex)].thumb_display != true, inc(i), sub(lastsceneindex, 1); ); if(scene[get(xml.scene)].index LT lastsceneindex, set(layer[skin_btn_next].enabled, true); set(layer[skin_btn_next].alpha, 1.0); , set(layer[skin_btn_next].enabled, false); set(layer[skin_btn_next].alpha, 0.3); ); copy(q,scene[get(xml.scene)].index); for(set(i,0), scene[get(q)].thumb_display != true, inc(i), sub(q,1); ); txtadd(layer[skin_thumbborder].parent, 'skin_thumb_', get(q)); set(layer[skin_thumbborder].visible, true); ); if(scene[get(xml.scene)].mapspotname, layer[skin_map].activatespot(get(scene[get(xml.scene)].mapspotname)); layer[skin_map].pantospot(get(scene[get(xml.scene)].mapspotname)); ); ); </action> <action name="skin_nextscene"> add(newsceneindex, scene[get(xml.scene)].index, %1); if(newsceneindex GE scene[get(xml.scene)].index, for(set(i,0), scene[get(newsceneindex)].thumb_display != true, inc(i), add(newsceneindex, 1); ); ); for(set(i,0), scene[get(newsceneindex)].thumb_display != true, inc(i), sub(newsceneindex, 1); ); copy(q3,newsceneindex); copy(q2,newsceneindex); sub(q3,1); if(q3 GE 0, for(set(i,0), scene[get(q3)].thumb_display != true, inc(i), sub(q3,1); ); ); if(newsceneindex LT scene[get(xml.scene)].index, if(scene[get(xml.scene)].thumb_display == "true",copy(newsceneindex,q2),copy(newsceneindex,q3); ); ); if(newsceneindex GE 0, if(newsceneindex LT scene.count, sub(q, scene[get(xml.scene)].index, scene[get(xml.scene)].thumb_num); txtadd(layer[skin_thumbborder].parent, 'skin_thumb_', get(newsceneindex)); layer[skin_thumbs].scrolltocenter(get(scene[get(newsceneindex)].thumbx), get(scene[get(newsceneindex)].thumby)); loadscene(get(newsceneindex), null, MERGE, BLEND(0.5)); ); ); </action> |