Exemplo n.º 1
0
 private static void CreateKerbalViewer()
 {
     DisplaySelectProfession();
     DisplaySelectGender();
     GUILayout.BeginHorizontal();
     if (GUILayout.Button("Create", GUILayout.MaxWidth(80)))
     {
         bool kerbalFound = false;
         while (!kerbalFound)
         {
             SelectedKerbal = ModKerbal.CreateKerbal();
             if (SelectedKerbal.Title == KerbalProfession && SelectedKerbal.Gender == gender)
             {
                 kerbalFound = true;
             }
         }
         OnCreate = false;
     }
     if (GUILayout.Button("Cancel", GUILayout.MaxWidth(80)))
     {
         OnCreate       = false;
         SelectedKerbal = null;
     }
     GUILayout.EndHorizontal();
 }