An easy to use Unity 3D library for creating illustrated Interactive Fiction games and more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
881 B

using UnityEditor;
using UnityEditorInternal;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using Rotorz.ReorderableList;
namespace Fungus.Script
{
[CustomEditor (typeof(SetSayDialog))]
public class SetSayDialogEditor : FungusCommandEditor
{
SerializedProperty sayDialogProp;
void OnEnable()
{
sayDialogProp = serializedObject.FindProperty("sayDialog");
}
public override void DrawCommandGUI()
{
serializedObject.Update();
FungusCommandEditor.ObjectField<SayDialog>(sayDialogProp,
new GUIContent("Say Dialog", "Dialog to use when displaying Say command story text"),
new GUIContent("<None>"),
SayDialog.activeDialogs);
serializedObject.ApplyModifiedProperties();
}
}
}