WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   SetClipsChildren(true) only clips the first Model child of the frame (https://www.wowinterface.com/forums/showthread.php?t=57285)

fusionpit 07-13-19 10:58 AM

SetClipsChildren(true) only clips the first Model child of the frame
 
I have a normal frame, which contains 2 Model derivatives in it (One DressUpModel, one PlayerModel, but it happens with any combination of Model frames). When using frame:SetClipsChildren(true), only the first visible child gets clipped correctly.

When the first child exits the bounds of the frame, it is correctly clipped, as seen here: https://gfycat.com/alarmedwhimsicalamericancreamdraft
When the first child exits the bound of the frame, then the second child exists the bound of the frame afterwards, it is correctly clipped as seen here: https://gfycat.com/uglywilditalianbrownbear
However, when the first child remain in bounds, the second child won't clip until the entire frame has moved out of bounds: https://gfycat.com/imaginativehauntingamericanbulldog

In these clips, the Gnome has its model frame created first, and the elemental has its model frame created second. If I change only the order of frame creation, so that the elemental is first, the opposite of the third clip happens; Until the elemental moves out of bounds, the gnome will not clip until it's fully out of bounds.

Is this a known issue, maybe just a general UI bug? Anyone ever have to deal with multiple Model frames being clipped? Is there some other way to get ALL models to clip like the first child does, even when other models are on screen still?

kurapica.igas 07-14-19 01:04 AM

I test with two PlayeModel, only the first is clipped, try the scrollframe, also only clip the first model, so this should be a bug.

I fix it by using two frame at the same location with same size, then put each model on them, it works.

fusionpit 07-15-19 07:29 AM

Quote:

Originally Posted by kurapica.igas (Post 332873)
I test with two PlayeModel, only the first is clipped, try the scrollframe, also only clip the first model, so this should be a bug.

I fix it by using two frame at the same location with same size, then put each model on them, it works.

Thanks for confirming it! I hadn't thought of using another frame for each model, that would be complicated but it would work for what I need. Thanks again!


All times are GMT -6. The time now is 03:16 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI