public override void draw( Graphics graphics, float parentAlpha )
{
validate();
if( transform )
{
applyTransform( graphics, computeTransform() );
drawBackground( graphics, parentAlpha, 0, 0 );
if( clip )
{
graphics.batcher.flushBatch();
float padLeft = _padLeft.get( this ), padBottom = _padBottom.get( this );
if( clipBegin( graphics.batcher, padLeft, padBottom, getWidth() - padLeft - _padRight.get( this ), getHeight() - padBottom - _padTop.get( this ) ) )
{
drawChildren( graphics, parentAlpha );
clipEnd( graphics.batcher );
}
}
else
{
drawChildren( graphics, parentAlpha );
}
resetTransform( graphics );
}
else
{
drawBackground( graphics, parentAlpha, x, y );
base.draw( graphics, parentAlpha );
}
}