Browse Source

Move Fungus menu items to Tools / Fungus #93

master
chrisgregan 10 years ago
parent
commit
810131fa9d
  1. 2
      Assets/Fungus/Camera/Editor/CameraMenuItems.cs
  2. 14
      Assets/Fungus/Dialog/Editor/DialogMenuItems.cs
  3. 2
      Assets/Fungus/FungusScript/Editor/FungusScriptMenuItems.cs
  4. 2
      Assets/Fungus/FungusScript/Editor/FungusScriptWindow.cs
  5. 2
      Assets/Fungus/FungusScript/Editor/SequenceEditor.cs
  6. 1
      Assets/Fungus/FungusScript/Scripts/FungusScript.cs
  7. 8
      Assets/Fungus/Sprite/Editor/SpriteMenuItems.cs
  8. 2
      Assets/Fungus/Thirdparty/Usfxr/Editor/SfxrGenerator.cs

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

@ -7,7 +7,7 @@ namespace Fungus
public class CameraMenuItems public class CameraMenuItems
{ {
[MenuItem("GameObject/Fungus/Camera/View")] [MenuItem("Tools/Fungus/Create/View")]
static void CreateView() static void CreateView()
{ {
FungusScriptMenuItems.SpawnPrefab("View"); FungusScriptMenuItems.SpawnPrefab("View");

14
Assets/Fungus/Dialog/Editor/DialogMenuItems.cs

@ -9,43 +9,43 @@ namespace Fungus
public class DialogMenuItems public class DialogMenuItems
{ {
[MenuItem("GameObject/Fungus/Dialog/Character")] [MenuItem("Tools/Fungus/Create/Character")]
static void CreateCharacter() static void CreateCharacter()
{ {
FungusScriptMenuItems.SpawnPrefab("Character"); FungusScriptMenuItems.SpawnPrefab("Character");
} }
[MenuItem("GameObject/Fungus/Dialog/SayDialog")] [MenuItem("Tools/Fungus/Create/Say Dialog")]
static void CreateSayDialog() static void CreateSayDialog()
{ {
FungusScriptMenuItems.SpawnPrefab("SayDialog"); FungusScriptMenuItems.SpawnPrefab("SayDialog");
} }
[MenuItem("GameObject/Fungus/Dialog/MenuDialog")] [MenuItem("Tools/Fungus/Create/Menu Dialog")]
static void CreateMenuDialog() static void CreateMenuDialog()
{ {
FungusScriptMenuItems.SpawnPrefab("MenuDialog"); FungusScriptMenuItems.SpawnPrefab("MenuDialog");
} }
[MenuItem("GameObject/Fungus/Dialog/Tag")] [MenuItem("Tools/Fungus/Create/Tag")]
static void CreateTag() static void CreateTag()
{ {
FungusScriptMenuItems.SpawnPrefab("Tag"); FungusScriptMenuItems.SpawnPrefab("Tag");
} }
[MenuItem("GameObject/Fungus/Dialog/AudioTag")] [MenuItem("Tools/Fungus/Create/Audio Tag")]
static void CreateAudioTag() static void CreateAudioTag()
{ {
FungusScriptMenuItems.SpawnPrefab("AudioTag"); FungusScriptMenuItems.SpawnPrefab("AudioTag");
} }
[MenuItem("GameObject/Fungus/Portrait/Stage")] [MenuItem("Tools/Fungus/Create/Stage")]
static void CreateStage() static void CreateStage()
{ {
FungusScriptMenuItems.SpawnPrefab("Stage"); FungusScriptMenuItems.SpawnPrefab("Stage");
} }
[MenuItem("GameObject/Fungus/Portrait/StagePosition")] [MenuItem("Tools/Fungus/Create/Stage Position")]
static void CreateStagePosition() static void CreateStagePosition()
{ {
FungusScriptMenuItems.SpawnPrefab("StagePosition"); FungusScriptMenuItems.SpawnPrefab("StagePosition");

2
Assets/Fungus/FungusScript/Editor/FungusScriptMenuItems.cs

@ -8,7 +8,7 @@ namespace Fungus
public class FungusScriptMenuItems public class FungusScriptMenuItems
{ {
[MenuItem("GameObject/Fungus/Fungus Script")] [MenuItem("Tools/Fungus/Create/Fungus Script")]
static void CreateFungusScript() static void CreateFungusScript()
{ {
SpawnPrefab("FungusScript"); SpawnPrefab("FungusScript");

2
Assets/Fungus/FungusScript/Editor/FungusScriptWindow.cs

@ -30,7 +30,7 @@ namespace Fungus
protected int forceRepaintCount; protected int forceRepaintCount;
[MenuItem("Window/Fungus Script")] [MenuItem("Tools/Fungus/Show Fungus Script")]
static void Init() static void Init()
{ {
GetWindow(typeof(FungusScriptWindow), false, "Fungus Script"); GetWindow(typeof(FungusScriptWindow), false, "Fungus Script");

2
Assets/Fungus/FungusScript/Editor/SequenceEditor.cs

@ -468,7 +468,7 @@ namespace Fungus
return compare; return compare;
} }
[MenuItem("Tools/Fungus/Export Class Info")] [MenuItem("Tools/Fungus/Utilities/Export Class Info")]
protected static void DumpFungusClassInfo() protected static void DumpFungusClassInfo()
{ {
string path = EditorUtility.SaveFilePanel("Export strings", "", string path = EditorUtility.SaveFilePanel("Export strings", "",

1
Assets/Fungus/FungusScript/Scripts/FungusScript.cs

@ -13,7 +13,6 @@ namespace Fungus
* FungusScript objects may be edited visually using the Fungus Script editor window. * FungusScript objects may be edited visually using the Fungus Script editor window.
*/ */
[ExecuteInEditMode] [ExecuteInEditMode]
[AddComponentMenu("Fungus/Fungus Script")]
public class FungusScript : MonoBehaviour public class FungusScript : MonoBehaviour
{ {
/** /**

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

@ -7,25 +7,25 @@ namespace Fungus
public class SpriteMenuItems public class SpriteMenuItems
{ {
[MenuItem("GameObject/Fungus/Sprite/ClickableSprite")] [MenuItem("Tools/Fungus/Create/Clickable Sprite")]
static void CreateClickableSprite() static void CreateClickableSprite()
{ {
FungusScriptMenuItems.SpawnPrefab("ClickableSprite"); FungusScriptMenuItems.SpawnPrefab("ClickableSprite");
} }
[MenuItem("GameObject/Fungus/Sprite/DraggableSprite")] [MenuItem("Tools/Fungus/Create/Draggable Sprite")]
static void CreateDraggableSprite() static void CreateDraggableSprite()
{ {
FungusScriptMenuItems.SpawnPrefab("DraggableSprite"); FungusScriptMenuItems.SpawnPrefab("DraggableSprite");
} }
[MenuItem("GameObject/Fungus/Sprite/DragTargetSprite")] [MenuItem("Tools/Fungus/Create/Drag Target Sprite")]
static void CreateDragTargetSprite() static void CreateDragTargetSprite()
{ {
FungusScriptMenuItems.SpawnPrefab("DragTargetSprite"); FungusScriptMenuItems.SpawnPrefab("DragTargetSprite");
} }
[MenuItem("GameObject/Fungus/Sprite/ParallaxSprite")] [MenuItem("Tools/Fungus/Create/Parallax Sprite")]
static void CreateParallaxSprite() static void CreateParallaxSprite()
{ {
FungusScriptMenuItems.SpawnPrefab("ParallaxSprite"); FungusScriptMenuItems.SpawnPrefab("ParallaxSprite");

2
Assets/Fungus/Thirdparty/Usfxr/Editor/SfxrGenerator.cs vendored

@ -63,7 +63,7 @@ public class SfxrGenerator : EditorWindow {
// ================================================================================================================ // ================================================================================================================
// PUBLIC INTERFACE ----------------------------------------------------------------------------------------------- // PUBLIC INTERFACE -----------------------------------------------------------------------------------------------
[MenuItem("Window/Generate usfxr Sound Effects")] [MenuItem("Tools/Fungus/Utilities/Generate usfxr Sound Effects")]
public static void Initialize() { public static void Initialize() {
var window = ScriptableObject.CreateInstance<SfxrGenerator>(); var window = ScriptableObject.CreateInstance<SfxrGenerator>();
window.title = window.name = "Sound Effects"; window.title = window.name = "Sound Effects";

Loading…
Cancel
Save