Author Topic: In-game widget scaling, from widget borders? (Window resizing)  (Read 1885 times)

vexe

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 153
    • View Profile
In-game widget scaling, from widget borders? (Window resizing)
« on: October 22, 2013, 09:20:26 AM »
Hi, I wonder how I could resize a window in NGUI. Like, in Windows for example, if you place the mouse on the borders of a window, you could mess with its dimensions, resize it, etc. NGUI allows you do this easily in the editor while you're creating your widgets, but I want to do this in-game.

Any ideas?

Thanks.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: In-game widget scaling, from widget borders? (Window resizing)
« Reply #1 on: October 22, 2013, 07:48:01 PM »
Same way NGUI lets you resize a widget in the editor. It's just math.

vexe

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 153
    • View Profile
Re: In-game widget scaling, from widget borders? (Window resizing)
« Reply #2 on: October 23, 2013, 01:33:03 AM »
Yes, thanks but how? :D

Is NGUI resizing-in-the-editor code available to us somewhere? like in the interals folder, or...?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: In-game widget scaling, from widget borders? (Window resizing)
« Reply #3 on: October 23, 2013, 08:55:05 PM »
UIWidgetInspector.cs has all the code for you to examine