Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: brianhall12345 on September 08, 2014, 12:26:23 PM

Title: Scaling UI by screen size/density not resolution?
Post by: brianhall12345 on September 08, 2014, 12:26:23 PM
Hey folks,

I'm working on a project that is presently running only on Windows/Mac standalone (later it will also work on mobile tablets).  The current issue is we want the UI to be accessible on the Microsoft Surface 3 tablet (so big with big buttons for fingers) as well as displayed on a huge 80" plasma connected to a laptop but not have the UI be so huge since it looks comically huge.

What is the best way to tackle this?

Cheers!

Brian Hall
Title: Re: Scaling UI by screen size/density not resolution?
Post by: ArenMook on September 08, 2014, 10:37:52 PM
You can adjust the UIRoot's manualHeight as you see fit if it's set to Constrained mode (from some custom script). Alternatively you can leave the UI as Flexible.
Title: Re: Scaling UI by screen size/density not resolution?
Post by: brianhall12345 on September 09, 2014, 10:42:24 AM
I'm not entirely sure I understand how this helps?  If both devices are displaying resolutions of 2560x1440, but one device is 10 inches across (and meant for touch) and the other is 40 inches across (meant for use by mouse), how would flexible know that the elements should be smaller on the larger screen?  If I were changing the manual height, in what way would I modify they value (smaller or bigger) on the different devices?
Title: Re: Scaling UI by screen size/density not resolution?
Post by: ArenMook on September 10, 2014, 12:49:00 AM
Ah, if they have identical screen resolution then it's up to you to adjust the UIRoot's manual height based on some logic.