예제 #1
0
        private void DrawGroupHeader(Group group)
        {
            if (!string.IsNullOrEmpty(group.name))
            {
                if(group.displayHeader)
                {
                    GUILayout.Space(10f);
                    GUILayout.Label(group.name, InspectorStyle.DefaultStyle.groupHeaderStyle);

                    if(!string.IsNullOrEmpty(group.description))
                    {
                        GUILayout.Label(group.description, InspectorStyle.DefaultStyle.groupDescriptionStyle);
                    }

                    GUILayout.Space(15f);
                }
                else
                {
                    GUILayout.Space(25f);
                }
            }
        }
예제 #2
0
 private bool GroupIsFoldout(Group group)
 {
     return(group.foldable && group.foldout);
 }
예제 #3
0
        private void DrawGroupHeader(Group group)
        {
            if (!string.IsNullOrEmpty(group.name))
            {
                if(group.displayHeader)
                {
                    GUILayout.Space(10f);

                    if(group.foldable)
                    {
                        if(firstTimeDrew)
                        {
                            firstTimeDrew = false;
                            group.foldout = false;
                        }
                        group.foldout = EditorGUILayout.Foldout(group.foldout, group.name, InspectorStyle.DefaultStyle.foldableGroupHeaderStyle);
                    }
                    else
                    {
                        group.foldout = true;
                        GUILayout.Label(group.name, InspectorStyle.DefaultStyle.groupHeaderStyle);
                    }

                    if(!string.IsNullOrEmpty(group.description))
                    {
                        GUILayout.Label(group.description, InspectorStyle.DefaultStyle.groupDescriptionStyle);
                    }

                    GUILayout.Space(15f);
                }
                else
                {
                    GUILayout.Space(25f);
                }
            }
        }
예제 #4
0
 private bool GroupIsFoldout(Group group)
 {
     return group.foldable && group.foldout;
 }
예제 #5
0
        private void DrawGroupHeader(Group group)
        {
            if (!string.IsNullOrEmpty(group.name))
            {
                GUILayout.Space(15f);
                GUILayout.Label(group.name, InspectorStyle.DefaultStyle.titleStyle);

                if(!string.IsNullOrEmpty(group.description))
                {
                    GUILayout.Label(group.description, InspectorStyle.DefaultStyle.titleDescriptionStyle);
                }

                GUILayout.Space(15f);
            }
        }