Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: blahdot3h on June 18, 2013, 11:44:50 PM

Title: Panel Clipping while using your inventory example?
Post by: blahdot3h on June 18, 2013, 11:44:50 PM
I'm looking to have the inventory clipped in a panel while dragging though I know that each panel has it's own clipping so something will have to be changed in order to get this to work.

Given that your inventory example loads each item slot as it's own panel is there any way to get around this in order to achieve what I need?

I have already modified the inventory example code to save and load inventory and spent countless hours tooling this inventory to my needs.  This is one of the only hurdles that I have faced that I'm not sure how to get around.
Title: Re: Panel Clipping while using your inventory example?
Post by: ArenMook on June 19, 2013, 12:24:15 AM
Er... what? Each item as its own panel? No it doesn't. If you look at the inventory example, all the slots are under one panel.

There may be a panel created if you use Instantiate instead of NGUITools.AddChild.
Title: Re: Panel Clipping while using your inventory example?
Post by: blahdot3h on June 19, 2013, 10:08:07 AM
Wow, I am so sorry.  Apparently somewhere along the line while I was tinkering around with these the storage icon template that I was using I turned it into a panel.  All I had to do was remove that and everything is fixed now.  Thank you for the quick response and dedicated support.  Sorry to waste your time hah.