示例#1
0
        public static IDraw TextField(this IDraw draw,
                                      ref string text,
                                      string label      = null,
                                      GUIStyle style    = null,
                                      float?height      = null,
                                      float?maxHeight   = null,
                                      float?minHeight   = null,
                                      bool?expandHeight = null,
                                      float?width       = null,
                                      float?maxWidth    = null,
                                      float?minWidth    = null,
                                      bool?expandWidth  = null)
        {
            var opts = LayoutOptionsCache.ExtractLayoutOptions(height,
                                                               maxHeight,
                                                               minHeight,
                                                               expandHeight,
                                                               width,
                                                               maxWidth,
                                                               minWidth,
                                                               expandWidth);

            TextFieldDraw.Draw(ref text, label, style, opts);

            return(draw);
        }
示例#2
0
        public static IDraw S_TextField(this IDraw draw,
                                        ref string text,
                                        string label   = null,
                                        GUIStyle style = null)
        {
            TextFieldDraw.Draw(ref text, label, style, null);

            return(draw);
        }