@Override
public void draw(GFX gfx) {
if(this.string != null) {
Font font = Font.name("OpenSans").size(26).resolve();
double width = font.calculateWidth(string) + 30;
if(width < getWidth()) {
width = getWidth();
}
gfx.setPaint(FlatColor.hsb(0, 0, 0.8, this.getOpacity() * 0.9));
gfx.fillRoundRect(0, 0, width, getHeight(), 10, 10);