Hi all
I've noticed a subtle bug with which crops up when toggling the visibility / alpha of components.
Any ideas on how to address this?
http://www.horizonimaging.co.uk/misc/gg ... 6-3-16.mp4
Skin also attached ...
Many thanks
David
Toggle Alpha bug
- Attachments
-
- stayclub_toggle_problem_16-3-16.ggsk
- (1.83 MiB) Downloaded 174 times
- Hopki
- Gnome
- Posts: 13025
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi David,
You would use variables and logic blocks.
Please see attached skin.
The skin has three variables, w1, w2 and w3, each has a true false variable set to default false.
Then the popups have their alpha's set to 0 and a logic block set to change the alpha using the relevant variable.
The button to show and hide has three actions, so when you have set one up you can copy the actions to the other buttons just making a slight adjustment.
So for the first popup which is using the variable w1.
Mouse Click, Set Variable, Not(¬), w1
Mouse Click, Set Variable, Set(=), false, w2
Mouse Click, Set Variable, Set(=), false w3
For the second button using variable w2.
Mouse Click, Set Variable, Set(=), false w1
Mouse Click, Set Variable, Not(¬), w2
Mouse Click, Set Variable, Set(=), false w3
The "Not" symbol (¬) is a toggle type action in logic. So if its NOT true, change it to true, If Its Not false change it to false.
Regards,
Hopki
You would use variables and logic blocks.
Please see attached skin.
The skin has three variables, w1, w2 and w3, each has a true false variable set to default false.
Then the popups have their alpha's set to 0 and a logic block set to change the alpha using the relevant variable.
The button to show and hide has three actions, so when you have set one up you can copy the actions to the other buttons just making a slight adjustment.
So for the first popup which is using the variable w1.
Mouse Click, Set Variable, Not(¬), w1
Mouse Click, Set Variable, Set(=), false, w2
Mouse Click, Set Variable, Set(=), false w3
For the second button using variable w2.
Mouse Click, Set Variable, Set(=), false w1
Mouse Click, Set Variable, Not(¬), w2
Mouse Click, Set Variable, Set(=), false w3
The "Not" symbol (¬) is a toggle type action in logic. So if its NOT true, change it to true, If Its Not false change it to false.
Regards,
Hopki
- Attachments
-
- skin.ggsk.zip
- (1.07 KiB) Downloaded 175 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,
Many thanks for explaining this for me – I would never have thought of doing that myself! It does seem quite long-winded, but it does work ...
... however, it doesn't work on mobile browsers
If you click on this link:
http://www.horizonimaging.co.uk/portal/ ... 4-16_1742/
this is using the new logic system for displaying / hiding elements and it works as it should. But if you load the same tour in a mobile browser you can summon the Help, Map, Thumbnail and Info elements by tapping their respective buttons, but you can't get rid of the popup any more!
Taking the Help element as an example, I'm using a 'Mouse Click' anywhere in the Help container to 'Set Variable Value' to 'set(=)/false' for the variable 'help' which controls the Alpha of the Help container – and it evidently works on desktop browsers, but not on mobile browsers ... at least not on my iPhone!
Skin attached ...
Do you know what might be going wrong here?
Many thanks for your help!
David
PS. Apologies for the glacial speed of my reply! Fixing this bug has been on my back burner as it doesn't really affect the usability of the tours.
Many thanks for explaining this for me – I would never have thought of doing that myself! It does seem quite long-winded, but it does work ...
... however, it doesn't work on mobile browsers
If you click on this link:
http://www.horizonimaging.co.uk/portal/ ... 4-16_1742/
this is using the new logic system for displaying / hiding elements and it works as it should. But if you load the same tour in a mobile browser you can summon the Help, Map, Thumbnail and Info elements by tapping their respective buttons, but you can't get rid of the popup any more!
Taking the Help element as an example, I'm using a 'Mouse Click' anywhere in the Help container to 'Set Variable Value' to 'set(=)/false' for the variable 'help' which controls the Alpha of the Help container – and it evidently works on desktop browsers, but not on mobile browsers ... at least not on my iPhone!
Skin attached ...
Do you know what might be going wrong here?
Many thanks for your help!
David
PS. Apologies for the glacial speed of my reply! Fixing this bug has been on my back burner as it doesn't really affect the usability of the tours.
- Attachments
-
- stayclub_19-4-16_1742.ggsk
- (1.84 MiB) Downloaded 167 times
Hi everyone
Does anyone have any thoughts on this issue?
Many thanks,
David
Does anyone have any thoughts on this issue?
Many thanks,
David
- Hopki
- Gnome
- Posts: 13025
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi David,
Have a look at the attached skin.
Im using three rectangles and text boxes to simulate map, thumbnails and info box.
The skin uses variables and each text box/button has a set variable action.
Im also using the Not(¬) logic to toggle the visibility of a rectangle while a set variable action hides others.
I have also added a set variable action to each rectangle so clicking on the rectangle also hides itself.
So you can open the correct rectangle but clicking the relative button.
You can toggle its visibility but clicking on the button twice.
You can switch between rectangles with each hiding as a new one opens.
And clicking on a open rectangle will also hide it.
This is also fully functional on desktops as well as mobiles.
Regards,
Hopki
Have a look at the attached skin.
Im using three rectangles and text boxes to simulate map, thumbnails and info box.
The skin uses variables and each text box/button has a set variable action.
Im also using the Not(¬) logic to toggle the visibility of a rectangle while a set variable action hides others.
I have also added a set variable action to each rectangle so clicking on the rectangle also hides itself.
So you can open the correct rectangle but clicking the relative button.
You can toggle its visibility but clicking on the button twice.
You can switch between rectangles with each hiding as a new one opens.
And clicking on a open rectangle will also hide it.
This is also fully functional on desktops as well as mobiles.
Regards,
Hopki
- Attachments
-
- skin.ggsk.zip
- (1.18 KiB) Downloaded 192 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,
I've just had a closer look the problematic skin ... and found that it was a user error on my part! I have two menu bars, one with a fullscreen button for desktop browsers, and one without for mobile devices. I had updated the desktop version with the new logic blocks ... but not the mobile version, DOH!!
All is working fine now
Thanks!
David
I've just had a closer look the problematic skin ... and found that it was a user error on my part! I have two menu bars, one with a fullscreen button for desktop browsers, and one without for mobile devices. I had updated the desktop version with the new logic blocks ... but not the mobile version, DOH!!
All is working fine now
Thanks!
David