diff --git a/Assets/Fungus/Dialog/Editor/SetDialog.cs b/Assets/Fungus/Dialog/Editor/SetDialog.cs new file mode 100644 index 00000000..57da91c7 --- /dev/null +++ b/Assets/Fungus/Dialog/Editor/SetDialog.cs @@ -0,0 +1,31 @@ +using UnityEditor; +using UnityEditorInternal; +using UnityEngine; +using System.Collections; +using System.Collections.Generic; +using Rotorz.ReorderableList; + +namespace Fungus.Script +{ + + [CustomEditor (typeof(SetDialog))] + public class SetDialogEditor : FungusCommandEditor + { + public override void DrawCommandGUI() + { + SetDialog t = target as SetDialog; + + EditorGUI.BeginChangeCheck(); + + DialogController dialogController = FungusCommandEditor.ObjectField(new GUIContent("Active Dialog", "Dialog to use when displaying Say command story text"), + new GUIContent(""), + t.dialogController); + if (EditorGUI.EndChangeCheck()) + { + Undo.RecordObject(t, "Set Dialog"); + t.dialogController = dialogController; + } + } + } + +} \ No newline at end of file diff --git a/Assets/Fungus/Dialog/Editor/SetDialog.cs.meta b/Assets/Fungus/Dialog/Editor/SetDialog.cs.meta new file mode 100644 index 00000000..45afdd32 --- /dev/null +++ b/Assets/Fungus/Dialog/Editor/SetDialog.cs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f77de3c7e9e264872bfb94713e4c4844 +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: