Update HUD code to the new dialog API.