If you want to tell the visitor, that your tour is optimised for landscape-format - and he should turn his mobile device from portrait to landscape direction, you can use a text-hint with a close-button.
More nice is an automatic displaying of such text, this can be done with the logic actions.
Attached as component, feel free to test and use.
If you delete the "is mobile = true" than you can test it also with your desktop computer and just drag your browser window from landsacpe to portrait format and it shoud be displayed!
Portrait-Format-Hint
- soulbrother
- Posts: 547
- Joined: Tue Apr 08, 2008 7:01 pm
- Location: München
- Contact:
-
- Posts: 105
- Joined: Mon Sep 18, 2017 12:54 pm
Hi Soulbrother,
Instead of a text-warning, you could use an icon to convey the message. This is one I created for a tour. If you like it, feel free to use it.
The image in this message is a png, in the attached zip you find an svg version (invalid filetype to post here it seems, so I zipped it).
regards, Frank
Instead of a text-warning, you could use an icon to convey the message. This is one I created for a tour. If you like it, feel free to use it.
The image in this message is a png, in the attached zip you find an svg version (invalid filetype to post here it seems, so I zipped it).
regards, Frank
- Attachments
-
- turn_phone.zip
- (3.21 KiB) Downloaded 928 times
Is there any way to force the user to rotate the mobile horizontally?Frankster69 wrote: ↑Fri Oct 13, 2017 1:46 pm Hi Soulbrother,
Instead of a text-warning, you could use an icon to convey the message. This is one I created for a tour. If you like it, feel free to use it.
turn_phone.png
The image in this message is a png, in the attached zip you find an svg version (invalid filetype to post here it seems, so I zipped it).
regards, Frank
- Hopki
- Gnome
- Posts: 13042
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi,
Use the image with a visible logic block.
In the images properties deselect visible then use the above logic clock, when the mobile device is set to portrait the image will show.
On a desktop it will not show.
Regards,
Use the image with a visible logic block.
In the images properties deselect visible then use the above logic clock, when the mobile device is set to portrait the image will show.
On a desktop it will not show.
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/
It works great!
But I would like to understand why...
Because Pano2VR I understand that <1 is a vertical format?
What does Pano2VR understand as aspect ratio with value 1?
Thank You. Regards
Ignacio
- soulbrother
- Posts: 547
- Joined: Tue Apr 08, 2008 7:01 pm
- Location: München
- Contact:
1:1 = 1
Means a square....
Means a square....
- Hopki
- Gnome
- Posts: 13042
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi,
As an example, a red rectangle is placed in the skin and visible is deselected.
Using the visible logic block and setting the Player Aspect Ratio:
If Player Aspect Ratio = 1 then the rectangle becomes visible ONLY when the height and width and the same, 1:1
If set to < 1 then the rectangle becomes visible when the width is less than the height, so portrait.
And if > 1 is selected then the rectangle becomes visible when the width is more than the height, so landscape.
So if it was set to < 2, then the rectangle would only become visible if the width is less than twice the height, but then it starts to get silly.
You can see this using the Skin Preview window.
Using the above visible < 1 value, with a rectangle, open the skin preview and set the height to 400px, you can see the size at the top of the preview window.
Now drag the side to 400px, the rectangle is hidden because the size is 1:1.
Make it 1px narrower, so the width is 399px, now the rectangle will show because now the window is 399px wide and the height is 400px, so the width is less than the height.
Regards,
As an example, a red rectangle is placed in the skin and visible is deselected.
Using the visible logic block and setting the Player Aspect Ratio:
If Player Aspect Ratio = 1 then the rectangle becomes visible ONLY when the height and width and the same, 1:1
If set to < 1 then the rectangle becomes visible when the width is less than the height, so portrait.
And if > 1 is selected then the rectangle becomes visible when the width is more than the height, so landscape.
So if it was set to < 2, then the rectangle would only become visible if the width is less than twice the height, but then it starts to get silly.
You can see this using the Skin Preview window.
Using the above visible < 1 value, with a rectangle, open the skin preview and set the height to 400px, you can see the size at the top of the preview window.
Now drag the side to 400px, the rectangle is hidden because the size is 1:1.
Make it 1px narrower, so the width is 399px, now the rectangle will show because now the window is 399px wide and the height is 400px, so the width is less than the height.
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/