if(startscene === null OR !scene[get(startscene)], copy(startscene,scene[0].name); );
loadscene(get(startscene), null, MERGE);
if(startactions !== null, startactions() );
if(!hsname ,
for(set(i,0), i LT global.hotspot.count, inc(i),
if(global.hotspot[get(i)].ismyhotspot == true,
buildcontrol(get(global.hotspot[get(i)].name));
);
);
,
copy(hs, global.hotspot[get(hsname)]);
if(hs ,
txtsplit(get(hs.addcontrol), '|', buildoptions);
for(set(i,0), i LT buildoptions.count, inc(i),
calc(opt, buildoptions[get(i)].value);
if(
BUTTONRIGHT == opt,
trace(BUTTONRIGHT);
calc(btnright, 'slider_btnright_' + hs.name);
if(!global.hotspot[get(btnright)],
addhotspot(get(btnright));
copy(br,global.hotspot[get(btnright)]);
br.loadstyle(slider_btnright_style);
set(br,
ath=calc(hs.ath != 0 ? hs.ath : 0 ),
atv=calc(hs.atv != 0 ? hs.atv : 0 ),
);
trace( %0,'(', %1 %2,') For hotspot[', hs.name ,'] in the scene[',global.xml.scene,'] created right button as hotspot[', btnright,']. tick=', calc(global.timertick BOR 0));
);
,
DRAG == opt,
trace(DRAG);
,
trace(NONE);
);
);
,
warning( %0,'(', %1 %2,') No hotspot[', hsname ,'] available! tick=', calc(global.timertick BOR 0));
);
);