Browse Source

Tidied up editor using statements.

master
Christopher 9 years ago
parent
commit
5495ed8ebf
  1. 8
      Assets/Fungus/Audio/Editor/ControlAudioEditor.cs
  2. 2
      Assets/Fungus/Camera/Editor/CameraMenuItems.cs
  3. 3
      Assets/Fungus/Camera/Editor/ViewEditor.cs
  4. 1
      Assets/Fungus/Flowchart/Editor/BlockEditor.cs
  5. 1
      Assets/Fungus/Flowchart/Editor/BlockInspector.cs
  6. 2
      Assets/Fungus/Flowchart/Editor/CallEditor.cs
  7. 3
      Assets/Fungus/Flowchart/Editor/CommandEditor.cs
  8. 2
      Assets/Fungus/Flowchart/Editor/CommandListAdaptor.cs
  9. 4
      Assets/Fungus/Flowchart/Editor/CustomGUI.cs
  10. 2
      Assets/Fungus/Flowchart/Editor/EditorExtensions.cs
  11. 1
      Assets/Fungus/Flowchart/Editor/EditorZoomArea.cs
  12. 4
      Assets/Fungus/Flowchart/Editor/EventHandlerEditor.cs
  13. 2
      Assets/Fungus/Flowchart/Editor/FlowchartEditor.cs
  14. 3
      Assets/Fungus/Flowchart/Editor/FlowchartMenuItems.cs
  15. 1
      Assets/Fungus/Flowchart/Editor/FlowchartWindow.cs
  16. 1
      Assets/Fungus/Flowchart/Editor/FungusEditorResources.cs
  17. 3
      Assets/Fungus/Flowchart/Editor/GLDraw.cs
  18. 3
      Assets/Fungus/Flowchart/Editor/IfEditor.cs
  19. 3
      Assets/Fungus/Flowchart/Editor/InvokeEventEditor.cs
  20. 2
      Assets/Fungus/Flowchart/Editor/InvokeMethodEditor.cs
  21. 4
      Assets/Fungus/Flowchart/Editor/LabelEditor.cs
  22. 1
      Assets/Fungus/Flowchart/Editor/SetVariableEditor.cs
  23. 2
      Assets/Fungus/Flowchart/Editor/VariableEditor.cs
  24. 3
      Assets/Fungus/Narrative/Editor/CharacterEditor.cs
  25. 4
      Assets/Fungus/Narrative/Editor/LocalizationEditor.cs
  26. 4
      Assets/Fungus/Narrative/Editor/MenuEditor.cs
  27. 3
      Assets/Fungus/Narrative/Editor/MenuTimerEditor.cs
  28. 2
      Assets/Fungus/Narrative/Editor/NarrativeMenuItems.cs
  29. 9
      Assets/Fungus/Narrative/Editor/PortraitEditor.cs
  30. 4
      Assets/Fungus/Narrative/Editor/SayEditor.cs
  31. 9
      Assets/Fungus/Narrative/Editor/StageEditor.cs
  32. 2
      Assets/Fungus/Sprite/Editor/SetColliderEditor.cs
  33. 3
      Assets/Fungus/Sprite/Editor/SpriteMenuItems.cs
  34. 1
      Assets/Fungus/Thirdparty/FungusLua/Scripts/Editor/DropDownControl.cs
  35. 3
      Assets/Fungus/Thirdparty/FungusLua/Scripts/Editor/ExecuteHandlerEditor.cs
  36. 2
      Assets/Fungus/Thirdparty/FungusLua/Scripts/Editor/LuaBindingsEditor.cs
  37. 5
      Assets/Fungus/Thirdparty/FungusLua/Scripts/Editor/LuaScriptEditor.cs
  38. 3
      Assets/Fungus/Thirdparty/FungusLua/Scripts/Editor/LuaStoreEditor.cs
  39. 6
      Assets/Fungus/Thirdparty/FungusLua/Scripts/Editor/LuaUtilsEditor.cs
  40. 2
      Assets/Fungus/Thirdparty/FungusLua/Scripts/Editor/MenuItems.cs
  41. 4
      Assets/Fungus/UI/Editor/WriteEditor.cs
  42. 4
      Assets/Fungus/UI/Editor/WriterAudioEditor.cs

8
Assets/Fungus/Audio/Editor/ControlAudioEditor.cs

