Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - ccontinisio

Pages: [1]
1
NGUI 3 Support / Preventing click events to go through a UIPopupList
« on: November 01, 2013, 03:00:29 PM »
Hi guys,
how can i prevent click events to be propagated to checkboxes located below an UI Popup List? I have this situation:



1. initial situation
2. I click on the number 4, the list opens and covers the checkbox
3. I click on the item 1, the list closes, but the checkbox underneath has been unselected!

I'm using NGUI default events, specifically I assigned an handler for the Popup list in the UI Popup Script, and I'm generally using UI Button Message to specify custom handlers for the buttons that get accidentally pressed.

If I was in Flash, I would put something like event.stopPropagation in the click event for the list. Is there something similar for NGUI?

I'm using 2.7.0 and I can't switch to 3.0, sorry. I know it's not ideal, but I'd like to know if you have a solution for this. Thanks

2
Hi everyone, I'm having some issues with a clipped panel. As the title says, I have a panel that's draggable and clipped, which displays a list of GameObjects, each one composed of usernames, avatars, and some other text.

The avatars are not square, they have an hexagonal mask. To achieve this, they are Texture widgets with a special shader I found here. The shader works fine in general (you can see the avatars - all with the FB icon - are hex-shaped), but when they get clipped by the panel, they keep showing even outside the boundaries. Only when completely out of sight, they get hidden (probably the GameObject is disabled?).

Check the screen:


In my understanding the problem is the shader that doesn't support clipping, but I can't really write shaders, so I'm asking if any of you would be so nice to help me with this. As I said, the shader I'm using for those avatars is this. I think I just need a modified version of it, maybe mixed with NGUI's default "Unlit - Transparent Colored (AlphaClip)" for alpha clipping.

Thanks a lot!

Pages: [1]