Button with pressed state

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
alasa
Posts: 11
Joined: Wed Apr 03, 2024 1:08 pm

Hi Hopki,

Can you point me to a tutorial or post, explaining how works the Pressed state of a button?
How does it work in the case of an svg and with a text box?

I appreciate your help
Attachments
Selected_Button.mp4
(2.97 MiB) Downloaded 10 times
Screenshot 2024-04-14 at 6.41.57 PM.png
Screenshot 2024-04-14 at 6.41.57 PM.png (10.3 KiB) Viewed 531 times
Screenshot 2024-04-14 at 6.40.08 PM.png
Screenshot 2024-04-14 at 6.40.08 PM.png (83.64 KiB) Viewed 531 times
User avatar
Hopki
Gnome
Posts: 13029
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi alasa,
How do you want this to work?
I'm assuming you want a Normal State, then a Mouse Over state.
The Mouse Pressed only shows momentarily, but assuming you want this to stay in this state?
So to give a visual indication it has already been pressed.
If not please can you describe what should happen.
Also is this for a button in teh skin or a point hotspot?
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
alasa
Posts: 11
Joined: Wed Apr 03, 2024 1:08 pm

Thank you Hopki,

Here you go a reference. I'm looking to do it with a hotspot and with a button
Attachments
button_states.png
button_states.png (3.42 MiB) Viewed 484 times
User avatar
Hopki
Gnome
Posts: 13029
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
Moved this topic to the skins forum as the user-designed skins forum is for people offering skins that have made to the community.
You would stack a button and an image, and have them both in a container.
You would then set up a variable to trigger what the button would do.

Please see the attached project.
Regards,
Attachments
project.zip
(14.2 KiB) Downloaded 8 times
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
alasa
Posts: 11
Joined: Wed Apr 03, 2024 1:08 pm

Thank you Hopki, I have them now working.

How would work a menu navigation bar, where buttons need to be hidden or shown depending on other buttons' state?

I'm attaching here a video reference in the project file.
Thank you
Attachments
project 4.mp4
(1.31 MiB) Downloaded 6 times
project 4.zip
(236.63 KiB) Downloaded 6 times
User avatar
Hopki
Gnome
Posts: 13029
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
Attached is a project with your skin.
It needed a second variable, vis_gallery, so now each button changes its own variable.
In skin 2.ggsk the buttons have actions to hide an already opened popup, so only one is open at a time.
Regards,
Attachments
project.zip
(20.24 KiB) Downloaded 6 times
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
alasa
Posts: 11
Joined: Wed Apr 03, 2024 1:08 pm

Thank you Hopki, I appreciate your help.

One thing that I have difficulty with, is leaving the first button and square active by default, like the attached example.
Attachments
Screenshot 2024-04-17 at 10.22.09 AM.png
Screenshot 2024-04-17 at 10.22.09 AM.png (285.88 KiB) Viewed 417 times
User avatar
Hopki
Gnome
Posts: 13029
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi alasa,
Do you mean you wanted these open and showing when you first opened the tour?
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
alasa
Posts: 11
Joined: Wed Apr 03, 2024 1:08 pm

Yes, correct. But not using scene on load.

Thank you
alasa
Posts: 11
Joined: Wed Apr 03, 2024 1:08 pm

Another thing that I have noticed, is that when using the hotspot selected button approach, all hotspots in the scene with the same name get highlighted.

Can we limit the selected state to work independently?
Thank you
Post Reply