Пример #1
0
        public override void LoadContent()
        {
            base.LoadContent();

            //マップを作成
            map = new MapMain(mainGame);
            map.LoadContent();

            //イベントリストを作成
            eventLists = new ItemList<Event>[8];
            for (int i = 0; i < eventLists.Length; i++)
            {
                eventLists[i] = new ItemList<Event>(
                    mainGame,
                    Event.AreaSelectEvent(mainGame.person, (AreaGroup)i),
                    mainGame.Content.Load<SpriteFont>("Important/meirio_14"),
                    new Rectangle(width * 2 / 3, 0 , width / 3, height ));
                eventLists[i].LoadContent();
            }

            //フェードインを有効にする
            fadeIn.isEnabled = true;
        }
Пример #2
0
        public override void LoadContent()
        {
            base.LoadContent();

            //マップを作成
            map = new MapMain(mainGame);
            map.LoadContent();

            //偉人リストを作成
            personLists = new ItemList<Person>[8];
            for (int i = 0; i < personLists.Length; i++)
            {
                personLists[i] = new ItemList<Person>(
                    mainGame,
                    Person.FromSelectPersons((AreaGroup)i),
                    mainGame.Content.Load<SpriteFont>("Important/meirio_14"),
                    new Rectangle(width *2/ 3, height / 3, width / 3, height * 2 / 3));
                personLists[i].LoadContent();
            }

            //フェードイン開始
            fadeIn.isEnabled = true;
        }