Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: vexe on October 22, 2013, 09:20:26 AM

Title: In-game widget scaling, from widget borders? (Window resizing)
Post by: vexe 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.
Title: Re: In-game widget scaling, from widget borders? (Window resizing)
Post by: ArenMook on October 22, 2013, 07:48:01 PM
Same way NGUI lets you resize a widget in the editor. It's just math.
Title: Re: In-game widget scaling, from widget borders? (Window resizing)
Post by: vexe 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...?
Title: Re: In-game widget scaling, from widget borders? (Window resizing)
Post by: ArenMook on October 23, 2013, 08:55:05 PM
UIWidgetInspector.cs has all the code for you to examine