Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: outgoing on February 14, 2014, 06:57:00 AM

Title: How to set the maximum range in UIDragResize
Post by: outgoing on February 14, 2014, 06:57:00 AM
Good day
Who can tell how to set the maximum range in UIDragResize or workarounds.
Title: Re: How to set the maximum range in UIDragResize
Post by: ArenMook on February 15, 2014, 12:56:39 AM
DragResize script just uses NGUIMath.ResizeWidget, which doesn't have a "max" parameter. Only "min". Easiest way to limit something's side is to do it inside UIDragResize's OnDrag function, just before passing the values to NGUIMath.ResizeWidget, or to just do your own logic after the resize operation -- is the widget's size bigger than some value? If so, just set it to that value.
Title: Re: How to set the maximum range in UIDragResize
Post by: outgoing on February 17, 2014, 09:59:24 AM
Quick do not work, you should still limit movement when masshtabiruesh dostigaesh and maximum limit  :(