ScrollView with Mask?

Is there a way you can place a mask on a scroll view so that if use a non-rectangular texture behind the scroll area, it would appear to remain contained within the bounds of the oddly shaped texture?

Thanks,

Aelfric

just draw the texture then draw the scrollview over it? (gui.xxxx not guilayout.xxx)

No, I don’t think I explained it well. I have a texture behind the scroll view, and that works great. The scroll view only draws what’s inside of it’s rect, but if I were to put a mask over it of the texture it could appear to scroll within the odd shaped texture.

you can’t mask gui aspects in any form neither odly nor not odly shaped, aside of restricting with areas or with correctly specified rects to draw in. Area based restriction will not work with scrollviews anyway though from what I recall.

Thanks dreamora, I was afraid of that. Do you know if it’s ever planned to include something like that?

we didn’t hear anything about such plans and I actually don’t hope so cause I hope that the current gui will be gone for good and for something that works correctly works performant and object oriented / MVC style.

the immediate mode gui is a horror nicely put, you can’t reasonably track states as stuff ends at the end of the frame and with the “event” aspect the code become a massive mess to handle it (and thats reasonably required cause otherwise you risk that gadgets are shown / not shown / resized midframe in which case it will cease to work at all and bomb you with errors)