if(startscene === null OR !scene[get(startscene)], copy(startscene,scene[0].name); ); loadscene(get(startscene), null, MERGE); if(startactions !== null, startactions() ); txtadd(tooltipname, 'vrtooltip_', get(name)); addhotspot(get(tooltipname)); set(hotspot[get(tooltipname)], type=text, edge=get(hotspot[get(name)].edge), distorted=get(hotspot[get(name)].distorted), ath=get(hotspot[get(name)].ath), atv=get(hotspot[get(name)].atv), oy=-36, ox=0, vcenter=true, padding='3 8', mipmapping=true, oversampling=2, bg=true, bgcolor=rgba(18, 18, 18, 0.8), bgroundedge=2, bgalpha=0.8, bgborder=0, bgshadow='0 0 0 0x000000 0', css=calc(device.mobile ? 'text-align:center; color:#FFFFFF; font-family:MicrosoftYahei; font-size:14px;':'text-align:left; color:#FFFFFF; font-family:MicrosoftYahei; font-size:14px;'), txtshadow='0 0 0 0x000000 0'; enabled=true, ); txtadd(hotspot[get(tooltipname)].onclick,'callwith(hotspot[',get(name),'],onclick)'); if(text == '' OR text === null, copy(hotspot[get(tooltipname)].html,scene[get(linkedscene)].title), copy(hotspot[get(tooltipname)].html,text); ); if(lp_running == false, set(hotspot[get(tooltipname)].visible,true); , if(!webvr.isenabled, if(lp_running == true, set(hotspot[get(tooltipname)].visible,false); set(hotspot[get(tooltipname)].mark2,true); ); ); ); if(hotspot[get(name)].normal == false, set(hotspot[get(tooltipname)].normal,false); set(hotspot[get(tooltipname)].onloaded, if(webvr.isenabled, set(visible,false); , if(lp_running == false OR lp_running == null OR lp_running === null, set(visible,true); ); ); ); ); spheretoscreen(ath, atv, hotspotcenterx, hotspotcentery, calc(mouse.stagex LT stagewidth/2 ? 'l' : 'r')); sub(drag_adjustx, mouse.stagex, hotspotcenterx); sub(drag_adjusty, mouse.stagey, hotspotcentery); asyncloop(pressed, sub(dx, mouse.stagex, drag_adjustx); sub(dy, mouse.stagey, drag_adjusty); screentosphere(dx, dy, ath, atv); jscall(calc('document.getElementById(window.activekrpanowindow).hooks.hookFn("'+get(name)+','+get(ath)+','+get(atv)+'")')); );