protected void ApplyRevertGUI()
{
EditorGUILayout.Space();
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
using (new EditorGUI.DisabledScope(!this.HasModified()))
{
GUILayout.FlexibleSpace();
if (GUILayout.Button("Revert", new GUILayoutOption[0]))
{
this.ResetValues();
if (this.HasModified())
{
Debug.LogError("Avatar tool reports modified values after reset.");
}
}
if (GUILayout.Button("Apply", new GUILayoutOption[0]))
{
this.ApplyAndImport();
}
}
if (GUILayout.Button("Done", new GUILayoutOption[0]))
{
this.m_Inspector.SwitchToAssetMode();
GUIUtility.ExitGUI();
}
GUILayout.EndHorizontal();
}