switch from curved to corner

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
JJBL
Posts: 52
Joined: Wed Sep 23, 2020 11:59 am

Sun Feb 21, 2021 11:33 am

Hello.

Let me see how I can explain myself correctly. I am designing the interface of a new tour in which the corners of the rectangles which contain the popup information are curved when you are in watching the tour in a desktop pc. Now designing the interface for mobile devices I would like the rectangles to have 90 degree corners but I don't know how to make the on mobile devices to change the corners to 90 degrees.
If there is an answer on the forum I would be grateful if you could link me to it.

Regards,
Javier
User avatar
Hopki
Gnome
Posts: 11116
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Sun Feb 21, 2021 2:34 pm

Hi Javier,
You can use javascript to change which CSS Class the text box will use in the Skin Editors Embedded Stylesheet, but in this case, I am not sure this would be the best way.
If you used a rectangle as the background it would be just a case or having two, one with a radius and one without.
Then use the logic block to swop out wich rectangle you need.
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/
JJBL
Posts: 52
Joined: Wed Sep 23, 2020 11:59 am

Mon Feb 22, 2021 9:26 am

Hello Hopki.

Yes, I think it's the best option for me. Thank you very much for your help.
Regards,
Post Reply