Page 1 of 1

Operating System Skin Change

Posted: Thu Aug 31, 2017 9:29 am
by formbysurveys
My skin doesn't work very well on a smartphone as some of my components are too big.

I'm thinking that is it possible to hide components of the tour is opened on an iphone (iPad is ok).

Re: Operating System Skin Change

Posted: Thu Aug 31, 2017 12:38 pm
by Hopki
Hi Andy,
Use the "Is Mobile" logic block to do this.
You can use it on its own or in conjunction with a screen width so a tablet wold show the button and a phone would hide it.
Just depends on how deep you want to get.

iPad logical screen size is 1024 x 768px landscape
iPad Pro 12.9" logical screen size is 1366 x 1024px landscape

iPhone 5, 5S logical screen size is 568 x 320px landscape
iPhone 6, 6S, 7logical screen size is 667 x 375px landscape


So as an example the logic to show a button on the iPad but hide it for a phone would be.

Is Mobile = true And
Player Width < 768
Visible: false

768 being the the width in portrait on the iPad so the button would still show as its 768px.
Or use this logic setting is the scale or size logic block to make the elements smaller.

Regards,
Hopki