          stop_alert_sound(s->alert_sound);
        }
        if (alert_sound != sound_none){
          play_alert_sound(alert_sound);
          s->alert_type = data.getAlertType();
        }
        s->alert_sound = alert_sound;
      }
      scene.alert_text1 = data.getAlertText1();
      scene.alert_text2 = data.getAlertText2();
 
</s> remove     scene.alert_text1 = data.getAlertText1();
    scene.alert_text2 = data.getAlertText2();
    scene.alert_ts = event.getLogMonoTime();
    scene.alert_size = data.getAlertSize();
    auto alertStatus = data.getAlertStatus();
 </s> add     scene.alert_text1 = scene.controls_state.getAlertText1();
    scene.alert_text2 = scene.controls_state.getAlertText2();
    scene.alert_size = scene.controls_state.getAlertSize();
    auto alertStatus = scene.controls_state.getAlertStatus(); </s> remove     if (data.getVCruise() != scene.v_cruise) {
      scene.v_cruise_update_ts = event.getLogMonoTime();
    }
    scene.v_cruise = data.getVCruise();
    scene.v_ego = data.getVEgo();
    scene.curvature = data.getCurvature();
    scene.engaged = data.getEnabled();
    scene.engageable = data.getEngageable();
    scene.gps_planner_active = data.getGpsPlannerActive();
    scene.monitoring_active = data.getDriverMonitoringOn();
    scene.decel_for_model = data.getDecelForModel();
    auto alert_sound = data.getAlertSound();
 </s> add     auto alert_sound = scene.controls_state.getAlertSound(); </s> remove     if (data.getMockEngaged() != scene.uilayout_mockengaged) {
      scene.uilayout_mockengaged = data.getMockEngaged();
    }
 </s> add  </s> remove     scene.frontview = data.getRearViewCam();
 </s> add     scene.frontview = scene.controls_state.getRearViewCam(); </s> remove   s->started = s->thermal_started || s->preview_started ;
 </s> add   s->started = scene.thermal.getStarted() || s->preview_started ;
        s->alert_type = scene.controls_state.getAlertType();
          stop_alert_sound(s->alert_sound);
        }
        if (alert_sound != sound_none){
          play_alert_sound(alert_sound);
        s->alert_type = scene.controls_state.getAlertType();
        }
        s->alert_sound = alert_sound;
      }
      scene.alert_text1 = data.getAlertText1();
      scene.alert_text2 = data.getAlertText2();
keep keep keep keep replace keep keep keep keep keep
 ui.cc: remove variables from UIScene, use event::Reader to get data  (#1585)

* use struct to store lead status

* remove white space

* use RadarState::LeadData::Reader

* use reader to get thermal data

* use reader

* continue

* remove variables

reset submodules,fix some errors

reset submodules

revert

* remove s->scene.gps_planner_active

* modify

* cleanup

* done

* resolve conflict

* remove irrelevant comment

* remove white space 
selfdrive/ui/ui.cc