public void drawLabel(Batch batch, float parentAlpha) { validate(); if (getStyle().background != null) { batch.setColor(1,1,1,getColor().a); float padding=getHeight()*0.15f; float paddingX=getStyle().font.getSpaceWidth()*0.5f; getStyle().background.draw(batch, getX()-paddingX, getY(), getWidth()+paddingX*2, getHeight()+padding); } if (isStroke) { strokeColor.a = getColor().a; fontCache.tint(strokeColor); for (int i = 0; i < dxs.length; i++) { fontCache.setPosition(getX() + dxs[i] * strokeWidth, getY() + dys[i] * strokeWidth + strokeWidth); fontCache.draw(batch); } fontCache.setPosition(getX(), getY() + strokeWidth); fontCache.tint(getColor()); fontCache.draw(batch); } else { fontCache.setPosition(getX(), getY() + strokeWidth); fontCache.tint(getColor()); fontCache.draw(batch); } } }