From c626fb9f43bba5b387e25cb96269650beae0f2cb Mon Sep 17 00:00:00 2001 From: Clayell <125416952+Clayell@users.noreply.github.com> Date: Tue, 8 Aug 2023 22:43:44 -0400 Subject: [PATCH 1/2] adding kennedy space center as a preset --- .../ModuleCustomParachuteMessage.cs | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/CustomParachuteMessage/ModuleCustomParachuteMessage.cs b/CustomParachuteMessage/ModuleCustomParachuteMessage.cs index 8e38013..cf3b78e 100644 --- a/CustomParachuteMessage/ModuleCustomParachuteMessage.cs +++ b/CustomParachuteMessage/ModuleCustomParachuteMessage.cs @@ -591,7 +591,7 @@ void ProcessWindow(int windowID) c6 = 0; w2 = "E"; } - if (GUILayout.Button("KSC")) + if (GUILayout.Button("KSC 1")) { word_1 = "Kerbal"; word_2 = "Space"; @@ -607,6 +607,22 @@ void ProcessWindow(int windowID) c6 = 31; w2 = "W"; } + if (GUILayout.Button("KSC 2")) + { + word_1 = "Kennedy"; + word_2 = "Space"; + word_3 = "Center"; + word_4 = ""; + ring4IsCoordinate = true; + c1 = 28; + c2 = 34; + c3 = 24; + w1 = "N"; + c4 = 80; + c5 = 39; + c6 = 4; + w2 = "W"; + } if (GUILayout.Button("Rocket Science")) { word_1 = "HowHard"; From 639a7e34c4f55be8bf26b9f15a0c92b542853e47 Mon Sep 17 00:00:00 2001 From: Clayell <125416952+Clayell@users.noreply.github.com> Date: Tue, 8 Aug 2023 23:11:36 -0400 Subject: [PATCH 2/2] more sensible names for checkerboard and strip variants --- .../ModuleCustomParachuteMessage.cs | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/CustomParachuteMessage/ModuleCustomParachuteMessage.cs b/CustomParachuteMessage/ModuleCustomParachuteMessage.cs index cf3b78e..8b5c612 100644 --- a/CustomParachuteMessage/ModuleCustomParachuteMessage.cs +++ b/CustomParachuteMessage/ModuleCustomParachuteMessage.cs @@ -707,105 +707,105 @@ void ProcessWindow(int windowID) data[i] = 1; } } - if (GUILayout.Button("Checkerboard")) + if (GUILayout.Button("Checkerboard 1")) { for (int i = 0; i < data.Length; i++) { data[i] = (i % 2 == (i / 80 % 2)) ? 1 : 0; } } - if (GUILayout.Button("Thick Checkerboard")) + if (GUILayout.Button("Checkerboard 2")) { for (int i = 0; i < data.Length; i++) { data[i] = ((i + (i / 80 % 2) * 2) % 4 >= 2) ? 1 : 0; } } - if (GUILayout.Button("Slightly Different Thick Checkerboard")) + if (GUILayout.Button("Checkerboard 3")) { for (int i = 0; i < data.Length; i++) { data[i] = ((i + (i / 80 % 2) * 2 + 1) % 4 >= 2) ? 1 : 0; } } - if (GUILayout.Button("Thicker Checkerboard")) + if (GUILayout.Button("Checkerboard 4")) { for (int i = 0; i < data.Length; i++) { data[i] = ((i + (i / 80 % 2) * 4) % 8 >= 4) ? 1 : 0; } } - if (GUILayout.Button("Extra Thicc Checkerboard")) + if (GUILayout.Button("Checkerboard 5")) { for (int i = 0; i < data.Length; i++) { data[i] = ((i + (i / 80 % 2) * 5) % 10 >= 5) ? 1 : 0; } } - if (GUILayout.Button("Even Thicker Checkerboard")) + if (GUILayout.Button("Checkerboard 6")) { for (int i = 0; i < data.Length; i++) { data[i] = ((i + (i / 80 % 2) * 10) % 20 >= 10) ? 1 : 0; } } - if (GUILayout.Button("Super Thicc Checkerboard")) + if (GUILayout.Button("Checkerboard 7")) { for (int i = 0; i < data.Length; i++) { data[i] = ((i + (i / 80 % 2) * 20) % 40 >= 20) ? 1 : 0; } } - if (GUILayout.Button("Ultra Thicc Checkerboard")) + if (GUILayout.Button("Checkerboard 8")) { for (int i = 0; i < data.Length; i++) { data[i] = ((i + (i / 80 % 2) * 40) % 80 >= 40) ? 1 : 0; } } - if (GUILayout.Button("Strip")) + if (GUILayout.Button("Strip 1")) { for (int i = 0; i < data.Length; i++) { data[i] = (i % 2 == 0) ? 1 : 0; } } - if (GUILayout.Button("Thick Strip")) + if (GUILayout.Button("Strip 2")) { for (int i = 0; i < data.Length; i++) { data[i] = (i % 4 >= 2) ? 1 : 0; } } - if (GUILayout.Button("Thicker Strip")) + if (GUILayout.Button("Strip 3")) { for (int i = 0; i < data.Length; i++) { data[i] = (i % 8 >= 4) ? 1 : 0; } } - if (GUILayout.Button("Extra Thicc Strip")) + if (GUILayout.Button("Strip 4")) { for (int i = 0; i < data.Length; i++) { data[i] = (i % 10 >= 5) ? 1 : 0; } } - if (GUILayout.Button("Even Thicker Strip")) + if (GUILayout.Button("Strip 5")) { for (int i = 0; i < data.Length; i++) { data[i] = (i % 20 >= 10) ? 1 : 0; } } - if (GUILayout.Button("Super Thicc Strip")) + if (GUILayout.Button("Strip 6")) { for (int i = 0; i < data.Length; i++) { data[i] = (i % 40 >= 20) ? 1 : 0; } } - if (GUILayout.Button("Not Even Strip Anymore")) + if (GUILayout.Button("Strip 7")) { for (int i = 0; i < data.Length; i++) {