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(); }
public DropDownList(Game game, Vector2 position, Texture2D speechBubbleTexture, Texture2D textureUp, Texture2D textureDown) : base(game, (Texture2D)null, position) { MyGuid = Guid.NewGuid(); _speechBubble = new SpeechBubble(Game, speechBubbleTexture, Position, "", null, Width, Height, 5); _scrollerItems = new DGCScroller(Game, null, null, 1000); _textureUp = textureUp; _textureDown = textureDown; SpacingX = 5; MinHeight = 30; MaxHeight = MinHeight * 5; Width = 300; Height = MinHeight; Scale = 1; Alpha = 1; Position = position; }