internal static void Display() { ScrollDetailsPosition = GUILayout.BeginScrollView(ScrollDetailsPosition, RMStyle.ScrollStyle, GUILayout.Height(210), GUILayout.Width(680)); Rect rect = new Rect(); string label = ""; string toolTip = ""; GUILayout.Label("Kerbal Flight History", RMStyle.LabelStyleBold); GUILayout.Label(WindowRoster.SelectedKerbal.Name + " - (" + WindowRoster.SelectedKerbal.Title + ")", RMStyle.LabelStyleBold, GUILayout.MaxWidth(300)); if (!string.IsNullOrEmpty(RMAddon.saveMessage)) { GUILayout.Label(RMAddon.saveMessage, RMStyle.ErrorLabelRedStyle); } // Begin Tab contents. FlightLog thisLog = WindowRoster.SelectedKerbal.Kerbal.flightLog; foreach (FlightLog.Entry thisEntry in thisLog.Entries) { GUILayout.Label(thisEntry.flight.ToString() + " - " + thisEntry.target + " - " + thisEntry.type); } //End Tab contents GUILayout.EndScrollView(); WindowRoster.DisplayEditActionButtons(ref rect, ref label, ref toolTip); }
internal static void Display() { ScrollDetailsPosition = GUILayout.BeginScrollView(ScrollDetailsPosition, RMStyle.ScrollStyle, GUILayout.Height(210), GUILayout.Width(680)); Rect rect = new Rect(); string label = ""; string toolTip = ""; GUILayout.Label("Kerbal Records", RMStyle.LabelStyleBold); GUILayout.Label(WindowRoster.SelectedKerbal.Name + " - (" + WindowRoster.SelectedKerbal.Title + ")", RMStyle.LabelStyleBold, GUILayout.MaxWidth(300)); if (!string.IsNullOrEmpty(RMAddon.saveMessage)) { GUILayout.Label(RMAddon.saveMessage, RMStyle.ErrorLabelRedStyle); } // Begin Tab contents. if (GUILayout.Button("Enter Notes", GUILayout.Width(100))) { } //End Tab contents GUILayout.EndScrollView(); WindowRoster.DisplayEditActionButtons(ref rect, ref label, ref toolTip); }
internal static void Display() { ScrollDetailsPosition = GUILayout.BeginScrollView(ScrollDetailsPosition, RMStyle.ScrollStyle, GUILayout.Height(210), GUILayout.Width(680)); Rect rect = new Rect(); string label = ""; string toolTip = ""; GUILayout.Label("Kerbal Training", RMStyle.LabelStyleBold); GUILayout.Label(WindowRoster.SelectedKerbal.Name + " - (" + WindowRoster.SelectedKerbal.Title + ")", RMStyle.LabelStyleBold, GUILayout.MaxWidth(300)); if (!string.IsNullOrEmpty(RMAddon.saveMessage)) { GUILayout.Label(RMAddon.saveMessage, RMStyle.ErrorLabelRedStyle); } GUILayout.Label("", GUILayout.Width(10)); GUILayout.Label("Skill"); GUILayout.BeginHorizontal(); GUILayout.Label("", GUILayout.Width(10)); GUILayout.Label("0", GUILayout.Width(10)); WindowRoster.SelectedKerbal.Skill = (int)GUILayout.HorizontalSlider(WindowRoster.SelectedKerbal.Skill, 0, 5, GUILayout.MaxWidth(300)); rect = GUILayoutUtility.GetLastRect(); if (Event.current.type == EventType.Repaint && RMSettings.ShowToolTips == true) { ToolTip = Utilities.SetActiveTooltip(rect, WindowRoster.Position, GUI.tooltip, ref ToolTipActive, 30, 50); } GUILayout.Label(WindowRoster.SelectedKerbal.Skill.ToString() + " / 5"); GUILayout.EndHorizontal(); GUILayout.Label("Experience"); GUILayout.BeginHorizontal(); GUILayout.Label("", GUILayout.Width(10)); GUILayout.Label("0", GUILayout.Width(10)); WindowRoster.SelectedKerbal.Experience = (int)GUILayout.HorizontalSlider(WindowRoster.SelectedKerbal.Experience, 0, 99999, GUILayout.MaxWidth(300)); rect = GUILayoutUtility.GetLastRect(); if (Event.current.type == EventType.Repaint && RMSettings.ShowToolTips == true) { ToolTip = Utilities.SetActiveTooltip(rect, WindowRoster.Position, GUI.tooltip, ref ToolTipActive, 30, 50); } GUILayout.Label(WindowRoster.SelectedKerbal.Experience.ToString() + " / 99999"); GUILayout.EndHorizontal(); GUILayout.EndScrollView(); WindowRoster.DisplayEditActionButtons(ref rect, ref label, ref toolTip); }
internal static void Display() { ScrollDetailsPosition = GUILayout.BeginScrollView(ScrollDetailsPosition, RMStyle.ScrollStyle, GUILayout.Height(210), GUILayout.Width(680)); Rect rect = new Rect(); string label = ""; string toolTip = ""; GUILayout.Label(WindowRoster.SelectedKerbal.IsNew ? "Create a Kerbal" : "Edit a Kerbal", RMStyle.LabelStyleBold); if (RMSettings.EnableKerbalRename) { GUILayout.BeginHorizontal(); WindowRoster.SelectedKerbal.Name = GUILayout.TextField(WindowRoster.SelectedKerbal.Name, GUILayout.MaxWidth(300)); GUILayout.Label(" - (" + WindowRoster.SelectedKerbal.Kerbal.experienceTrait.Title + ")"); GUILayout.EndHorizontal(); } else { GUILayout.Label(WindowRoster.SelectedKerbal.Name + " - (" + WindowRoster.SelectedKerbal.Title + ")", RMStyle.LabelStyleBold, GUILayout.MaxWidth(300)); } if (!string.IsNullOrEmpty(RMAddon.saveMessage)) { GUILayout.Label(RMAddon.saveMessage, RMStyle.ErrorLabelRedStyle); } if (RMSettings.EnableKerbalRename && RMSettings.RenameWithProfession) { WindowRoster.DisplaySelectProfession(); } WindowRoster.DisplaySelectGender(); WindowRoster.SelectedKerbal.Gender = WindowRoster.gender; GUILayout.Label("Courage"); WindowRoster.SelectedKerbal.Courage = GUILayout.HorizontalSlider(WindowRoster.SelectedKerbal.Courage, 0, 1, GUILayout.MaxWidth(300)); GUILayout.Label("Stupidity"); WindowRoster.SelectedKerbal.Stupidity = GUILayout.HorizontalSlider(WindowRoster.SelectedKerbal.Stupidity, 0, 1, GUILayout.MaxWidth(300)); WindowRoster.SelectedKerbal.Badass = GUILayout.Toggle(WindowRoster.SelectedKerbal.Badass, "Badass"); GUILayout.EndScrollView(); WindowRoster.DisplayEditActionButtons(ref rect, ref label, ref toolTip); }