Sie sind nicht angemeldet.

1

Mittwoch, 17. August 2016, 12:18

Hotspot in fullscreen mode only

Hi folks,

sorry for my beginner's question: Is it possible to show a hotspot only in fullscreen mode? I expected this to work:

<hotspot name="hs3" if="fullscreen==true"/>


Thank you, Matthias

toosten

Fortgeschrittener

Beiträge: 521

Wohnort: Berlin

Beruf: Software-Entwickler bei VR-Easy ( HTML, JS, PHP, krpano, C++, Java )

  • Nachricht senden

2

Donnerstag, 18. August 2016, 07:34

http://krpano.com/docu/xml/#events.onenterfullscreen

<events onenterfullscreen="hs_fullscreen(true)" inexitfullscreen="hs_fullscreen(false)" />
<hotspot fullscreen="true" ... />

<action name="hs_fullscreen">
for(set(i,0), i LT hotspot.count, inc(i),
if( hotspot[get(i)].fullscreen,
set(hotspot[get(i)].visible, %1);
);
);
</action>

3

Freitag, 19. August 2016, 09:47

Hallo Kollege,

vielen Dank für schnelle und gute Hilfe. Da die Panos im Normalmdus öffnen und die Hotspots zunächst ausgeblendet sein sollen, habe ich es so gemacht:


<events onxmlcomplete="hs_fullscreen(false)" />
<events onenterfullscreen="hs_fullscreen(true)" onexitfullscreen="hs_fullscreen(false)" />

<action name="hs_fullscreen">
for(set(i,0), i LT hotspot.count, inc(i),
if( hotspot[get(i)].fullscreen,
set(hotspot[get(i)].visible, %1);
);
);
</action>

Also nochmals: Danke!!

Matthias