chrisgregan
11 years ago
2 changed files with 39 additions and 0 deletions
@ -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<DialogController>(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; |
||||
} |
||||
} |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue