mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-04-18 13:07:48 -05:00
UniGLTF.M17N
This commit is contained in:
parent
33bd8a38f9
commit
df8fbe79cd
|
|
@ -1,6 +1,6 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using MeshUtility;
|
||||
using UniGLTF.M17N;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
|
||||
using UniGLTF.M17N;
|
||||
|
||||
namespace UniGLTF.EditorSettingsValidator
|
||||
{
|
||||
public enum Messages
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
using UnityEditor;
|
||||
using UniGLTF.M17N;
|
||||
|
||||
namespace UniGLTF.EditorSettingsValidator
|
||||
{
|
||||
|
|
@ -15,4 +16,4 @@ namespace UniGLTF.EditorSettingsValidator
|
|||
PlayerSettings.colorSpace = UnityEngine.ColorSpace.Linear;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using UniGLTF.M17N;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ using System.Reflection;
|
|||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
using UniGLTF;
|
||||
using UniGLTF.M17N;
|
||||
|
||||
namespace MeshUtility
|
||||
{
|
||||
|
|
@ -133,7 +134,7 @@ namespace MeshUtility
|
|||
_scrollPos = EditorGUILayout.BeginScrollView(_scrollPos);
|
||||
EditorGUIUtility.labelWidth = 150;
|
||||
// lang
|
||||
Getter.OnGuiSelectLang();
|
||||
LanguageGetter.OnGuiSelectLang();
|
||||
|
||||
_tab = TabBar.OnGUI(_tab, _tabButtonStyle, _tabButtonSize);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using UniGLTF.M17N;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
|
|
@ -103,7 +104,7 @@ namespace UniGLTF
|
|||
EditorGUIUtility.labelWidth = 150;
|
||||
|
||||
// lang
|
||||
Getter.OnGuiSelectLang();
|
||||
LanguageGetter.OnGuiSelectLang();
|
||||
|
||||
EditorGUILayout.LabelField("ExportRoot");
|
||||
{
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||
using System.Linq;
|
||||
using UnityEditor;
|
||||
|
||||
namespace UniGLTF
|
||||
namespace UniGLTF.M17N
|
||||
{
|
||||
/// <summary>
|
||||
/// 多言語対応
|
||||
|
|
@ -68,7 +68,7 @@ namespace UniGLTF
|
|||
return map[key];
|
||||
}
|
||||
}
|
||||
public static class Getter
|
||||
public static class LanguageGetter
|
||||
{
|
||||
const string LANG_KEY = "VRM_LANG";
|
||||
|
||||
|
|
@ -93,7 +93,7 @@ namespace UniGLTF
|
|||
if (lang != Lang)
|
||||
{
|
||||
m_lang = lang;
|
||||
EditorPrefs.SetString(LANG_KEY, Getter.Lang.ToString());
|
||||
EditorPrefs.SetString(LANG_KEY, LanguageGetter.Lang.ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UniGLTF.M17N;
|
||||
using UnityEngine;
|
||||
|
||||
namespace UniGLTF
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UniGLTF.M17N;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UniGLTF;
|
||||
using UniGLTF.M17N;
|
||||
using UnityEngine;
|
||||
|
||||
namespace VRM
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ using System.Reflection;
|
|||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using UniGLTF;
|
||||
using UniGLTF.M17N;
|
||||
|
||||
namespace VRM
|
||||
{
|
||||
|
|
@ -48,7 +49,7 @@ namespace VRM
|
|||
|
||||
static string Msg(Options key)
|
||||
{
|
||||
return Getter.Msg(key);
|
||||
return LanguageGetter.Msg(key);
|
||||
}
|
||||
|
||||
public enum Options
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
using System.Collections.Generic;
|
||||
using UniGLTF;
|
||||
using UniGLTF.M17N;
|
||||
using UnityEngine;
|
||||
|
||||
namespace VRM
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ using System.Linq;
|
|||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using UniGLTF;
|
||||
using UniGLTF.M17N;
|
||||
|
||||
namespace VRM
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ using UnityEditor;
|
|||
using UnityEngine;
|
||||
using System.IO;
|
||||
using UniGLTF;
|
||||
using UniGLTF.M17N;
|
||||
|
||||
namespace VRM
|
||||
{
|
||||
|
|
@ -55,7 +56,7 @@ namespace VRM
|
|||
|
||||
static string RequiredMessage(string name)
|
||||
{
|
||||
switch (Getter.Lang)
|
||||
switch (LanguageGetter.Lang)
|
||||
{
|
||||
case Languages.ja:
|
||||
return $"必須項目。{name} を入力してください";
|
||||
|
|
@ -162,7 +163,7 @@ namespace VRM
|
|||
|
||||
static string Msg(MessageKeys key)
|
||||
{
|
||||
return Getter.Msg(key);
|
||||
return LanguageGetter.Msg(key);
|
||||
}
|
||||
|
||||
bool m_foldoutInfo = true;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using UniGLTF;
|
||||
using UniGLTF.M17N;
|
||||
|
||||
namespace UniVRM10
|
||||
{
|
||||
|
|
@ -82,7 +83,7 @@ namespace UniVRM10
|
|||
|
||||
static string RequiredMessage(string name)
|
||||
{
|
||||
switch (Getter.Lang)
|
||||
switch (LanguageGetter.Lang)
|
||||
{
|
||||
case Languages.ja:
|
||||
return $"必須項目。{name} を入力してください";
|
||||
|
|
@ -184,7 +185,7 @@ namespace UniVRM10
|
|||
|
||||
static string Msg(MessageKeys key)
|
||||
{
|
||||
return Getter.Msg(key);
|
||||
return LanguageGetter.Msg(key);
|
||||
}
|
||||
|
||||
bool m_foldoutInfo = true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user