From cc8762747d9c93b62697c7ee2c35d98a85da8ffe Mon Sep 17 00:00:00 2001 From: chrisgregan Date: Mon, 30 Mar 2015 11:05:11 +0100 Subject: [PATCH] Split Fungus create menu items into groups --- Assets/Fungus/Camera/Editor/CameraMenuItems.cs | 2 +- .../FungusScript/Editor/FungusScriptMenuItems.cs | 2 +- ...{DialogMenuItems.cs => NarrativeMenuItems.cs} | 16 ++++++++-------- ...uItems.cs.meta => NarrativeMenuItems.cs.meta} | 0 Assets/Fungus/Sprite/Editor/SpriteMenuItems.cs | 8 ++++---- 5 files changed, 14 insertions(+), 14 deletions(-) rename Assets/Fungus/Narrative/Editor/{DialogMenuItems.cs => NarrativeMenuItems.cs} (65%) rename Assets/Fungus/Narrative/Editor/{DialogMenuItems.cs.meta => NarrativeMenuItems.cs.meta} (100%) diff --git a/Assets/Fungus/Camera/Editor/CameraMenuItems.cs b/Assets/Fungus/Camera/Editor/CameraMenuItems.cs index bdb58ab8..05652132 100644 --- a/Assets/Fungus/Camera/Editor/CameraMenuItems.cs +++ b/Assets/Fungus/Camera/Editor/CameraMenuItems.cs @@ -7,7 +7,7 @@ namespace Fungus public class CameraMenuItems { - [MenuItem("Tools/Fungus/Create/View")] + [MenuItem("Tools/Fungus/Create/View", false, 100)] static void CreateView() { FungusScriptMenuItems.SpawnPrefab("View"); diff --git a/Assets/Fungus/FungusScript/Editor/FungusScriptMenuItems.cs b/Assets/Fungus/FungusScript/Editor/FungusScriptMenuItems.cs index a8dab0ef..ab723947 100644 --- a/Assets/Fungus/FungusScript/Editor/FungusScriptMenuItems.cs +++ b/Assets/Fungus/FungusScript/Editor/FungusScriptMenuItems.cs @@ -8,7 +8,7 @@ namespace Fungus public class FungusScriptMenuItems { - [MenuItem("Tools/Fungus/Create/Fungus Script")] + [MenuItem("Tools/Fungus/Create/Fungus Script", false, 0)] static void CreateFungusScript() { SpawnPrefab("FungusScript"); diff --git a/Assets/Fungus/Narrative/Editor/DialogMenuItems.cs b/Assets/Fungus/Narrative/Editor/NarrativeMenuItems.cs similarity index 65% rename from Assets/Fungus/Narrative/Editor/DialogMenuItems.cs rename to Assets/Fungus/Narrative/Editor/NarrativeMenuItems.cs index 80cffc97..69bc4569 100644 --- a/Assets/Fungus/Narrative/Editor/DialogMenuItems.cs +++ b/Assets/Fungus/Narrative/Editor/NarrativeMenuItems.cs @@ -6,46 +6,46 @@ namespace Fungus { // The prefab names are prefixed with Fungus to avoid clashes with any other prefabs in the project - public class DialogMenuItems + public class NarrativeMenuItems { - [MenuItem("Tools/Fungus/Create/Character")] + [MenuItem("Tools/Fungus/Create/Character", false, 50)] static void CreateCharacter() { FungusScriptMenuItems.SpawnPrefab("Character"); } - [MenuItem("Tools/Fungus/Create/Say Dialog")] + [MenuItem("Tools/Fungus/Create/Say Dialog", false, 51)] static void CreateSayDialog() { FungusScriptMenuItems.SpawnPrefab("SayDialog"); } - [MenuItem("Tools/Fungus/Create/Menu Dialog")] + [MenuItem("Tools/Fungus/Create/Menu Dialog", false, 52)] static void CreateMenuDialog() { FungusScriptMenuItems.SpawnPrefab("MenuDialog"); } - [MenuItem("Tools/Fungus/Create/Tag")] + [MenuItem("Tools/Fungus/Create/Tag", false, 53)] static void CreateTag() { FungusScriptMenuItems.SpawnPrefab("Tag"); } - [MenuItem("Tools/Fungus/Create/Audio Tag")] + [MenuItem("Tools/Fungus/Create/Audio Tag", false, 54)] static void CreateAudioTag() { FungusScriptMenuItems.SpawnPrefab("AudioTag"); } - [MenuItem("Tools/Fungus/Create/Stage")] + [MenuItem("Tools/Fungus/Create/Stage", false, 55)] static void CreateStage() { FungusScriptMenuItems.SpawnPrefab("Stage"); } - [MenuItem("Tools/Fungus/Create/Stage Position")] + [MenuItem("Tools/Fungus/Create/Stage Position", false, 56)] static void CreateStagePosition() { FungusScriptMenuItems.SpawnPrefab("StagePosition"); diff --git a/Assets/Fungus/Narrative/Editor/DialogMenuItems.cs.meta b/Assets/Fungus/Narrative/Editor/NarrativeMenuItems.cs.meta similarity index 100% rename from Assets/Fungus/Narrative/Editor/DialogMenuItems.cs.meta rename to Assets/Fungus/Narrative/Editor/NarrativeMenuItems.cs.meta diff --git a/Assets/Fungus/Sprite/Editor/SpriteMenuItems.cs b/Assets/Fungus/Sprite/Editor/SpriteMenuItems.cs index a519a232..70fc6a1d 100644 --- a/Assets/Fungus/Sprite/Editor/SpriteMenuItems.cs +++ b/Assets/Fungus/Sprite/Editor/SpriteMenuItems.cs @@ -7,25 +7,25 @@ namespace Fungus public class SpriteMenuItems { - [MenuItem("Tools/Fungus/Create/Clickable Sprite")] + [MenuItem("Tools/Fungus/Create/Clickable Sprite", false, 150)] static void CreateClickableSprite() { FungusScriptMenuItems.SpawnPrefab("ClickableSprite"); } - [MenuItem("Tools/Fungus/Create/Draggable Sprite")] + [MenuItem("Tools/Fungus/Create/Draggable Sprite", false, 151)] static void CreateDraggableSprite() { FungusScriptMenuItems.SpawnPrefab("DraggableSprite"); } - [MenuItem("Tools/Fungus/Create/Drag Target Sprite")] + [MenuItem("Tools/Fungus/Create/Drag Target Sprite", false, 152)] static void CreateDragTargetSprite() { FungusScriptMenuItems.SpawnPrefab("DragTargetSprite"); } - [MenuItem("Tools/Fungus/Create/Parallax Sprite")] + [MenuItem("Tools/Fungus/Create/Parallax Sprite", false, 152)] static void CreateParallaxSprite() { FungusScriptMenuItems.SpawnPrefab("ParallaxSprite");