public void draw(Batch batch, float a) { batch.end(); rend.setProjectionMatrix(batch.getProjectionMatrix()); rend.setTransformMatrix(batch.getTransformMatrix()); rend.begin(ShapeType.Filled); drawBgRect(getX(), getY(), getWidth(), getHeight()); drawCircleRect(getX() + 5, getY() + 5, getWidth() - 10, getHeight() - 10); rend.end(); batch.begin(); } }