Hi Hopki,
I'm trying to add a screen tint to an icon element - I've tried amending one that comes with the skin but I just can't get it to work. What would be the settings from scratch?
Many thanks!
Screen Tint
- Hopki
- Gnome
- Posts: 13018
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi,
How I would do this using V6.x
Example:
First add a variable to the skin:
Then add a rectangle and adjust it's position and size:
Then using the rectangles background colour picker change it to black with some alpha to make it translucent:
Deselect visible then under the visible logic block add the following:
Make sure any element that should be in front of the screen tint when it shows is above it in the skins tree.
To show the screen tint using a button or hotspot will need the action:
And to hide:
You can even give the screen tint the hide action so it hides on click.
Regards,
Hopki
How I would do this using V6.x
Example:
First add a variable to the skin:
Then add a rectangle and adjust it's position and size:
Then using the rectangles background colour picker change it to black with some alpha to make it translucent:
Deselect visible then under the visible logic block add the following:
Make sure any element that should be in front of the screen tint when it shows is above it in the skins tree.
To show the screen tint using a button or hotspot will need the action:
And to hide:
You can even give the screen tint the hide action so it hides on click.
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/
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/
- Hopki
- Gnome
- Posts: 13018
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi Lou,
You can change the Operation from "Set(=)" to "Not(¬)" which is a Toggle.
So the operation changes the variable to the oppressive of what it is.
Example: if it's false, on click will change it to true. When it's true next click will change it to false.
Or you can have two stack buttons,
The first, mouse click, set variable value, vis_screentint, Set(=), true.
The second, mouse click, set variable value, vis_screentint, Set(=), false.
You can also use the variable to show and hide the buttons using the visible Logic Block.
So assuming the variable is false, the show screen tint button which is visible by default will have a visible logic block: *vis_screentint =, true Visible: false. So on click it will hide when the variable is true.
The Hide Screen tint button which is hidden by default will that the visible logic block: *vis_screentint =, true Visible: true
This way you can have two buttons with different graphics.
Regards,
Hopki
You can change the Operation from "Set(=)" to "Not(¬)" which is a Toggle.
So the operation changes the variable to the oppressive of what it is.
Example: if it's false, on click will change it to true. When it's true next click will change it to false.
Or you can have two stack buttons,
The first, mouse click, set variable value, vis_screentint, Set(=), true.
The second, mouse click, set variable value, vis_screentint, Set(=), false.
You can also use the variable to show and hide the buttons using the visible Logic Block.
So assuming the variable is false, the show screen tint button which is visible by default will have a visible logic block: *vis_screentint =, true Visible: false. So on click it will hide when the variable is true.
The Hide Screen tint button which is hidden by default will that the visible logic block: *vis_screentint =, true Visible: true
This way you can have two buttons with different graphics.
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/
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/