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.
31 lines
963 B
31 lines
963 B
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(); |
|
|
|
Dialog dialogController = FungusCommandEditor.ObjectField<Dialog>(new GUIContent("Active Dialog", "Dialog to use when displaying Say command story text"), |
|
new GUIContent("<None>"), |
|
t.dialogController); |
|
if (EditorGUI.EndChangeCheck()) |
|
{ |
|
Undo.RecordObject(t, "Set Dialog"); |
|
t.dialogController = dialogController; |
|
} |
|
} |
|
} |
|
|
|
} |