예제 #1
0
 public void Draw(SerializedObject serializedObject, SerializedProperty nodeProperty, int nodeIndex)
 {
     if (serializedObject == null || nodeProperty == null)
     {
         return;
     }
     DrawMainInfo(serializedObject, nodeProperty);
     QuestEditorUtility.EditorGUILayoutVerticalSpace(2);
     DrawStateInfo(serializedObject, nodeProperty, nodeIndex);
     QuestEditorUtility.EditorGUILayoutVerticalSpace(2);
     DrawConnectionInfo(serializedObject, nodeProperty);
 }
 public override void OnInspectorGUI()
 {
     serializedObject.Update();
     DrawTopInfo();
     DrawParentList();
     QuestEditorUtility.EditorGUILayoutVerticalSpace(2);
     DrawUrgencyFunctionList();
     QuestEditorUtility.EditorGUILayoutVerticalSpace(2);
     DrawActionList();
     QuestEditorUtility.EditorGUILayoutVerticalSpace(2);
     DrawDriveValueList();
     QuestEditorUtility.EditorGUILayoutVerticalSpace(2);
     DrawRewardMultipliers();
     serializedObject.ApplyModifiedProperties();
 }
        public override void OnInspectorGUI()
        {
            DrawDebugFoldout();

            serializedObject.Update();
            DrawID("Quest giver identity.");
            QuestEditorUtility.EditorGUILayoutVerticalSpace(2);
            DrawSaveSettings();
            QuestEditorUtility.EditorGUILayoutVerticalSpace(2);
            DrawOtherSettings();
            QuestEditorUtility.EditorGUILayoutVerticalSpace(2);
            DrawDialogueContent();
            QuestEditorUtility.EditorGUILayoutVerticalSpace(2);
            DrawQuestList();
            serializedObject.ApplyModifiedProperties();
            DrawSelectedQuestInspector();
        }
예제 #4
0
 public void Draw(SerializedObject serializedObject)
 {
     if (serializedObject == null)
     {
         return;
     }
     DrawMainInfo(serializedObject);
     QuestEditorUtility.EditorGUILayoutVerticalSpace(2);
     DrawAutostartConditions(serializedObject);
     QuestEditorUtility.EditorGUILayoutVerticalSpace(2);
     DrawOfferConditions(serializedObject);
     QuestEditorUtility.EditorGUILayoutVerticalSpace(2);
     DrawStateInfo(serializedObject);
     QuestEditorUtility.EditorGUILayoutVerticalSpace(2);
     DrawCounters(serializedObject);
     QuestEditorUtility.EditorGUILayoutVerticalSpace(2);
     DrawNodes(serializedObject);
 }
예제 #5
0
 public override void OnInspectorGUI()
 {
     EditorGUILayout.HelpBox("Actions are tasks that quest givers can ask the player to do to an entity. However, they don't make changes to the " +
                             "world. Instead, they represent changes that would occur in the world if the player were to complete the action. Actions should match up with " +
                             "behaviors on GameObjects that make actual changes to the world. For example, an Attack action represents removing the entity from the world. " +
                             "The actual behavior to do this should be on the entity itself, such as a Health behavior that despawns the GameObject.", MessageType.None);
     serializedObject.Update();
     EditorGUILayout.PropertyField(serializedObject.FindProperty("m_description"));
     EditorGUILayout.PropertyField(serializedObject.FindProperty("m_displayName"));
     DrawMotives();
     QuestEditorUtility.EditorGUILayoutVerticalSpace(2);
     DrawText();
     QuestEditorUtility.EditorGUILayoutVerticalSpace(2);
     DrawRequirements();
     QuestEditorUtility.EditorGUILayoutVerticalSpace(2);
     DrawEffects();
     QuestEditorUtility.EditorGUILayoutVerticalSpace(2);
     DrawCompletionConditions();
     serializedObject.ApplyModifiedProperties();
 }