Author Topic: Scaling Style - Manual "Width"  (Read 2384 times)

Jenzo

  • Guest
Scaling Style - Manual "Width"
« on: March 19, 2013, 08:51:33 AM »
Hi!

I bet this is answered before but I cant find it. :-( I have attached a picture showing what effect I am looking for. I dont know how to set this up? Maybe it is not possible. Maybe they have done two seperate GUI systems för cater for the different aspect ratios?

I would really appreciate an answer. Thanks!

Best regards
Jenz

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Scaling Style - Manual "Width"
« Reply #1 on: March 19, 2013, 11:48:13 AM »
Easy.

Make three panels:
Top, Center, Bottom.

Attach a UIAnchor on each, set them to have their pivot to Top, Center, Bottom respectively.

Create each part of your UI within those panels.

Set your UIRoot to PixelPerfect.

Enjoy.

PoN

  • Full Member
  • ***
  • Thank You
  • -Given: 1
  • -Receive: 4
  • Posts: 111
    • View Profile
Re: Scaling Style - Manual "Width"
« Reply #2 on: March 19, 2013, 09:05:00 PM »

Set your UIRoot to PixelPerfect.

Hi , Nicki ,
Could you tell me , how can i set UIRoot to PixelPerfect, if in NGUI 2.3.6a doesn't have this feature ?
Worked on Doc&DogAge Of Fury 3D. Actually working on WarMach.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Scaling Style - Manual "Width"
« Reply #3 on: March 19, 2013, 09:52:51 PM »
It's a drop-down on the UIRoot.

Jenzo

  • Guest
Re: Scaling Style - Manual "Width"
« Reply #4 on: March 21, 2013, 06:35:56 PM »
Thanks for the answer! Im going to try it in the weekend!
cheers