26 lines
664 B
C#
26 lines
664 B
C#
|
|
using AlicizaX.Editor;
|
|||
|
|
using AlicizaX.Localization.Runtime;
|
|||
|
|
using AlicizaX.Runtime;
|
|||
|
|
using UnityEditor;
|
|||
|
|
|
|||
|
|
namespace AlicizaX.Localization.Editor
|
|||
|
|
{
|
|||
|
|
[CustomEditor(typeof(LocalizationComponent))]
|
|||
|
|
internal sealed class LocalizationComponentInspector : ComponentTypeComponentInspector
|
|||
|
|
{
|
|||
|
|
public override void OnInspectorGUI()
|
|||
|
|
{
|
|||
|
|
base.OnInspectorGUI();
|
|||
|
|
serializedObject.Update();
|
|||
|
|
|
|||
|
|
serializedObject.ApplyModifiedProperties();
|
|||
|
|
Repaint();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
protected override void RefreshTypeNames()
|
|||
|
|
{
|
|||
|
|
RefreshComponentTypeNames(typeof(ILocalizationManager));
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|