public Scrollbar(string name, Vector2 position, Type type, float size)
        {
            this.Name = name;
            this.type = type;

            if (type == Type.Horizontal)
                hscrollbar = new HScrollbar(position, size);
            else if (type == Type.Vertical)
                vscrollbar = new VScrollbar(position, size);
        }
Beispiel #2
0
        public Scrollbar(string name, Vector2 position, Type type, float size)
        {
            this.Name = name;
            this.type = type;

            if (type == Type.Horizontal)
            {
                hscrollbar = new HScrollbar(position, size);
            }
            else if (type == Type.Vertical)
            {
                vscrollbar = new VScrollbar(position, size);
            }
        }