Inheritance: PartModule, ExWorkSink
 void Select_Pad(ExLaunchPad selected_pad)
 {
     if (pad)
     {
         pad.part.SetHighlightDefault();
     }
     pad = selected_pad;
     pad_list.SelectItem(launchpads.IndexOf(pad));
     UpdateGUIState();
 }
        void BuildPadList(Vessel v)
        {
            if (pad != null)
            {
                pad.part.SetHighlightDefault();
            }
            launchpads = null;
            pad_list   = null;
            pad        = null;          //FIXME would be nice to not lose the active pad
            var pads = new List <ExLaunchPad> ();

            foreach (var p in v.Parts)
            {
                pads.AddRange(p.Modules.OfType <ExLaunchPad> ());
            }
            if (pads.Count > 0)
            {
                launchpads = pads;
                pad        = launchpads[0];
                var pad_names = new List <string> ();
                int ind       = 0;
                foreach (var p in launchpads)
                {
                    if (p.PadName != "")
                    {
                        pad_names.Add(p.PadName);
                    }
                    else
                    {
                        pad_names.Add("pad-" + ind);
                    }
                    ind++;
                }
                pad_list = new DropDownList(pad_names);
            }
        }
 public static void SelectPad(ExLaunchPad selected_pad)
 {
     instance.Select_Pad (selected_pad);
 }
 void Select_Pad(ExLaunchPad selected_pad)
 {
     if (pad) {
         pad.part.SetHighlightDefault ();
     }
     pad = selected_pad;
     pad_list.SelectItem (launchpads.IndexOf (pad));
     UpdateGUIState ();
 }
        void BuildPadList(Vessel v)
        {
            if (pad != null) {
                pad.part.SetHighlightDefault ();
            }
            launchpads = null;
            pad_list = null;
            pad = null;	//FIXME would be nice to not lose the active pad
            var pads = new List<ExLaunchPad> ();

            foreach (var p in v.Parts) {
                pads.AddRange (p.Modules.OfType<ExLaunchPad> ());
            }
            if (pads.Count > 0) {
                launchpads = pads;
                pad = launchpads[0];
                var pad_names = new List<string> ();
                int ind = 0;
                foreach (var p in launchpads) {
                    if (p.PadName != "") {
                        pad_names.Add (p.PadName);
                    } else {
                        pad_names.Add ("pad-" + ind);
                    }
                    ind++;
                }
                pad_list = new DropDownList (pad_names);
            }
        }
 public static void SelectPad(ExLaunchPad selected_pad)
 {
     instance.Select_Pad(selected_pad);
 }