Exemple #1
0
        public static ToolBarTree DropDownButton(this ToolBarTree t, GUIContent content, Action <Rect> onClick, int width = 100, Func <bool> canshow = null)
        {
            ToolBarDropDownButton btn = new ToolBarDropDownButton(content, onClick, width, canshow);

            t.DockNode(btn);
            return(t);
        }
Exemple #2
0
        public static ToolBarTree Popup(this ToolBarTree t, Action <int> onValueChange, string[] ops, int value = 0, int width = 100, Func <bool> canshow = null)
        {
            ToolBarPopup btn = new ToolBarPopup(onValueChange, ops, value, width, canshow);

            t.DockNode(btn);
            return(t);
        }