A children's pool is set to shut for more than a year for a revamp as part of a £20 million town centre regeneration project.