예제 #1
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);
        }
예제 #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);
            }
        }