public ScrollableRenderTargetScroll(Game game, Vector2 posDif, Texture2D textureUp, Texture2D textureDown)
            : base(game)
        {
            PosDif = posDif;

            _barraUp = new SpeechBubble(Game, textureUp, Position, "", null, BarWidth, BarHeight, 2);
            _barraUp.Initialize();

            _barraDown = new SpeechBubble(Game, textureDown, Position, "", null, BarWidth, Height, 2);
            _barraDown.Initialize();
        }
Ejemplo n.º 2
0
        public override void Initialize()
        {
            SpriteBatch = Game.Services.GetService(typeof(SpriteBatch)) as SpriteBatch;

            _scrollableRenderTarget = new ScrollableRenderTarget(Game, Width - SpacingX, MaxHeight, _scrollerItems,
                                                                 new ScrollableRenderTargetScroll(Game, _textureUp, _textureDown));

            _scrollerItems.Initialize();

            UpdateSelectedItemPos();

            _scrollableRenderTarget.Initialize();

            _speechBubble.Initialize();

            _selectedItem = null;

            _oldHasFocus = HasFocus;

            base.Initialize();
        }