Portrait-Format-Hint

Post Reply
User avatar
soulbrother
Posts: 545
Joined: Tue Apr 08, 2008 7:01 pm
Location: München
Contact:

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!
Format-Hint.ggskc
(5.6 KiB) Downloaded 731 times
Frankster69
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.
turn_phone.png
turn_phone.png (11.18 KiB) Viewed 20405 times
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 622 times
Caz1982
Posts: 14
Joined: Tue Aug 11, 2020 9:55 am

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
Is there any way to force the user to rotate the mobile horizontally?
User avatar
Hopki
Gnome
Posts: 12999
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.

Screenshot 2021-10-18 at 20.47.52.png
Screenshot 2021-10-18 at 20.47.52.png (40.63 KiB) Viewed 15743 times

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/
Idocio
Posts: 52
Joined: Wed Apr 15, 2020 9:26 pm

Hopki wrote: Mon Oct 18, 2021 9:49 pm Hi,
Use the image with a visible logic block.


Screenshot 2021-10-18 at 20.47.52.png


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,
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
User avatar
soulbrother
Posts: 545
Joined: Tue Apr 08, 2008 7:01 pm
Location: München
Contact:

1:1 = 1

Means a square....
Idocio
Posts: 52
Joined: Wed Apr 15, 2020 9:26 pm

I understand that.
But a mobile screen does not have a 1:1 ratio. It is not square.
User avatar
Hopki
Gnome
Posts: 12999
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,
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/
Idocio
Posts: 52
Joined: Wed Apr 15, 2020 9:26 pm

Great explication!
Thank You Hopki
Post Reply