Change text color

Q&A about the latest versions
Post Reply
Lvilleneuve
Posts: 54
Joined: Tue Mar 16, 2010 11:15 pm

Hi,
In my skin, I have some text that opens a specific panorama. I would like the text to become red and stay red until the user select another pano. In other words, can the skin knows which pano is running to make it red on my list of pano?
Luc
User avatar
Hopki
Gnome
Posts: 13029
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Luc,
There are a couple of ways you can do this. 1st just have two copies of the text one being Red. This would be set to not visible and when the text is clicked there will also be an action to show the red text which would be covering the first.

This has the advantage that once clicked the viewer can not re-click and cause a reload as the red text covering will prevent any further clicks.
To show and hide multiple elements use regular expressions, a tip to do this can be found here: http://gardengnomesoftware.com/wiki/Usi ... e_elements

The other way is to use a set text action, self and use text formatting, please see: http://gardengnomesoftware.com/wiki/Formatting_Text
You can set that on click you can set the text and format to change the colour, again use regular expressions to set text for other text boxes.
Regards,
Hopki
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/
Post Reply