Turn *off* hand cursor on /some/ Poly hotspots

Q&A about the latest versions
Post Reply
Lightyears
Posts: 8
Joined: Tue Oct 25, 2022 10:44 am

Hi Gnome\all.

I've built an apartment showcase.


Two Polygonal Hotspot uses:

Movement Polys:
It uses poly hotspots as large click areas to more around the space.
The hand cursor on hover is useful here, so the user knows they can move somewhere else.
Lets call these poly's "Movements"
A large hotspot so the user can move around the space
A large hotspot so the user can move around the space
BigMovementPolys(Movements).png (1.12 MiB) Viewed 8287 times


Info Polys:
There are some point hotspots that open a sidebar with dynamic information.
These are 'Contained' within another 'type' of poly hotspot.
Those points only become visible when a user mouse-over's this alternative type (using a proxyID and skin settings).
This is so that, for instance, the info point for a vase (point hotspot) will only shows up when you move over the table it's sitting on (poly).
Lets call these alternative poly's "Infos"
A trigger poly hotspot, that shows the two point hotspots it's associated with.
A trigger poly hotspot, that shows the two point hotspots it's associated with.
InfoTriggerPolys(infos).png (433.34 KiB) Viewed 8287 times


The Problem:

I'm trying to get the hand cursor to show just for Movements, but not Infos.

The hand cursor switch in the skin (proxy -> Appearance -> Hand Cursor) doesn't do anything when turned on\off (might only function for points?).
The hand cursor switch in the main settings works, but affect all poly hotspots.

Is there a way to get the hand to show up for one poly type (Movement), but not the other (Infos)?

I have a javascript file I've been using as well, if there's a solution using it.
But I haven't been able to work our a way for the JS to recognise a 'MouseOver' event on a poly hotspot :|
snowlexx
Posts: 48
Joined: Fri Dec 27, 2019 5:21 pm
Location: Россия

https://ggnome.com/doc/pano2vr/referenc ... cript-api/

player.setPolyHotspotHandcursor(id: String, enable: Boolean)
Toggles the hand cursor for a specific polygon hotspot. You can use an empty string for id, to target all polygon hotspots.
Lightyears
Posts: 8
Joined: Tue Oct 25, 2022 10:44 am

Ah! Thank you!
I'll see if I can get it working.
Post Reply