Ejemplo n.º 1
0
        public Ticker(Vector2 position, int scale)
        {
            this.position = position;
            this.scale    = scale;
            LinePoly upHitbox = new LinePoly(
                Vector2.Zero,
                new Vector2(-3, -10),
                new Vector2(3, -10),
                new Vector2(10, 3),
                new Vector2(10, 9),
                new Vector2(-10, 9),
                new Vector2(-10, 3)
                );

            upButton = new PolyButton(position + new Vector2(0, -19 * scale), upHitbox, ContentStore.tickerArrowUp, new Vector2(8, 8), scale, 0f);
            LinePoly downHitbox = new LinePoly(
                Vector2.Zero,
                new Vector2(-3, 10),
                new Vector2(3, 10),
                new Vector2(10, -3),
                new Vector2(10, -9),
                new Vector2(-10, -9),
                new Vector2(-10, -3)
                );

            downButton     = new PolyButton(position + new Vector2(0, 19 * scale), downHitbox, ContentStore.tickerArrowDown, new Vector2(8, 7), scale, 0f);
            displayTexture = new AnchoredTexture(ContentStore.tickerDisplay, Vector2.Zero, 0f, new Vector2(18, 10), scale);
            displayFont    = ScaleManager.LargeFont;
        }
Ejemplo n.º 2
0
 public void addAnchoredTexture(AnchoredTexture texture)
 {
     textures.Add(texture);
 }