示例#1
0
    private void DrawScene(Scene scene)
    {
        using (FoCsEditorDisposables.VerticalScope(GUI.skin.box))
        {
            using (FoCsEditorDisposables.HorizontalScope())
            {
                EditorGUILayout.LabelField("Path:");
                EditorGUILayout.LabelField(scene.path);
            }
            using (FoCsEditorDisposables.HorizontalScope())
            {
                EditorGUILayout.LabelField("Name:");
                EditorGUILayout.LabelField(scene.name);
            }

            using (FoCsEditorDisposables.HorizontalScope())
            {
                EditorGUILayout.LabelField("Build Index");
                EditorGUILayout.LabelField(scene.buildIndex.ToString());
            }
            using (FoCsEditorDisposables.HorizontalScope())

            {
                EditorGUILayout.LabelField("Root Count");
                EditorGUILayout.LabelField(scene.rootCount.ToString());
            }
        }
    }
示例#2
0
 private static void DrawButtons()
 {
     using (FoCsEditorDisposables.HorizontalScope()) {
         if (FoCsGUILayout.Button("Generate Class"))
         {
             GenerateClassFile();
         }
         if (FoCsGUILayout.Button("Search For New Menus"))
         {
             NamesList = GetTypeList();
         }
     }
 }
示例#3
0
 public override void DrawGUI()
 {
     if (FoCsGUILayout.Button("Randomize Seed + Generate"))
     {
         RandomizeSeed();
         GenerateMap();
     }
     using (FoCsEditorDisposables.HorizontalScope())
     {
         if (FoCsGUILayout.Button("Randomize Seed"))
         {
             RandomizeSeed();
         }
         if (FoCsGUILayout.Button("Generate Map"))
         {
             GenerateMap();
         }
     }
 }
示例#4
0
    public override void OnInspectorGUI()
    {
        serializedObject.Update();
        var Data = serializedObject.FindProperty("Data");

        if (reorderableListProperty == null)
        {
            reorderableListProperty = new ReorderableListProperty(Data, false).SetAddCallBack(AddCallback);
        }
        using (FoCsEditorDisposables.HorizontalScope())
        {
            using (FoCsEditorDisposables.VerticalScope(GUILayout.Width(17f)))
            {
                EditorGUILayout.Space();
            }
            reorderableListProperty.HandleDrawing();
            using (FoCsEditorDisposables.VerticalScope(GUILayout.Width(1f)))
            {
                EditorGUILayout.Space();
            }
        }
        serializedObject.ApplyModifiedProperties();
    }