private void DoInspectTypePopup()
{
EditorGUI.BeginChangeCheck();
InstructionType type = (InstructionType) EditorGUILayout.EnumPopup(this.m_InstructionType, EditorStyles.toolbarDropDown, new GUILayoutOption[0]);
if (EditorGUI.EndChangeCheck())
{
this.m_InstructionType = type;
switch (this.m_InstructionType)
{
case InstructionType.Draw:
this.m_InstructionModeView = new StyleDrawInspectView(this);
break;
case InstructionType.Clip:
this.m_InstructionModeView = new GUIClipInspectView(this);
break;
case InstructionType.Layout:
this.m_InstructionModeView = new GUILayoutInspectView(this);
break;
case InstructionType.Unified:
this.m_InstructionModeView = new UnifiedInspectView(this);
break;
}
this.m_InstructionModeView.UpdateInstructions();
}
}