Sie sind nicht angemeldet.

1

Sonntag, 7. Mai 2017, 11:47

usercontrol disable clicking of hotspots?

hey there!

i know i can disable user interaction with set(control.usercontrol, 'off');

but... can i also prevent/disable clicking of hotspots somehow ?

or do i need to use a full screen overlay for that?

background is, that i display a small popup,
and dont want to allow any interaction in the background
until it gets closed again

best, index

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

2

Sonntag, 7. Mai 2017, 14:18

Hi,

Just an action like:

Quellcode

1
2
3
4
5
<action name="DisableHotspots">
for(set(i,0), i LT hotspot.count, inc(i),
set(hotspot[get(i)].enabled,false);
);
</action>


Will do i guess.
(Written from iphone)

Hope it helps,
Tuur *thumbsup*

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

4

Montag, 8. Mai 2017, 12:11

These 'for' loop things could be very handy in a lot of cases.

For example: Give some hotspots the tag:

cat="jimmy"

then..

for(set(i,0), i LT hotspot.count, inc(i),
if(hotspot[get(i)].cat == jimmy, tween(hotspot[get(i)].rotate, 360));
);

*g*

Tuur *thumbsup*

5

Dienstag, 9. Mai 2017, 14:44

hmm... sadly i ran into problems with this :/

disabling and re-enabling hotspots with hotspot[...].enable works fine if you stay in the same scene.
but if my info popup is displayed and the user changes the scene... oops, those hotspots are enabled ofc.

so... is there another way to disable hotspots ?
(except to use a transparent overlay)

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

6

Dienstag, 9. Mai 2017, 15:04

Just add a tag like set(_htsphidden, true);

event onnewscene if(_htsphidden , disable hotspots(); etc..

Tuur *thumbsup*