Image Buttons

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
User avatar
Mark360
Posts: 39
Joined: Thu May 17, 2018 11:15 pm
Location: England and USA

Image Buttons

Post by Mark360 » Wed Jul 25, 2018 9:58 pm

Hi All

Ok I have a button I would like to act in a set way and do not seem to be able to make it work.

Normal is a dark shade
Mouse over is a lighter shade
Selected is red

When I mouse over the button it turns to the lighter shade.
When I press the button (or click) it turns red. The problem is that it does not stay red as I would like.
I have several numbers referring to levels and would like the user to know what level they have selected.

So what am I missing?
If it looks impossible you just have not found the right angle to view it from.

User avatar
Hopki
Gnome
Posts: 9082
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Re: Image Buttons

Post by Hopki » Wed Jul 25, 2018 10:33 pm

Hi,
You missing nothing, this is how the three states of the button works.

What you need to do is have two stacked images, one being a button image that has the Normal and Mouse over states the second image which is the selected/mouse click state.
You would stack them so the selected button image is under the button with the two states.
On mouse click you just hide the top, two state button leaving the selected state image showing.
Regards,
Hopki

User avatar
Mark360
Posts: 39
Joined: Thu May 17, 2018 11:15 pm
Location: England and USA

Re: Image Buttons

Post by Mark360 » Thu Jul 26, 2018 2:23 am

Thank you for your response. Put me back on the right track.

I wanted to turn the number back to the original colour when another floor was selected. Which I did by just adding another action node change show element _self.

Still on a vertical learning curve!
If it looks impossible you just have not found the right angle to view it from.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests