コード例 #1
0
        public void DrawBefore(CyberAttrribute cyberAttribute)
        {
            bool before;

            before      = GUI.enabled;
            GUI.enabled = true;
            var attribute = cyberAttribute as StartHorizontalAttribute;

            EditorGUILayout.BeginHorizontal();


            if (attribute.Name != null)
            {
                EditorGUILayout.PrefixLabel(new GUIContent((attribute.Name)), new GUIStyle(), new GUIStyle()
                {
                    fixedWidth = 20
                });
            }
            if (attribute.RightPush != 0)
            {
                GUILayout.Label("", GUILayout.Width(attribute.RightPush));
            }
            TheEditor.BeginHorizontal(attribute.BackgroundMode);
            CyberEdit.Current.PushHorizontalStack();
            GUI.enabled = before;
        }
コード例 #2
0
        public void BeforeGroup(CyberAttrribute cyberAttribute)
        {
            CustomBackgrounGroupAttribute attribute = cyberAttribute as CustomBackgrounGroupAttribute;

            TheEditor.BeginHorizontal(attribute.BackgroundMode);
        }