Mini demo with all features
This commit is contained in:
@@ -8,12 +8,14 @@ public class DialogueNodeEditor : Editor
|
||||
private SerializedProperty _dialogueTextProp;
|
||||
private SerializedProperty _choicesProp;
|
||||
private SerializedProperty _autoCloseDelayProp;
|
||||
private SerializedProperty _clueToUnlockProp;
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
_dialogueTextProp = serializedObject.FindProperty("DialogueText");
|
||||
_choicesProp = serializedObject.FindProperty("Choices");
|
||||
_autoCloseDelayProp = serializedObject.FindProperty("AutoCloseDelay");
|
||||
_clueToUnlockProp = serializedObject.FindProperty("ClueToUnlock");
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
@@ -52,6 +54,20 @@ public class DialogueNodeEditor : Editor
|
||||
|
||||
EditorGUILayout.PropertyField(_choicesProp, true);
|
||||
|
||||
EditorGUILayout.Space(10);
|
||||
|
||||
EditorGUILayout.LabelField("Detective Board Integration", EditorStyles.boldLabel);
|
||||
EditorGUILayout.PropertyField(_clueToUnlockProp, new GUIContent("Clue To Unlock"));
|
||||
|
||||
if (_clueToUnlockProp.objectReferenceValue != null)
|
||||
{
|
||||
EditorGUILayout.HelpBox("This clue will be unlocked on the Detective Board when this dialogue node is reached.", MessageType.Info);
|
||||
}
|
||||
else
|
||||
{
|
||||
EditorGUILayout.HelpBox("Optional: Assign a ClueData to unlock an evidence on the Detective Board when reaching this node.", MessageType.None);
|
||||
}
|
||||
|
||||
EditorGUILayout.Space(10);
|
||||
|
||||
EditorGUILayout.BeginHorizontal();
|
||||
|
||||
Reference in New Issue
Block a user