mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-07-26 12:41:32 -05:00
メニューの表記、順番調整
- `-1.0` => ` 1.0` - `Import` and `Export` - `Export < Import < MeshUtility` order
This commit is contained in:
parent
05738f2f49
commit
b216a5bbc0
|
|
@ -6,7 +6,7 @@ namespace UniGLTF
|
|||
{
|
||||
public static class GltfImportMenu
|
||||
{
|
||||
public const string MENU_NAME = "glTF importer (*.gltf|*.glb|*.zip)";
|
||||
public const string MENU_NAME = "Import glTF... (*.gltf|*.glb|*.zip)";
|
||||
public static void ImportGltfFileToGameObject()
|
||||
{
|
||||
var path = EditorUtility.OpenFilePanel(MENU_NAME + ": open glb", "",
|
||||
|
|
|
|||
|
|
@ -25,18 +25,18 @@ namespace UniGLTF
|
|||
private static void ImportGltfFile() => GltfImportMenu.ImportGltfFileToGameObject();
|
||||
|
||||
|
||||
[MenuItem(UserGltfMenuPrefix + "/" + MeshUtility.MeshUtilityDialog.MENU_NAME, priority = 10)]
|
||||
[MenuItem(UserGltfMenuPrefix + "/" + MeshUtility.MeshUtilityDialog.MENU_NAME, priority = 3)]
|
||||
private static void OpenMeshProcessingWindow() => MeshUtility.MeshUtilityDialog.OpenWindow();
|
||||
|
||||
#if VRM_DEVELOP
|
||||
[MenuItem(DevelopmentMenuPrefix + "/Generate Serialization Code", priority = 20)]
|
||||
[MenuItem(DevelopmentMenuPrefix + "/Generate Serialization Code", priority = 40)]
|
||||
private static void GenerateSerializationCode()
|
||||
{
|
||||
SerializerGenerator.GenerateSerializer();
|
||||
DeserializerGenerator.GenerateSerializer();
|
||||
}
|
||||
|
||||
[MenuItem(DevelopmentMenuPrefix + "/Generate UniJSON ConcreteCast", priority = 21)]
|
||||
[MenuItem(DevelopmentMenuPrefix + "/Generate UniJSON ConcreteCast", priority = 41)]
|
||||
private static void GenerateUniJsonConcreteCastCode() => UniJSON.ConcreteCast.GenerateGenericCast();
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ namespace UniGLTF
|
|||
{
|
||||
public class GltfExportWindow : ExportDialogBase
|
||||
{
|
||||
public const string MENU_NAME = "glTF Exporter";
|
||||
public const string MENU_NAME = "Export glTF...";
|
||||
public static void ExportGameObjectToGltfFile()
|
||||
{
|
||||
var window = (GltfExportWindow)GltfExportWindow.GetWindow(typeof(GltfExportWindow));
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ namespace VRM
|
|||
{
|
||||
public class VRMExporterWizard : ExportDialogBase
|
||||
{
|
||||
public const string MENU_NAME = "VRM 0.x Exporter";
|
||||
public const string MENU_NAME = "Export VRM 0.x...";
|
||||
public static void OpenExportMenu()
|
||||
{
|
||||
var window = (VRMExporterWizard)GetWindow(typeof(VRMExporterWizard));
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ namespace VRM
|
|||
{
|
||||
public static class VRMImporterMenu
|
||||
{
|
||||
public const string MENU_NAME = "VRM 0.x Importer";
|
||||
public const string MENU_NAME = "Import VRM 0.x...";
|
||||
public static void OpenImportMenu()
|
||||
{
|
||||
var path = EditorUtility.OpenFilePanel(MENU_NAME + ": open vrm", "", "vrm");
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ namespace VRM
|
|||
internal static class VRMSpringBoneUtilityEditor
|
||||
{
|
||||
#region save
|
||||
public const string SAVE_MENU_NAME = "VRM 0.x Save SpringBone to JSON";
|
||||
public const string SAVE_MENU_NAME = "VRM 0.x Save SpringBone to JSON...";
|
||||
public static bool SaveSpringBoneToJsonValidation()
|
||||
{
|
||||
var root = Selection.activeObject as GameObject;
|
||||
|
|
@ -57,7 +57,7 @@ namespace VRM
|
|||
#endregion
|
||||
|
||||
#region load
|
||||
public const string LOAD_MENU_NAME = "VRM 0.x Load SpringBone from JSON";
|
||||
public const string LOAD_MENU_NAME = "VRM 0.x Load SpringBone from JSON...";
|
||||
public static bool LoadSpringBoneFromJsonValidation()
|
||||
{
|
||||
var root = Selection.activeObject as GameObject;
|
||||
|
|
|
|||
|
|
@ -10,52 +10,52 @@ namespace VRM
|
|||
private const string DevelopmentMenuPrefix = PackageVersion.MENU + "/Development";
|
||||
|
||||
|
||||
[MenuItem(UserMenuPrefix + "/" + PackageVersion.MENU_NAME, validate = true)]
|
||||
[MenuItem(UserMenuPrefix + "/" + PackageVersion.MENU_NAME, true, 0)]
|
||||
private static bool ShowVersionValidation() => false;
|
||||
[MenuItem(UserMenuPrefix + "/" + PackageVersion.MENU_NAME, priority = 0)]
|
||||
[MenuItem(UserMenuPrefix + "/" + PackageVersion.MENU_NAME, false, 0)]
|
||||
private static void ShowVersion() { }
|
||||
|
||||
|
||||
[MenuItem(UserMenuPrefix + "/" + VRMExporterWizard.MENU_NAME, priority = 1)]
|
||||
[MenuItem(UserMenuPrefix + "/" + VRMExporterWizard.MENU_NAME, false, 1)]
|
||||
private static void ExportToVrmFile() => VRMExporterWizard.OpenExportMenu();
|
||||
|
||||
|
||||
[MenuItem(UserMenuPrefix + "/" + VRMImporterMenu.MENU_NAME, priority = 2)]
|
||||
[MenuItem(UserMenuPrefix + "/" + VRMImporterMenu.MENU_NAME, false, 2)]
|
||||
private static void ImportFromVrmFile() => VRMImporterMenu.OpenImportMenu();
|
||||
|
||||
|
||||
[MenuItem(UserMenuPrefix + "/" + VRMHumanoidNormalizerMenu.MENU_NAME, validate = true)]
|
||||
private static bool FreezeTPoseValidation() => VRMHumanoidNormalizerMenu.NormalizeValidation();
|
||||
[MenuItem(UserMenuPrefix + "/" + VRMHumanoidNormalizerMenu.MENU_NAME, priority = 20)]
|
||||
private static void FreezeTPose() => VRMHumanoidNormalizerMenu.Normalize();
|
||||
|
||||
|
||||
[MenuItem(UserMenuPrefix + "/" + VrmMeshIntegratorWizard.MENU_NAME, priority = 21)]
|
||||
[MenuItem(UserMenuPrefix + "/" + VrmMeshIntegratorWizard.MENU_NAME, false, 3)]
|
||||
private static void OpenMeshIntegratorWizard() => VrmMeshIntegratorWizard.CreateWizard();
|
||||
|
||||
|
||||
[MenuItem(UserMenuPrefix + "/" + VRMSpringBoneUtilityEditor.SAVE_MENU_NAME, validate = true)]
|
||||
[MenuItem(UserMenuPrefix + "/" + VRMHumanoidNormalizerMenu.MENU_NAME, true, 51)]
|
||||
private static bool FreezeTPoseValidation() => VRMHumanoidNormalizerMenu.NormalizeValidation();
|
||||
[MenuItem(UserMenuPrefix + "/" + VRMHumanoidNormalizerMenu.MENU_NAME, false, 52)]
|
||||
private static void FreezeTPose() => VRMHumanoidNormalizerMenu.Normalize();
|
||||
|
||||
|
||||
[MenuItem(UserMenuPrefix + "/" + VRMSpringBoneUtilityEditor.SAVE_MENU_NAME, true, 53)]
|
||||
private static bool SaveSpringBoneToJsonValidation() => VRMSpringBoneUtilityEditor.SaveSpringBoneToJsonValidation();
|
||||
[MenuItem(UserMenuPrefix + "/" + VRMSpringBoneUtilityEditor.SAVE_MENU_NAME, priority = 22)]
|
||||
[MenuItem(UserMenuPrefix + "/" + VRMSpringBoneUtilityEditor.SAVE_MENU_NAME, false, 53)]
|
||||
private static void SaveSpringBoneToJson() => VRMSpringBoneUtilityEditor.SaveSpringBoneToJson();
|
||||
|
||||
|
||||
[MenuItem(UserMenuPrefix + "/" + VRMSpringBoneUtilityEditor.LOAD_MENU_NAME, validate = true)]
|
||||
[MenuItem(UserMenuPrefix + "/" + VRMSpringBoneUtilityEditor.LOAD_MENU_NAME, true, 54)]
|
||||
private static bool LoadSpringBoneFromJsonValidation() => VRMSpringBoneUtilityEditor.LoadSpringBoneFromJsonValidation();
|
||||
[MenuItem(UserMenuPrefix + "/" + VRMSpringBoneUtilityEditor.LOAD_MENU_NAME, priority = 23)]
|
||||
[MenuItem(UserMenuPrefix + "/" + VRMSpringBoneUtilityEditor.LOAD_MENU_NAME, false, 54)]
|
||||
|
||||
|
||||
#if VRM_DEVELOP
|
||||
[MenuItem(DevelopmentMenuPrefix + "/Generate Serialization Code", priority = 30)]
|
||||
[MenuItem(DevelopmentMenuPrefix + "/Generate Serialization Code", false, 91)]
|
||||
private static void GenerateSerializer() => VRMAOTCodeGenerator.GenerateCode();
|
||||
|
||||
[MenuItem(DevelopmentMenuPrefix + "/Version Dialog", priority = 32)]
|
||||
[MenuItem(DevelopmentMenuPrefix + "/Version Dialog", false, 92)]
|
||||
private static void ShowVersionDialog() => VRMVersionMenu.ShowVersionDialog();
|
||||
|
||||
[MenuItem(DevelopmentMenuPrefix + "/Build dummy for CI", priority = 33)]
|
||||
[MenuItem(DevelopmentMenuPrefix + "/Build dummy for CI", false, 93)]
|
||||
private static void BuildDummyForCi() => BuildClass.Build();
|
||||
|
||||
[MenuItem(DevelopmentMenuPrefix + "/Create UnityPackage", priority = 34)]
|
||||
[MenuItem(DevelopmentMenuPrefix + "/Create UnityPackage", false, 94)]
|
||||
private static void CreateUnityPackage() => VRMExportUnityPackage.CreateUnityPackageWithoutBuild();
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ namespace UniVRM10
|
|||
/// </summary>
|
||||
public class VRM10Window : EditorWindow
|
||||
{
|
||||
public const string MENU_NAME = "VRM-1.0 Window";
|
||||
public const string MENU_NAME = "VRM 1.0 Window";
|
||||
|
||||
public static VRM10Window Open()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ namespace UniVRM10
|
|||
{
|
||||
public class Vrm10MeshUtilityDialog : EditorWindow
|
||||
{
|
||||
public const string MENU_NAME = "VRM-1.0 MeshUtility";
|
||||
public const string MENU_NAME = "VRM 1.0 MeshUtility";
|
||||
|
||||
enum Tabs
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ namespace UniVRM10
|
|||
{
|
||||
public class VRM10ExportDialog : ExportDialogBase
|
||||
{
|
||||
public const string MENU_NAME = "VRM-1.0 Exporter";
|
||||
public const string MENU_NAME = "Export VRM 1.0...";
|
||||
|
||||
public static void Open()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -9,23 +9,25 @@ namespace UniVRM10
|
|||
private const string DevelopmentMenuPrefix = VRM10SpecVersion.MENU + "/Development";
|
||||
private const string ExperimentalMenuPrefix = VRM10SpecVersion.MENU + "/Experimental";
|
||||
|
||||
|
||||
[MenuItem(UserMenuPrefix + "/" + VRM10ExportDialog.MENU_NAME, priority = 1)]
|
||||
private static void OpenExportDialog() => VRM10ExportDialog.Open();
|
||||
|
||||
[MenuItem(UserMenuPrefix + "/" + Vrm10MeshUtilityDialog.MENU_NAME, priority = 2)]
|
||||
private static void OpenMeshUtility() => Vrm10MeshUtilityDialog.OpenWindow();
|
||||
|
||||
[MenuItem(ExperimentalMenuPrefix + "/" + VrmAnimationMenu.MENU_NAME, priority = 100)]
|
||||
|
||||
[MenuItem(ExperimentalMenuPrefix + "/" + VrmAnimationMenu.MENU_NAME, priority = 21)]
|
||||
private static void ConvertVrmAnimation() => VrmAnimationMenu.BvhToVrmAnimationMenu();
|
||||
|
||||
#if VRM_DEVELOP
|
||||
[MenuItem(UserMenuPrefix + "/" + VRM10Window.MENU_NAME, false, 2)]
|
||||
[MenuItem(ExperimentalMenuPrefix + "/" + VRM10Window.MENU_NAME, false, 22)]
|
||||
private static void OpenWindow() => VRM10Window.Open();
|
||||
|
||||
[MenuItem(DevelopmentMenuPrefix + "/Generate from JsonSchema")]
|
||||
[MenuItem(DevelopmentMenuPrefix + "/Generate from JsonSchema", false, 100)]
|
||||
private static void Generate() => Vrm10SerializerGenerator.Run(false);
|
||||
|
||||
[MenuItem(DevelopmentMenuPrefix + "/Generate from JsonSchema(debug)")]
|
||||
[MenuItem(DevelopmentMenuPrefix + "/Generate from JsonSchema(debug)", false, 101)]
|
||||
private static void Parse() => Vrm10SerializerGenerator.Run(true);
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ namespace UniVRM10
|
|||
{
|
||||
internal static class VrmAnimationMenu
|
||||
{
|
||||
public const string MENU_NAME = "Convert BVH to VRM-Animation";
|
||||
public const string MENU_NAME = "Convert BVH to VRM-Animation...";
|
||||
|
||||
public static void BvhToVrmAnimationMenu()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user