public bool DoGUI(ASUpdateWindow parentWin)
{
if (this.constants == null)
{
this.constants = new ASUpdateConflictResolveWindow.Constants();
}
bool enabled = GUI.enabled;
EditorGUIUtility.SetIconSize(this.iconSize);
GUILayout.BeginVertical(new GUILayoutOption[0]);
if (this.showDownloadConflicts)
{
this.DoDownloadConflictsGUI();
}
if (this.showNamingConflicts)
{
this.DoNamingConflictsGUI();
}
GUILayout.EndVertical();
EditorGUIUtility.SetIconSize(Vector2.zero);
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
GUI.enabled = (this.lv1HasSelection && enabled);
if (GUILayout.Button("Compare", this.constants.button, new GUILayoutOption[0]))
{
if (!this.DoShowDiff(false))
{
Debug.Log("No differences found");
}
GUIUtility.ExitGUI();
}
GUI.enabled = enabled;
GUILayout.FlexibleSpace();
GUI.enabled = (parentWin.CanContinue && enabled);
if (GUILayout.Button("Continue", this.constants.bigButton, new GUILayoutOption[]
{
GUILayout.MinWidth(100f)
}))
{
parentWin.DoUpdate(true);
return(false);
}
GUI.enabled = enabled;
if (GUILayout.Button("Cancel", this.constants.bigButton, new GUILayoutOption[]
{
GUILayout.MinWidth(100f)
}))
{
return(false);
}
GUILayout.EndHorizontal();
if (!this.splittersOk && Event.current.type == EventType.Repaint)
{
this.splittersOk = true;
parentWin.Repaint();
}
return(true);
}