Refactored loadHUD in ResourcesManager.