コード例 #1
0
        public static IDraw DrawStringsPopup(this IDraw draw,
                                             ref int selectedIndex,
                                             string[] displayedStrings,
                                             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);

            StringsPopupDraw.Draw(ref selectedIndex, displayedStrings, label, style, opts);

            return(draw);
        }
コード例 #2
0
        public static IDraw S_DrawStringsPopup(this IDraw draw,
                                               ref int selectedIndex,
                                               string[] displayedStrings,
                                               string label   = null,
                                               GUIStyle style = null)
        {
            StringsPopupDraw.Draw(ref selectedIndex, displayedStrings, label, style, null);

            return(draw);
        }