/*********************************************** * GUI METHODS ***********************************************/ void OnGUI() { //Debug.Log ("OnGUI:"+Event.current.type); if (reflection == null) { reflection = PSReflectionFactory.GetInstance().GetReflection(); } if (target == null) { EditorGUILayout.HelpBox("No humanoid target found, please select humanoid gameobject from the hierarchy.", MessageType.None); if (GUILayout.Button("Refresh", EditorStyles.miniButton, GUILayout.Width(100))) { reflection.Init(); } return; } this.InfoGUI(); EditorGUILayout.Space(); this.TabGUI(); }
/*********************************************** * GUI METHODS ***********************************************/ void OnGUI() { //Debug.Log ("OnGUI:"+Event.current.type); if (reflection == null) { reflection = PSReflectionFactory.GetInstance().GetReflection(); } if (target == null) { EditorGUILayout.HelpBox("No humanoid target found, please select humanoid gameobject from the hierarchy.", MessageType.None); if (GUILayout.Button("Refresh", EditorStyles.miniButton, GUILayout.Width(100))) { reflection.Init(); } return; } this.InfoGUI(); EditorGUILayout.Space(); EditorGUILayout.BeginHorizontal(); if (GUILayout.Toggle(curTab == tabMuscle, "MUSCLE", EditorStyles.toolbarButton)) { curTab = tabMuscle; } if (GUILayout.Toggle(curTab == tabOption, "OPTIONS", EditorStyles.toolbarButton)) { curTab = tabOption; } EditorGUILayout.EndHorizontal(); this.TabGUI(); }