Author Topic: Feature Request: ignore some widgets when doing NGUIMath.CalculateRelativeWidget  (Read 1308 times)

Newtext

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Hi ArenMook,

Thanks for your brilliant work, NGUI really makes our lives much easier.

Can you add a flag or something to UIWidget, so some widgets will be ignored when doing NGUIMath.CalculateRelativeWidget?

With UIScrollView, for example, 1. you don't need to calculate thousands of sub-items beneath the root items, 2. you can add some effects (like selecting effect which may be bigger than item), 3. use bigger item background, all these stuff can be ignored while CalculateRelativeWidget.

thank your for your great work.
« Last Edit: February 25, 2014, 03:02:38 AM by Newtext »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
What I will end up doing is adding a way to retrieve bounds for widgets, and making it cumulative.

Also note currently it won't process children if the parent object has a UIWidget on it. It will just stop. So if you use a UIWidget to define the bounds, it won't do anything else.