Exemplo n.º 1
0
        public UIScrollableColumn(Transform transform, Texture2D sprite, Screen screen, Vector4 padding, Vector2 spacing)
            : base(transform, sprite, screen, padding, spacing, true)
        {
            screen.kb_selectCallbacks.AddEvent(new _EventArg1 <UIElement>(SelectedChanged));

            scrollbar = screen.AddUIElement(new UIScrollbar(
                                                new Transform(new Vector2(transform.X + transform.Width / 2f + 7.5f, transform.Y), new Vector2(15, transform.Height)),
                                                ContentHelper.Box4x4_Sprite,
                                                ContentHelper.GetSprite("Sprites/UI/handle"),
                                                null,
                                                this,
                                                screen
                                                ));
        }