示例#1
0
 void Present_SubWindow()
 {
     EditorGUILayout.BeginVertical(VerticalStyle);
     if (LocalConfig.Ins.FoldSubWindow = EditorGUILayout.Foldout(LocalConfig.Ins.FoldSubWindow, "窗口", true))
     {
         if (GUILayout.Button("Shelf"))
         {
             ShelfEditor.ShowWindow();
         }
         else if (GUILayout.Button("Prefs"))
         {
             PrefsWindow.ShowWindow();
         }
         else if (GUILayout.Button("GUIStyle"))
         {
             GUIStyleWindow.ShowWindow();
         }
         else if (GUILayout.Button("Template"))
         {
             TemplateSettingsWindow.ShowWindow();
         }
         else if (GUILayout.Button("ColorPicker"))
         {
             ColorPickerWindow.ShowWindow();
         }
         else if (GUILayout.Button("DebugOptions"))
         {
             ShowOptionWindow();
         }
         else if (GUILayout.Button("Dependencies"))
         {
             DependencyWindow.ShowWindow();
         }
         else if (GUILayout.Button("ParticleScaler"))
         {
             ParticleScalerWindow.ShowWindow();
         }
         else if (GUILayout.Button("UnityTexture"))
         {
             UnityTextureWindow.ShowWindow();
         }
     }
     EditorGUILayout.EndVertical();
 }
示例#2
0
 public static void ShowWindow()
 {
     window         = EditorWindow.GetWindow <ColorPickerWindow> ("Color Picker");
     window.minSize = new Vector2(300f, 150f);
     window.Show();
 }