Browse Source

Moved all Fungus editor code to Fungus.EditorUtils namespace

master
Christopher 8 years ago
parent
commit
cf7b1e8ca3
  1. 2
      Assets/Fungus/Scripts/Editor/AssetModProcessor.cs
  2. 2
      Assets/Fungus/Scripts/Editor/BlockEditor.cs
  3. 2
      Assets/Fungus/Scripts/Editor/BlockInspector.cs
  4. 2
      Assets/Fungus/Scripts/Editor/CallEditor.cs
  5. 2
      Assets/Fungus/Scripts/Editor/CameraMenuItems.cs
  6. 2
      Assets/Fungus/Scripts/Editor/CharacterEditor.cs
  7. 2
      Assets/Fungus/Scripts/Editor/CommandEditor.cs
  8. 2
      Assets/Fungus/Scripts/Editor/CommandListAdaptor.cs
  9. 2
      Assets/Fungus/Scripts/Editor/ControlAudioEditor.cs
  10. 2
      Assets/Fungus/Scripts/Editor/CustomGUI.cs
  11. 2
      Assets/Fungus/Scripts/Editor/DialogInputEditor.cs
  12. 2
      Assets/Fungus/Scripts/Editor/EditorExtensions.cs
  13. 2
      Assets/Fungus/Scripts/Editor/EditorZoomArea.cs
  14. 2
      Assets/Fungus/Scripts/Editor/EventHandlerEditor.cs
  15. 2
      Assets/Fungus/Scripts/Editor/FlowchartEditor.cs
  16. 2
      Assets/Fungus/Scripts/Editor/FlowchartMenuItems.cs
  17. 2
      Assets/Fungus/Scripts/Editor/FlowchartWindow.cs
  18. 2
      Assets/Fungus/Scripts/Editor/FungusEditorResources.cs
  19. 2
      Assets/Fungus/Scripts/Editor/GLDraw.cs
  20. 2
      Assets/Fungus/Scripts/Editor/IfEditor.cs
  21. 2
      Assets/Fungus/Scripts/Editor/InvokeEventEditor.cs
  22. 2
      Assets/Fungus/Scripts/Editor/InvokeMethodEditor.cs
  23. 2
      Assets/Fungus/Scripts/Editor/LabelEditor.cs
  24. 2
      Assets/Fungus/Scripts/Editor/LocalizationEditor.cs
  25. 2
      Assets/Fungus/Scripts/Editor/MenuEditor.cs
  26. 2
      Assets/Fungus/Scripts/Editor/MenuTimerEditor.cs
  27. 2
      Assets/Fungus/Scripts/Editor/NarrativeMenuItems.cs
  28. 2
      Assets/Fungus/Scripts/Editor/PortraitEditor.cs
  29. 2
      Assets/Fungus/Scripts/Editor/SayEditor.cs
  30. 2
      Assets/Fungus/Scripts/Editor/SerializedPropertyExtensions.cs
  31. 2
      Assets/Fungus/Scripts/Editor/SetColliderEditor.cs
  32. 2
      Assets/Fungus/Scripts/Editor/SetVariableEditor.cs
  33. 2
      Assets/Fungus/Scripts/Editor/SpriteMenuItems.cs
  34. 2
      Assets/Fungus/Scripts/Editor/StageEditor.cs
  35. 2
      Assets/Fungus/Scripts/Editor/VariableEditor.cs
  36. 2
      Assets/Fungus/Scripts/Editor/VariableListAdaptor.cs
  37. 2
      Assets/Fungus/Scripts/Editor/ViewEditor.cs
  38. 2
      Assets/Fungus/Scripts/Editor/WriteEditor.cs
  39. 2
      Assets/Fungus/Scripts/Editor/WriterAudioEditor.cs

2
Assets/Fungus/Scripts/Editor/AssetModProcessor.cs

