public override void LoadContent() { base.LoadContent(); image = mainGame.Content.Load<Texture2D>("Profile/noimage"); sp = mainGame.mySpriteBatch; }
public override void LoadContent() { base.LoadContent(); sp = mainGame.mySpriteBatch; font = mainGame.Content.Load<SpriteFont>("Important/meirio_14"); //背景 backTexture = mainGame.Content.Load<Texture2D>("Profile/eraSelectBack"); backRectangle = new Rectangle(50, height / 100, width - 100, height * 98 / 100); //事件一覧 eventList = new ItemList<Event>( mainGame, Event.PersonSelectEvent(mainGame.person), font, new Rectangle( backRectangle.X + backRectangle.Width / 10, backRectangle.Y + backRectangle.Height / 5, backRectangle.Width * 8 / 10, backRectangle.Height * 5 / 10)); eventList.LoadContent(); //フェードインを有効にする fadeIn.isEnabled = true; }
public override void LoadContent() { base.LoadContent(); sp = mainGame.mySpriteBatch; font = mainGame.Content.Load<SpriteFont>("Important/meirio_14"); //テキストを設定 text = new StringBuilder(); text.Append(mainGame.person.name); text.Append(" (" + mainGame.person.nameKana + ")"); text.Append(Environment.NewLine); text.Append(Environment.NewLine); text.Append("性別 " + mainGame.person.sex); text.Append(Environment.NewLine); text.Append("職業 " + mainGame.person.job); text.Append(Environment.NewLine); text.Append("紹介 " + mainGame.person.profile); }
protected override void LoadContent() { mySpriteBatch = new MySpriteBatch(GraphicsDevice); statusMains[(int)Status.IjinSelect].LoadContent(); //この LoadContentは移り変わるタイミングで行う //statusMains[(int)Status.Profile].LoadContent(); }