ambitious-knife-25690
02/01/2023, 3:13 PMbright-gpu-74537
02/01/2023, 3:13 PMhaxe
if (this.clipQuad == null) {
if (this.parentComponent != null) {
this.parentComponent.clipQuad = new Quad();
this.parentComponent.clipQuad.visible = true;
this.parentComponent.visual.add(clipQuad);
} else {
this.clipQuad = new Quad();
this.clipQuad.visible = true;
this.visual.add(clipQuad);
}
}
bright-gpu-74537
02/01/2023, 3:14 PMbillowy-waiter-28954
02/01/2023, 3:14 PMbillowy-waiter-28954
02/01/2023, 3:14 PMambitious-knife-25690
02/01/2023, 3:14 PMvbox
clipping rect would be one of the two boundsbillowy-waiter-28954
02/01/2023, 3:15 PMambitious-knife-25690
02/01/2023, 3:15 PMbright-gpu-74537
02/01/2023, 3:16 PMbright-gpu-74537
02/01/2023, 3:16 PMbright-gpu-74537
02/01/2023, 3:18 PM.clip
has to be set on the parent? 🤔billowy-waiter-28954
02/01/2023, 3:19 PMbillowy-waiter-28954
02/01/2023, 3:19 PMbright-gpu-74537
02/01/2023, 3:19 PMbillowy-waiter-28954
02/01/2023, 3:20 PMhaxe
this.clipQuad.x = left + value.left;
this.clipQuad.y = top + value.top;
ambitious-knife-25690
02/01/2023, 3:20 PMambitious-knife-25690
02/01/2023, 3:21 PMambitious-knife-25690
02/01/2023, 3:21 PMbright-gpu-74537
02/01/2023, 3:21 PMambitious-knife-25690
02/01/2023, 3:21 PMambitious-knife-25690
02/01/2023, 3:21 PMbillowy-waiter-28954
02/01/2023, 3:22 PMambitious-knife-25690
02/01/2023, 3:22 PMthis.visual.clip
to the quad and add the clip rect to parent.visual.add(cliprect)
billowy-waiter-28954
02/01/2023, 3:22 PMbillowy-waiter-28954
02/01/2023, 3:22 PMvisual.clip
propertybillowy-waiter-28954
02/01/2023, 3:22 PMbillowy-waiter-28954
02/01/2023, 3:23 PMbright-gpu-74537
02/01/2023, 3:24 PMbright-gpu-74537
02/01/2023, 3:24 PMbillowy-waiter-28954
02/01/2023, 3:25 PM