@ -3,7 +3,7 @@
using System.IO; using System.IO;
namespace Fungus namespace Fungus.EditorUtils
{ {
/// <summary> /// <summary>
/// Prevents saving of selected blocks and commands to avoid version control conflicts. /// Prevents saving of selected blocks and commands to avoid version control conflicts.

2
Assets/Fungus/Scripts/Editor/BlockEditor.cs

@ -13,7 +13,7 @@ using Rotorz.ReorderableList;
using System.IO; using System.IO;
using System.Reflection; using System.Reflection;
namespace Fungus namespace Fungus.EditorUtils
{ {
[CustomEditor (typeof(Block))] [CustomEditor (typeof(Block))]
public class BlockEditor : Editor public class BlockEditor : Editor

2
Assets/Fungus/Scripts/Editor/BlockInspector.cs

@ -7,7 +7,7 @@ using UnityEditor;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
namespace Fungus namespace Fungus.EditorUtils
{ {
/// <summary> /// <summary>
/// Temp hidden object which lets us use the entire inspector window to inspect the block command list. /// Temp hidden object which lets us use the entire inspector window to inspect the block command list.

2
Assets/Fungus/Scripts/Editor/CallEditor.cs

@ -5,7 +5,7 @@ using UnityEditor;
using UnityEngine; using UnityEngine;
using Fungus.Commands; using Fungus.Commands;
namespace Fungus namespace Fungus.EditorUtils
{ {
[CustomEditor (typeof(Call))] [CustomEditor (typeof(Call))]
public class CallEditor : CommandEditor public class CallEditor : CommandEditor

2
Assets/Fungus/Scripts/Editor/CameraMenuItems.cs

@ -4,7 +4,7 @@
using UnityEngine; using UnityEngine;
using UnityEditor; using UnityEditor;
namespace Fungus namespace Fungus.EditorUtils
{ {
public class CameraMenuItems public class CameraMenuItems
{ {

2
Assets/Fungus/Scripts/Editor/CharacterEditor.cs

@ -5,7 +5,7 @@ using UnityEditor;
using UnityEngine; using UnityEngine;
using Rotorz.ReorderableList; using Rotorz.ReorderableList;
namespace Fungus namespace Fungus.EditorUtils
{ {
[CustomEditor (typeof(Character))] [CustomEditor (typeof(Character))]
public class CharacterEditor : Editor public class CharacterEditor : Editor

2
Assets/Fungus/Scripts/Editor/CommandEditor.cs

@ -6,7 +6,7 @@ using UnityEngine;
using System.Collections.Generic; using System.Collections.Generic;
using Rotorz.ReorderableList; using Rotorz.ReorderableList;
namespace Fungus namespace Fungus.EditorUtils
{ {
[CustomEditor (typeof(Command), true)] [CustomEditor (typeof(Command), true)]

2
Assets/Fungus/Scripts/Editor/CommandListAdaptor.cs

@ -12,7 +12,7 @@ using Rotorz.ReorderableList;
using Fungus.Commands; using Fungus.Commands;
using Fungus.Utils; using Fungus.Utils;
namespace Fungus namespace Fungus.EditorUtils
{ {
public class CommandListAdaptor : IReorderableListAdaptor { public class CommandListAdaptor : IReorderableListAdaptor {

2
Assets/Fungus/Scripts/Editor/ControlAudioEditor.cs

@ -5,7 +5,7 @@ using UnityEditor;
using UnityEngine; using UnityEngine;
using Fungus.Commands; using Fungus.Commands;
namespace Fungus namespace Fungus.EditorUtils
{ {
[CustomEditor (typeof(ControlAudio))] [CustomEditor (typeof(ControlAudio))]

2
Assets/Fungus/Scripts/Editor/CustomGUI.cs

@ -3,7 +3,7 @@
using UnityEngine; using UnityEngine;
namespace Fungus namespace Fungus.EditorUtils
{ {
/// <summary> /// <summary>
/// Utility functions for drawing custom UI in the editor. /// Utility functions for drawing custom UI in the editor.

2
Assets/Fungus/Scripts/Editor/DialogInputEditor.cs

@ -1,7 +1,7 @@
using UnityEngine; using UnityEngine;
using System.Collections; using System.Collections;
namespace Fungus namespace Fungus.EditorUtils
{ {
/// <summary> /// <summary>
/// Dummy class to avoid compile errors for users upgrading from Fungus 2 to Fungus 3 via unitypackage. /// Dummy class to avoid compile errors for users upgrading from Fungus 2 to Fungus 3 via unitypackage.

2
Assets/Fungus/Scripts/Editor/EditorExtensions.cs

@ -5,7 +5,7 @@ using UnityEngine;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
namespace Fungus namespace Fungus.EditorUtils
{ {
public static class EditorExtensions public static class EditorExtensions
{ {

2
Assets/Fungus/Scripts/Editor/EditorZoomArea.cs

@ -5,7 +5,7 @@
using UnityEngine; using UnityEngine;
namespace Fungus namespace Fungus.EditorUtils
{ {
// Helper Rect extension methods // Helper Rect extension methods
public static class RectExtensions public static class RectExtensions

2
Assets/Fungus/Scripts/Editor/EventHandlerEditor.cs

@ -4,7 +4,7 @@
using UnityEditor; using UnityEditor;
using UnityEngine; using UnityEngine;
namespace Fungus namespace Fungus.EditorUtils
{ {
[CustomEditor (typeof(EventHandler), true)] [CustomEditor (typeof(EventHandler), true)]
public class EventHandlerEditor : Editor public class EventHandlerEditor : Editor

2
Assets/Fungus/Scripts/Editor/FlowchartEditor.cs

@ -8,7 +8,7 @@ using Rotorz.ReorderableList;
using System.Linq; using System.Linq;
using System.Reflection; using System.Reflection;
namespace Fungus namespace Fungus.EditorUtils
{ {
[CustomEditor (typeof(Flowchart))] [CustomEditor (typeof(Flowchart))]
public class FlowchartEditor : Editor public class FlowchartEditor : Editor

2
Assets/Fungus/Scripts/Editor/FlowchartMenuItems.cs

@ -5,7 +5,7 @@
using UnityEditor; using UnityEditor;
using Fungus.Utils; using Fungus.Utils;
namespace Fungus namespace Fungus.EditorUtils
{ {
public class FlowchartMenuItems public class FlowchartMenuItems
{ {

2
Assets/Fungus/Scripts/Editor/FlowchartWindow.cs

@ -9,7 +9,7 @@ using System.Linq;
using System.Collections.Generic; using System.Collections.Generic;
using Fungus.Utils; using Fungus.Utils;
namespace Fungus namespace Fungus.EditorUtils
{ {
public class FlowchartWindow : EditorWindow public class FlowchartWindow : EditorWindow
{ {

2
Assets/Fungus/Scripts/Editor/FungusEditorResources.cs

@ -5,7 +5,7 @@
using UnityEditor; using UnityEditor;
using System; using System;
namespace Fungus namespace Fungus.EditorUtils
{ {
internal static class FungusEditorResources internal static class FungusEditorResources
{ {

2
Assets/Fungus/Scripts/Editor/GLDraw.cs

@ -3,7 +3,7 @@
using UnityEngine; using UnityEngine;
namespace Fungus namespace Fungus.EditorUtils
{ {
/// <summary> /// <summary>
/// Clipping code: http://forum.unity3d.com/threads/17066-How-to-draw-a-GUI-2D-quot-line-quot?p=230386#post230386 /// Clipping code: http://forum.unity3d.com/threads/17066-How-to-draw-a-GUI-2D-quot-line-quot?p=230386#post230386

2
Assets/Fungus/Scripts/Editor/IfEditor.cs

@ -7,7 +7,7 @@ using System.Collections.Generic;
using Fungus.Commands; using Fungus.Commands;
using Fungus.Variables; using Fungus.Variables;
namespace Fungus namespace Fungus.EditorUtils
{ {
[CustomEditor (typeof(If), true)] [CustomEditor (typeof(If), true)]
public class IfEditor : CommandEditor public class IfEditor : CommandEditor

2
Assets/Fungus/Scripts/Editor/InvokeEventEditor.cs

@ -4,7 +4,7 @@
using UnityEditor; using UnityEditor;
using Fungus.Commands; using Fungus.Commands;
namespace Fungus namespace Fungus.EditorUtils
{ {
[CustomEditor (typeof(InvokeEvent))] [CustomEditor (typeof(InvokeEvent))]
public class InvokeEventEditor : CommandEditor public class InvokeEventEditor : CommandEditor

2
Assets/Fungus/Scripts/Editor/InvokeMethodEditor.cs

@ -11,7 +11,7 @@ using System.Collections.Generic;
using Fungus.Commands; using Fungus.Commands;
using Fungus.Variables; using Fungus.Variables;
namespace Fungus namespace Fungus.EditorUtils
{ {
[CustomEditor(typeof(InvokeMethod))] [CustomEditor(typeof(InvokeMethod))]
public class InvokeMethodEditor : CommandEditor public class InvokeMethodEditor : CommandEditor

2
Assets/Fungus/Scripts/Editor/LabelEditor.cs

@ -6,7 +6,7 @@ using UnityEngine;
using System.Collections.Generic; using System.Collections.Generic;
using Fungus.Commands; using Fungus.Commands;
namespace Fungus namespace Fungus.EditorUtils
{ {
[CustomEditor (typeof(Label))] [CustomEditor (typeof(Label))]
public class LabelEditor : CommandEditor public class LabelEditor : CommandEditor

2
Assets/Fungus/Scripts/Editor/LocalizationEditor.cs

@ -5,7 +5,7 @@ using UnityEditor;
using UnityEngine; using UnityEngine;
using System.IO; using System.IO;
namespace Fungus namespace Fungus.EditorUtils
{ {
[CustomEditor(typeof(Localization))] [CustomEditor(typeof(Localization))]
public class LocalizationEditor : Editor public class LocalizationEditor : Editor

2
Assets/Fungus/Scripts/Editor/MenuEditor.cs

@ -5,7 +5,7 @@ using UnityEditor;
using UnityEngine; using UnityEngine;
using Fungus.Commands; using Fungus.Commands;
namespace Fungus namespace Fungus.EditorUtils
{ {
[CustomEditor (typeof(Fungus.Commands.Menu))] [CustomEditor (typeof(Fungus.Commands.Menu))]
public class MenuEditor : CommandEditor public class MenuEditor : CommandEditor

2
Assets/Fungus/Scripts/Editor/MenuTimerEditor.cs

@ -5,7 +5,7 @@ using UnityEditor;
using UnityEngine; using UnityEngine;
using Fungus.Commands; using Fungus.Commands;
namespace Fungus namespace Fungus.EditorUtils
{ {
[CustomEditor (typeof(MenuTimer))] [CustomEditor (typeof(MenuTimer))]
public class MenuTimerEditor : CommandEditor public class MenuTimerEditor : CommandEditor

2
Assets/Fungus/Scripts/Editor/NarrativeMenuItems.cs

@ -4,7 +4,7 @@
using UnityEngine; using UnityEngine;
using UnityEditor; using UnityEditor;
namespace Fungus namespace Fungus.EditorUtils
{ {
// The prefab names are prefixed with Fungus to avoid clashes with any other prefabs in the project // The prefab names are prefixed with Fungus to avoid clashes with any other prefabs in the project
public class NarrativeMenuItems public class NarrativeMenuItems

2
Assets/Fungus/Scripts/Editor/PortraitEditor.cs

@ -6,7 +6,7 @@ using UnityEngine;
using Fungus.Commands; using Fungus.Commands;
using Fungus.Utils; using Fungus.Utils;
namespace Fungus namespace Fungus.EditorUtils
{ {
[CustomEditor (typeof(Portrait))] [CustomEditor (typeof(Portrait))]
public class PortraitEditor : CommandEditor public class PortraitEditor : CommandEditor

2
Assets/Fungus/Scripts/Editor/SayEditor.cs

@ -7,7 +7,7 @@ using System.Collections.Generic;
using Fungus.Commands; using Fungus.Commands;
using Fungus.Utils; using Fungus.Utils;
namespace Fungus namespace Fungus.EditorUtils
{ {
[CustomEditor (typeof(Say))] [CustomEditor (typeof(Say))]
public class SayEditor : CommandEditor public class SayEditor : CommandEditor

2
Assets/Fungus/Scripts/Editor/SerializedPropertyExtensions.cs

@ -4,7 +4,7 @@
using UnityEditor; using UnityEditor;
using UnityEngine; using UnityEngine;
namespace Fungus namespace Fungus.EditorUtils
{ {
public static class SerializedPropertyExtensions public static class SerializedPropertyExtensions
{ {

2
Assets/Fungus/Scripts/Editor/SetColliderEditor.cs

@ -6,7 +6,7 @@ using UnityEngine;
using Rotorz.ReorderableList; using Rotorz.ReorderableList;
using Fungus.Commands; using Fungus.Commands;
namespace Fungus namespace Fungus.EditorUtils
{ {
[CustomEditor (typeof(SetCollider))] [CustomEditor (typeof(SetCollider))]
public class SetColliderEditor : CommandEditor public class SetColliderEditor : CommandEditor

2
Assets/Fungus/Scripts/Editor/SetVariableEditor.cs

@ -7,7 +7,7 @@ using System.Collections.Generic;
using Fungus.Commands; using Fungus.Commands;
using Fungus.Variables; using Fungus.Variables;
namespace Fungus namespace Fungus.EditorUtils
{ {
[CustomEditor (typeof(SetVariable))] [CustomEditor (typeof(SetVariable))]

2
Assets/Fungus/Scripts/Editor/SpriteMenuItems.cs

@ -3,7 +3,7 @@
using UnityEditor; using UnityEditor;
namespace Fungus namespace Fungus.EditorUtils
{ {
public class SpriteMenuItems public class SpriteMenuItems
{ {

2
Assets/Fungus/Scripts/Editor/StageEditor.cs

@ -6,7 +6,7 @@ using UnityEngine;
using Fungus.Commands; using Fungus.Commands;
using Fungus.Utils; using Fungus.Utils;
namespace Fungus namespace Fungus.EditorUtils
{ {
[CustomEditor (typeof(ControlStage))] [CustomEditor (typeof(ControlStage))]
public class StageEditor : CommandEditor public class StageEditor : CommandEditor

2
Assets/Fungus/Scripts/Editor/VariableEditor.cs

@ -8,7 +8,7 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using Fungus.Variables; using Fungus.Variables;
namespace Fungus namespace Fungus.EditorUtils
{ {
[CustomEditor (typeof(Variable), true)] [CustomEditor (typeof(Variable), true)]
public class VariableEditor : CommandEditor public class VariableEditor : CommandEditor

2
Assets/Fungus/Scripts/Editor/VariableListAdaptor.cs

@ -10,7 +10,7 @@ using UnityEditor;
using System; using System;
using Rotorz.ReorderableList; using Rotorz.ReorderableList;
namespace Fungus namespace Fungus.EditorUtils
{ {
public class VariableListAdaptor : IReorderableListAdaptor { public class VariableListAdaptor : IReorderableListAdaptor {

2
Assets/Fungus/Scripts/Editor/ViewEditor.cs

@ -5,7 +5,7 @@ using UnityEditor;
using UnityEngine; using UnityEngine;
using Fungus.Commands; using Fungus.Commands;
namespace Fungus namespace Fungus.EditorUtils
{ {
[CanEditMultipleObjects] [CanEditMultipleObjects]
[CustomEditor (typeof(View))] [CustomEditor (typeof(View))]

2
Assets/Fungus/Scripts/Editor/WriteEditor.cs

@ -6,7 +6,7 @@ using UnityEngine;
using Fungus.Commands; using Fungus.Commands;
using Fungus.Utils; using Fungus.Utils;
namespace Fungus namespace Fungus.EditorUtils
{ {
[CustomEditor (typeof(Write))] [CustomEditor (typeof(Write))]
public class WriteEditor : CommandEditor public class WriteEditor : CommandEditor

2
Assets/Fungus/Scripts/Editor/WriterAudioEditor.cs

@ -5,7 +5,7 @@ using UnityEditor;
using UnityEngine; using UnityEngine;
using Rotorz.ReorderableList; using Rotorz.ReorderableList;
namespace Fungus namespace Fungus.EditorUtils
{ {
[CustomEditor (typeof(WriterAudio))] [CustomEditor (typeof(WriterAudio))]
public class WriterAudioEditor : Editor public class WriterAudioEditor : Editor

Loading…
Cancel
Save