Author Topic: Panel clipping test  (Read 3657 times)

HPx___

  • Guest
Panel clipping test
« on: May 03, 2012, 09:06:06 AM »
Hi,

I'm using a UIDraggablePanel with a UIGrid and I'd like to know if my dragged object (UISprite) is visible, partially clipped or hidden?

I have tried to use "visibleFlag" property but it's not working during the drag action and don't detect partial clip.
I think it could be possible with clipRange but I can't manage to get the position of my object in the panel referential.  ???

Thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Panel clipping test
« Reply #1 on: May 03, 2012, 09:16:03 AM »
UIPanel.IsVisible(widget);

Won't tell you if it's partial though. For that you'll have to do your own math.

HPx___

  • Guest
Re: Panel clipping test
« Reply #2 on: May 03, 2012, 09:45:29 AM »
OK it's easier with IsVisible  ;)
But i'll try to get partial clipping anyway.

Thank you