@ -2,15 +2,7 @@
// It is released for free under the MIT open source license (https://github.com/snozbot/fungus/blob/master/LICENSE)
using UnityEditor;
using UnityEditorInternal;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Events;
using System;
using System.Collections;
using System.Collections.Generic;
using Rotorz.ReorderableList;
namespace Fungus
{

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

@ -3,11 +3,9 @@
using UnityEngine;
using UnityEditor;
using System.Collections;
namespace Fungus
{
public class CameraMenuItems
{
[MenuItem("Tools/Fungus/Create/View", false, 100)]

3
Assets/Fungus/Camera/Editor/ViewEditor.cs

@ -3,12 +3,9 @@
using UnityEditor;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
namespace Fungus
{
[CanEditMultipleObjects]
[CustomEditor (typeof(View))]
public class ViewEditor : Editor

1
Assets/Fungus/Flowchart/Editor/BlockEditor.cs

@ -15,7 +15,6 @@ using System.Reflection;
namespace Fungus
{
[CustomEditor (typeof(Block))]
public class BlockEditor : Editor
{

1
Assets/Fungus/Flowchart/Editor/BlockInspector.cs

@ -4,7 +4,6 @@
using UnityEngine;
using UnityEngine.Serialization;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
using System.Linq;

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

@ -3,8 +3,6 @@
using UnityEditor;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
namespace Fungus
{

3
Assets/Fungus/Flowchart/Editor/CommandEditor.cs

@ -1,11 +1,8 @@
// This code is part of the Fungus library (http://fungusgames.com) maintained by Chris Gregan (http://twitter.com/gofungus).
// It is released for free under the MIT open source license (https://github.com/snozbot/fungus/blob/master/LICENSE)
using UnityEditor;
using UnityEditorInternal;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using Rotorz.ReorderableList;

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

@ -8,8 +8,6 @@
using UnityEngine;
using UnityEditor;
using System;
using System.Collections.Generic;
using System.Linq;
using Rotorz.ReorderableList;
namespace Fungus

4
Assets/Fungus/Flowchart/Editor/CustomGUI.cs

@ -2,10 +2,6 @@
// It is released for free under the MIT open source license (https://github.com/snozbot/fungus/blob/master/LICENSE)
using UnityEngine;
using UnityEngine.Internal;
using UnityEditor;
using System;
using System.Reflection;
namespace Fungus
{

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

@ -2,13 +2,11 @@
// It is released for free under the MIT open source license (https://github.com/snozbot/fungus/blob/master/LICENSE)
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace Fungus
{
public static class EditorExtensions
{
/// <summary>

1
Assets/Fungus/Flowchart/Editor/EditorZoomArea.cs

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

4
Assets/Fungus/Flowchart/Editor/EventHandlerEditor.cs

@ -2,14 +2,10 @@
// It is released for free under the MIT open source license (https://github.com/snozbot/fungus/blob/master/LICENSE)
using UnityEditor;
using UnityEditorInternal;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
namespace Fungus
{
[CustomEditor (typeof(EventHandler), true)]
public class EventHandlerEditor : Editor
{

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

@ -3,12 +3,10 @@
using UnityEditor;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using Rotorz.ReorderableList;
using System.Linq;
using System.Reflection;
using System.IO;
namespace Fungus
{

3
Assets/Fungus/Flowchart/Editor/FlowchartMenuItems.cs

@ -3,12 +3,9 @@
using UnityEngine;
using UnityEditor;
using System.IO;
using System.Collections;
namespace Fungus
{
public class FlowchartMenuItems
{
[MenuItem("Tools/Fungus/Create/Flowchart", false, 0)]

1
Assets/Fungus/Flowchart/Editor/FlowchartWindow.cs

@ -6,7 +6,6 @@ using UnityEditor;
using UnityEditorInternal;
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
namespace Fungus

1
Assets/Fungus/Flowchart/Editor/FungusEditorResources.cs

@ -7,7 +7,6 @@ using System;
namespace Fungus
{
internal static class FungusEditorResources
{

3
Assets/Fungus/Flowchart/Editor/GLDraw.cs

@ -2,12 +2,9 @@
// It is released for free under the MIT open source license (https://github.com/snozbot/fungus/blob/master/LICENSE)
using UnityEngine;
using System.Collections;
using System;
namespace Fungus
{
/// <summary>
/// Clipping code: http://forum.unity3d.com/threads/17066-How-to-draw-a-GUI-2D-quot-line-quot?p=230386#post230386
/// Thick line drawing code: http://unifycommunity.com/wiki/index.php?title=VectorLine

3
Assets/Fungus/Flowchart/Editor/IfEditor.cs

@ -3,13 +3,10 @@
using UnityEditor;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
namespace Fungus
{
[CustomEditor (typeof(If), true)]
public class IfEditor : CommandEditor
{

3
Assets/Fungus/Flowchart/Editor/InvokeEventEditor.cs

@ -2,9 +2,6 @@
// It is released for free under the MIT open source license (https://github.com/snozbot/fungus/blob/master/LICENSE)
using UnityEditor;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
namespace Fungus
{

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

@ -8,11 +8,9 @@ using System.Linq;
using System.Reflection;
using System;
using System.Collections.Generic;
using System.Text;
namespace Fungus
{
[CustomEditor(typeof(InvokeMethod))]
public class InvokeMethodEditor : CommandEditor
{

4
Assets/Fungus/Flowchart/Editor/LabelEditor.cs

@ -2,12 +2,8 @@
// It is released for free under the MIT open source license (https://github.com/snozbot/fungus/blob/master/LICENSE)
using UnityEditor;
using UnityEditorInternal;
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace Fungus
{

1
Assets/Fungus/Flowchart/Editor/SetVariableEditor.cs

@ -3,7 +3,6 @@
using UnityEditor;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
namespace Fungus

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

@ -2,10 +2,8 @@
// It is released for free under the MIT open source license (https://github.com/snozbot/fungus/blob/master/LICENSE)
using UnityEditor;
using UnityEditorInternal;
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;

3
Assets/Fungus/Narrative/Editor/CharacterEditor.cs

@ -3,13 +3,10 @@
using UnityEditor;
using UnityEngine;
using System.Collections;
using Rotorz.ReorderableList;
using System.Collections.Generic;
namespace Fungus
{
[CustomEditor (typeof(Character))]
public class CharacterEditor : Editor
{

4
Assets/Fungus/Narrative/Editor/LocalizationEditor.cs

@ -3,14 +3,10 @@
using UnityEditor;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using Rotorz.ReorderableList;
namespace Fungus
{
[CustomEditor(typeof(Localization))]
public class LocalizationEditor : Editor
{

4
Assets/Fungus/Narrative/Editor/MenuEditor.cs

@ -3,13 +3,9 @@
using UnityEditor;
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
namespace Fungus
{
[CustomEditor (typeof(Fungus.Menu))]
public class MenuEditor : CommandEditor
{

3
Assets/Fungus/Narrative/Editor/MenuTimerEditor.cs

@ -3,9 +3,6 @@
using UnityEditor;
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
namespace Fungus
{

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

@ -3,11 +3,9 @@
using UnityEngine;
using UnityEditor;
using System.Collections;
namespace Fungus
{
// The prefab names are prefixed with Fungus to avoid clashes with any other prefabs in the project
public class NarrativeMenuItems
{

9
Assets/Fungus/Narrative/Editor/PortraitEditor.cs

@ -2,19 +2,10 @@
// It is released for free under the MIT open source license (https://github.com/snozbot/fungus/blob/master/LICENSE)
using UnityEditor;
using UnityEditorInternal;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Events;
using System;
using System.Collections;
using System.Collections.Generic;
using Rotorz.ReorderableList;
namespace Fungus
{
[CustomEditor (typeof(Portrait))]
public class PortraitEditor : CommandEditor
{

4
Assets/Fungus/Narrative/Editor/SayEditor.cs

@ -2,15 +2,11 @@
// It is released for free under the MIT open source license (https://github.com/snozbot/fungus/blob/master/LICENSE)
using UnityEditor;
using UnityEditorInternal;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using Rotorz.ReorderableList;
namespace Fungus
{
[CustomEditor (typeof(Say))]
public class SayEditor : CommandEditor
{

9
Assets/Fungus/Narrative/Editor/StageEditor.cs

@ -2,19 +2,10 @@
// It is released for free under the MIT open source license (https://github.com/snozbot/fungus/blob/master/LICENSE)
using UnityEditor;
using UnityEditorInternal;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Events;
using System;
using System.Collections;
using System.Collections.Generic;
using Rotorz.ReorderableList;
namespace Fungus
{
[CustomEditor (typeof(ControlStage))]
public class StageEditor : CommandEditor
{

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

@ -3,8 +3,6 @@
using UnityEditor;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using Rotorz.ReorderableList;
namespace Fungus

3
Assets/Fungus/Sprite/Editor/SpriteMenuItems.cs

@ -1,13 +1,10 @@
// This code is part of the Fungus library (http://fungusgames.com) maintained by Chris Gregan (http://twitter.com/gofungus).
// It is released for free under the MIT open source license (https://github.com/snozbot/fungus/blob/master/LICENSE)
using UnityEngine;
using UnityEditor;
using System.Collections;
namespace Fungus
{
public class SpriteMenuItems
{
[MenuItem("Tools/Fungus/Create/Clickable Sprite", false, 150)]

1
Assets/Fungus/Thirdparty/FungusLua/Scripts/Editor/DropDownControl.cs vendored

@ -5,7 +5,6 @@
// https://bitbucket.org/Unity-Technologies/unitytesttools/src/a30d562427e9/Assets/UnityTestTools/
using System;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;

3
Assets/Fungus/Thirdparty/FungusLua/Scripts/Editor/ExecuteHandlerEditor.cs vendored

@ -5,15 +5,12 @@
// https://bitbucket.org/Unity-Technologies/unitytesttools/src/a30d562427e9/Assets/UnityTestTools/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using UnityEditor;
using UnityEngine;
namespace Fungus
{
[CustomEditor(typeof(ExecuteHandler))]
public class ExecuteHandlerEditor : Editor
{

2
Assets/Fungus/Thirdparty/FungusLua/Scripts/Editor/LuaBindingsEditor.cs vendored

@ -8,12 +8,10 @@ using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.IO;
using UnityEditor.Callbacks;
namespace Fungus
{
[CustomEditor (typeof(LuaBindings))]
public class LuaBindingsEditor : Editor
{

5
Assets/Fungus/Thirdparty/FungusLua/Scripts/Editor/LuaScriptEditor.cs vendored

@ -2,14 +2,9 @@
// It is released for free under the MIT open source license (https://github.com/snozbot/fungus/blob/master/LICENSE)
using UnityEditor;
using UnityEditorInternal;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
namespace Fungus
{
[CustomEditor (typeof(LuaScript))]
public class LuaScriptEditor : Editor
{

3
Assets/Fungus/Thirdparty/FungusLua/Scripts/Editor/LuaStoreEditor.cs vendored

@ -3,13 +3,10 @@
using UnityEngine;
using UnityEditor;
using System.Collections;
using MoonSharp.Interpreter;
using MoonSharp.Interpreter.Serialization;
namespace Fungus
{
[CustomEditor(typeof(LuaStore))]
public class LuaStoreEditor : Editor
{

6
Assets/Fungus/Thirdparty/FungusLua/Scripts/Editor/LuaUtilsEditor.cs vendored

@ -4,11 +4,6 @@
using UnityEditor;
using UnityEditorInternal;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.IO;
namespace Fungus
{
@ -67,5 +62,4 @@ namespace Fungus
serializedObject.ApplyModifiedProperties();
}
}
}

2
Assets/Fungus/Thirdparty/FungusLua/Scripts/Editor/MenuItems.cs vendored

@ -4,11 +4,9 @@
using UnityEngine;
using UnityEditor;
using System.IO;
using System.Collections;
namespace Fungus
{
public class MenuItems
{
[MenuItem("Tools/Fungus/Create/Lua", false, 2000)]

4
Assets/Fungus/UI/Editor/WriteEditor.cs

@ -2,14 +2,10 @@
// It is released for free under the MIT open source license (https://github.com/snozbot/fungus/blob/master/LICENSE)
using UnityEditor;
using UnityEditorInternal;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
namespace Fungus
{
[CustomEditor (typeof(Write))]
public class WriteEditor : CommandEditor
{

4
Assets/Fungus/UI/Editor/WriterAudioEditor.cs

@ -2,15 +2,11 @@
// It is released for free under the MIT open source license (https://github.com/snozbot/fungus/blob/master/LICENSE)
using UnityEditor;
using UnityEditorInternal;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using Rotorz.ReorderableList;
namespace Fungus
{
[CustomEditor (typeof(WriterAudio))]
public class WriterAudioEditor : Editor
{

Loading…
Cancel
Save