@Override
    public void render() {
        if(sprite != null && visible) {
            float offsetX = (sprite.getWidth() - width) / 2;
            float offsetY = (sprite.getHeight() - height) / 2;
            
            float drawX = x - offsetX;
            float drawY = y - offsetY;
            
            Renderer.get().draw(sprite, drawX, drawY);
        }
        
        if(renderTooltip && tooltip != null) {
            //tooltip.render();
        }
    }