From rolling ball to complete wetting: the dynamic tuning of liquids on nanostructured surfaces