private void OnGUI() { if (_editorEffector.GetCurrentlyEditing() == CurrentlyEditing.Nothing) { return; } if (_editorEffector.IsFirstTimeSetup() && _editorEffector.IsPreviewSetupValid()) { _editorEffector.ClearFirstTimeSetup(); } GUILayout.BeginArea(new Rect(position.width - 320, CgeLayoutCommon.SingleLineHeight * 2 + 5, 200, CgeLayoutCommon.SingleLineHeight + 2)); if (GUILayout.Button(new GUIContent("❈ ExpressionsEditor"), GUILayout.Width(170), GUILayout.Height(CgeLayoutCommon.SingleLineHeight + 2))) { EeAnimationEditorWindow.Obtain().Show(); } GUILayout.EndArea(); GUILayout.BeginArea(new Rect(position.width - 130, CgeLayoutCommon.SingleLineHeight * 2 + 5, 100, CgeLayoutCommon.SingleLineHeight + 2)); if (GUILayout.Button(new GUIContent(" " + CgeLocale.CGEE_Tutorials, _helpIcon16), GUILayout.Width(100), GUILayout.Height(CgeLayoutCommon.SingleLineHeight + 2))) { Application.OpenURL(CgeLocale.DocumentationUrl()); } GUILayout.EndArea(); switch (_editorEffector.GetCurrentlyEditing()) { case CurrentlyEditing.Nothing: break; case CurrentlyEditing.Activity: EditingAnActivity(); break; case CurrentlyEditing.Puppet: EditingAPuppet(); break; default: throw new ArgumentOutOfRangeException(); } }