public override void OnInspectorGUI()
{
bool flag;
bool flag2;
bool flag3;
this.UnifiedValues(out flag, out flag2, out flag3);
if (flag)
{
EditorGUILayout.LabelField("Name", this.sprite.name, new GUILayoutOption[0]);
}
else
{
EditorGUILayout.LabelField("Name", "-", new GUILayoutOption[0]);
}
if (flag2)
{
int alignment = this.GetMetaData(this.sprite.name).alignment;
EditorGUILayout.LabelField(Styles.spriteAlignment, Styles.spriteAlignmentOptions[alignment], new GUILayoutOption[0]);
}
else
{
EditorGUILayout.LabelField(Styles.spriteAlignment.text, "-", new GUILayoutOption[0]);
}
if (flag3)
{
Vector4 border = this.GetMetaData(this.sprite.name).border;
EditorGUILayout.LabelField("Border", string.Format("L:{0} B:{1} R:{2} T:{3}", new object[] { border.x, border.y, border.z, border.w }), new GUILayoutOption[0]);
}
else
{
EditorGUILayout.LabelField("Border", "-", new GUILayoutOption[0]);
}
}