Author Topic: strange issue with high resolution devices!  (Read 14075 times)

warrenbaltz

  • Guest
Re: strange issue with high resolution devices!
« Reply #15 on: May 02, 2013, 12:23:29 PM »
Here is an example. It is as if the width calculation is off for the hi-res devices.

warrenbaltz

  • Guest
Re: strange issue with high resolution devices!
« Reply #16 on: May 02, 2013, 12:43:52 PM »
Here are the settings.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: strange issue with high resolution devices!
« Reply #17 on: May 02, 2013, 03:27:26 PM »
remember that the width you set on the label for cutting it off is based on NGUI's virtual pixels, so if you don't change the manual height to be the correct size, you have to compensate. That is, the width you put in should fit the virtual height you have in the UIRoot (get the activeHeight property from it to see).

What is the cutoff width on the label?

warrenbaltz

  • Guest
Re: strange issue with high resolution devices!
« Reply #18 on: May 02, 2013, 03:52:37 PM »
I'm not sure I understand your question. Are you asking for the Max Width of the label?  That's what I'm setting to be a fraction of the screen width, so it's different on every device.

The weird thing is that this works for all lower resolution screens as well as in the editor. So there must be some condition that flips somewhere?  Could it be when the actual screen height exceeds the manual screen height property?

My understanding is that you design for the manual height property (i.e. if I use 1024 then a sprite 1000 pixels tall will just about fill the screen) and then the GUI will scale as long as the actual size is within the min/max height values.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: strange issue with high resolution devices!
« Reply #19 on: May 03, 2013, 10:02:08 AM »
When setting the max width on the label are you taking UIRoot.pixelSizeAdjustment into account?

warrenbaltz

  • Guest
Re: strange issue with high resolution devices!
« Reply #20 on: May 03, 2013, 10:21:03 AM »
No. I was unaware that I needed to. Is it a multiplier?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: strange issue with high resolution devices!
« Reply #21 on: May 03, 2013, 11:18:08 AM »
Yup.