void Select_Pad(ELBuildControl selected_pad)
 {
     if (control != null && control != selected_pad)
     {
         control.builder.Highlight(false);
     }
     control = selected_pad;
     pad_list.SelectItem(launchpads.IndexOf(control));
     UpdateGUIState();
 }
Exemplo n.º 2
0
 void Select_Site(SurveySite selected_site)
 {
     if (site != selected_site)
     {
         Highlight(false);
     }
     site = selected_site;
     site_list.SelectItem(available_sites.IndexOf(site));
     // The build window will take care of turning on highlighting
 }
Exemplo n.º 3
0
 void SetSite(SurveySite selected_site)
 {
     if (site == selected_site)
     {
         if (site != null && virtualPad != null)
         {
             // update display
             virtualPad.SetSite(site);
             control.PlaceCraftHull();
         }
         return;
     }
     Highlight(false);
     site = selected_site;
     if (site == null)
     {
         if (virtualPad != null)
         {
             Destroy(virtualPad.gameObject);
             virtualPad = null;
         }
     }
     else
     {
         if (virtualPad == null)
         {
             //virtualPad = EL_VirtualPad.Create (site);
         }
         else
         {
             virtualPad.SetSite(site);
         }
     }
     if (site_list != null)
     {
         site_list.SelectItem(available_sites.IndexOf(site));
     }
     control.PlaceCraftHull();
     // The build window will take care of turning on highlighting
 }