Buttons that don't change their status
Hi there, I would like to know how to make an image with black text that triggers an action and when the action is happening, this image with text will appear gray. I have tried to transform it into a button and in "Selected" change by the gray text, but nothing happens. The text is still black. Any suggestions on what I'm doing wrong?
- Hopki
- Gnome
- Posts: 13027
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi,
Do you mean a Point Hotspot tooltip text to change colour on click?
You can use the "visited" logic block trigger to change colours.
Please see: https://ggnome.com/doc/skin-logic-triggers/
Regards,
Do you mean a Point Hotspot tooltip text to change colour on click?
You can use the "visited" logic block trigger to change colours.
Please see: https://ggnome.com/doc/skin-logic-triggers/
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/
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/
Hi, No Hopki, I mean the text is a clickable button
When I click on "instrucciones" that popup appears below. In that state I want "instrucciones" to be grayed out. Then when the popup is not visible I want "instrucciones" to be black again.
I have tried to do it as a button, but I have not succeeded
When I click on "instrucciones" that popup appears below. In that state I want "instrucciones" to be grayed out. Then when the popup is not visible I want "instrucciones" to be black again.
I have tried to do it as a button, but I have not succeeded
- Isaac Brown
- Posts: 77
- Joined: Tue Jun 13, 2017 12:55 pm
- Location: Australia
I'd do this through variables: a variable to hold the true/false value of each button. I'd the use the variable as a logic block trigger to change the colour based on the variable state.
It can all be found here:
Variables:
https://ggnome.com/doc/skin-props/#variables
Logic Block Triggers:
https://ggnome.com/doc/skin-logic-triggers/
If you are still stuck, let me know and i'll whip up a project file to show you how i'd do this.
It can all be found here:
Variables:
https://ggnome.com/doc/skin-props/#variables
Logic Block Triggers:
https://ggnome.com/doc/skin-logic-triggers/
If you are still stuck, let me know and i'll whip up a project file to show you how i'd do this.
Isaac / IBCreative
- Isaac Brown
- Posts: 77
- Joined: Tue Jun 13, 2017 12:55 pm
- Location: Australia
Hopki actually over variables and logic blocks in detail in the latest Webinar:
https://ggnome.com/gg_webinars/maps-and ... ns-part-1/
It's worth watching, you'll learn to change your buttons based on user interaction.
https://ggnome.com/gg_webinars/maps-and ... ns-part-1/
It's worth watching, you'll learn to change your buttons based on user interaction.
Isaac / IBCreative
Hi Isaac, thanks for your prompt reply. I can't understand the process, since I don't see how to change one image for another (black text for gray text). The logical thing, in my opinion, is that it was like buttons, which can change when selected , but it does not work for me.
Regards
Calleroy
Regards
Calleroy
- Hopki
- Gnome
- Posts: 13027
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi Calleroy,
As Isaac says, use a variable.
Attached is a small project, in the skin, is a variable called, "var_instructions", which is a true/false variable set to false by default.
There are two buttons that have the action that toggles the variable value, between true and false.
Now we have a variable this can be used to do all sorts of things.
As an example the popup has the visible logic block then when the variable is true, it's visible and whne its false it will hide.
Then the buttons use this variable to affect background alpha, or colour or even the text that is displayed.
Regards,
As Isaac says, use a variable.
Attached is a small project, in the skin, is a variable called, "var_instructions", which is a true/false variable set to false by default.
There are two buttons that have the action that toggles the variable value, between true and false.
Now we have a variable this can be used to do all sorts of things.
As an example the popup has the visible logic block then when the variable is true, it's visible and whne its false it will hide.
Then the buttons use this variable to affect background alpha, or colour or even the text that is displayed.
Regards,
- Attachments
-
- project.zip
- (14.91 KiB) Downloaded 117 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/
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/
Hi Hopki, thanks for the example. Now I can understand the use of the variable in case it was text. The problem is that the button is an image, not text. I ask you, if it is not too much to ask, how to do it in the case of an image. A black "Instructions" image and a gray "instructions" image, how to make that change. Thanks in advance
PS: sorry, but it is a bit complicated for those of us who are not programmers to understand the logic of the variables
Regards
Calleroy
PS: sorry, but it is a bit complicated for those of us who are not programmers to understand the logic of the variables
Regards
Calleroy
- Hopki
- Gnome
- Posts: 13027
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
HI Calleroy,
Then you don't need a variable.
Overlay the two images with the grey one on top and with visible deselected.
In the black button add the actions:
• Mouse Click to do what the button is for...
• Mouse Click, Visible, Show Element, Grey Button.
• Mouse Click Visible, Hide Element, _self. (Action only needed is the Grey Button has transparency, if not then not needed)
Then in the Grey Button:
• Mouse Click to do what the button is for
• Mouse Click, Visible, Hide Element, _self.
• Mouse Click Visible, Show Element, Black button. (again only if you hid the black button)
Regards,
Hopki
Then you don't need a variable.
Overlay the two images with the grey one on top and with visible deselected.
In the black button add the actions:
• Mouse Click to do what the button is for...
• Mouse Click, Visible, Show Element, Grey Button.
• Mouse Click Visible, Hide Element, _self. (Action only needed is the Grey Button has transparency, if not then not needed)
Then in the Grey Button:
• Mouse Click to do what the button is for
• Mouse Click, Visible, Hide Element, _self.
• Mouse Click Visible, Show Element, Black button. (again only if you hid the black button)
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/
Hi Hopki, I do it that way, but it only works in the first cycle. I click the black button, the image appears and the button appears gray and I click the gray and the image disappears and the black button appears. When a second time I click the black button, it appears gray but the image does not appear and that's it it never appears again.
Will we have to introduce a condition to the image that should appear, or something like that?
Regards
Calleroy
Will we have to introduce a condition to the image that should appear, or something like that?
Regards
Calleroy