Exemple #1
0
        public XDStyles()
        {
            // TextField
            Field                    = new GUIStyle(EditorStyles.textField);
            Field.alignment          = TextAnchor.MiddleLeft;
            Field.normal.textColor   = Normal;
            Field.normal.background  = XDUtility.CreateColoredTexture(Skin);
            Field.focused.textColor  = Normal;
            Field.focused.background = XDUtility.CreateColoredTexture(Highlight.Alpha(0.2f));
            Field.border             = new RectOffset(4, 0, 0, 0);
            Field.margin             = new RectOffset(4, 4, 4, 4);

            // Label
            Label = new GUIStyle(Field);

            Horiz_Small             = new GUIStyle(Field);
            Horiz_Small.fixedWidth  = (int)XDSizes.Small * 3;
            Horiz_Small.fixedHeight = (int)XDSizes.Small;

            Horiz_Medium             = new GUIStyle(Field);
            Horiz_Medium.fixedWidth  = (int)XDSizes.Medium * 3;
            Horiz_Medium.fixedHeight = (int)XDSizes.Small;

            Horiz_Large             = new GUIStyle(Field);
            Horiz_Large.fixedWidth  = (int)XDSizes.Large * 3;
            Horiz_Large.fixedHeight = (int)XDSizes.Small;
        }
Exemple #2
0
 protected virtual void CreateLayoutControls()
 {
     XDUtility.CreateTextField("test", ref m_text, XDSizes.Large);
     XDUtility.DebugLastRect();
 }