Exemplo n.º 1
0
        public void Initialize()
        {
            cards = new List <FilmCard>();

            filmList = new SideList(new Vector2(0, 0), (int)(gameController._WIDTH * Variables.sideListScreenPercent / 100), gameController._HEIGHT, gameController);
            items    = new List <FilmData>();
            for (int i = 0; i < 20; i++)
            {
                FilmData auxFilm = new FilmData();
                auxFilm.name = "Film " + i;
                items.Add(auxFilm);
            }
            filmList.setListItems(items);
            spriteBatch = new SpriteBatch(gameController.GraphicsDevice);
            showCard(selectedFilm);
        }
Exemplo n.º 2
0
        public void Initialize()
        {
            cards = new List<FilmCard>();

            filmList = new SideList(new Vector2(0, 0), (int)(gameController._WIDTH * Variables.sideListScreenPercent / 100), gameController._HEIGHT, gameController);
            items = new List<FilmData>();
            for (int i = 0; i < 20; i++)
            {
                FilmData auxFilm = new FilmData();
                auxFilm.name = "Film " + i;
                items.Add(auxFilm);
            }
            filmList.setListItems(items);
            spriteBatch = new SpriteBatch(gameController.GraphicsDevice);
            showCard(selectedFilm);
        }