Page 1 of 1

Button with pressed state

Posted: Mon Apr 15, 2024 4:02 am
by alasa
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

Re: Button with pressed state

Posted: Mon Apr 15, 2024 2:35 pm
by Hopki
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,

Re: Button with pressed state

Posted: Mon Apr 15, 2024 8:26 pm
by alasa
Thank you Hopki,

Here you go a reference. I'm looking to do it with a hotspot and with a button

Re: Button with pressed state

Posted: Mon Apr 15, 2024 10:32 pm
by Hopki
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,

Re: Button with pressed state

Posted: Wed Apr 17, 2024 2:10 am
by alasa
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

Re: Button with pressed state

Posted: Wed Apr 17, 2024 8:15 am
by Hopki
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,

Re: Button with pressed state

Posted: Wed Apr 17, 2024 7:28 pm
by alasa
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.

Re: Button with pressed state

Posted: Thu Apr 18, 2024 10:05 am
by Hopki
Hi alasa,
Do you mean you wanted these open and showing when you first opened the tour?
Regards,

Re: Button with pressed state

Posted: Thu Apr 18, 2024 4:25 pm
by alasa
Yes, correct. But not using scene on load.

Thank you

Re: Button with pressed state

Posted: Thu Apr 18, 2024 4:35 pm
by alasa
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