showtooltip('hotspot');
hideTooltip();
if(scene[get(xml.scene)].planar,
set(layer[compassbackground].active, false);
hidecompass();
,
set(layer[compassbackground].active, true);
mod(compasshlookat, view.hlookat, 360);
mul(compassheading, -1, get(scene[get(xml.scene)].heading));
if (compassheading == null, set(compassheading, 0));
sub(layer[compasspointer].rotate, compasshlookat, compassheading);
showcompass();
);
set(layer[compassbackground].visible, false);
if(tour_displaycontrols,
if(layer[compassbackground].active AND layer[compassbackground].started,set(layer[compassbackground].visible, true););
,hidecompass(););