示例#1
0
        private void SelectOrCreate()
        {
            EditorGUILayout.BeginHorizontal();
            EditorUtil.Space();
            EditorGUILayout.LabelField("Select or create a Character:");
            EditorUtil.Space();
            EditorGUILayout.EndHorizontal();

            if (GUILayout.Button("Create a new Character"))
            {
                CreateCharacterDialog.Show();
            }
        }
示例#2
0
 public override void OnGUI()
 {
     _editorData = gui.Object("Editor Data", _editorData);
     if (_editorData == null)
     {
         _internalName.Value = "";
         if (GUILayout.Button("Create Character Data"))
         {
             CreateCharacterDialog.Show(_character);
         }
     }
     else
     {
         _internalName.Value = _editorData.InternalName;
     }
     MemberField();
 }
示例#3
0
        private void ToolbarLeft()
        {
            if (GUILayout.Button("Create", EditorStyles.toolbarButton))
            {
                CreateCharacterDialog.Show();
            }

            if (Target == null)
            {
                return;
            }

            if (GUILayout.Button("Unload", EditorStyles.toolbarButton))
            {
                Target = null;
            }

            if (GUILayout.Button("Build", EditorStyles.toolbarButton))
            {
                Target.Generate();
            }
        }