コード例 #1
0
ファイル: MainMenu.cs プロジェクト: tubitos/1
        protected override void LoadContent(PloobsEngine.Engine.GraphicInfo GraphicInfo, PloobsEngine.Engine.GraphicFactory factory, PloobsEngine.SceneControl.IContentManager contentManager)
        {
            arenScript = contentManager.GetAsset<SpriteFont>("Images//font//ArenScriptFont");
            backT = contentManager.GetAsset<Texture2D>("Images//menus//MainMenu");
            drawBackground = true;

            Init();

            base.LoadContent(GraphicInfo, factory, contentManager);
        }
 protected override void LoadContent(PloobsEngine.Engine.GraphicInfo GraphicInfo, PloobsEngine.Engine.GraphicFactory factory)
 {
     SpriteFont = factory.GetAsset<SpriteFont>("ConsoleFont", true);
     basicEffect = factory.GetBasicEffect();
     basicEffect.TextureEnabled = true;
     basicEffect.VertexColorEnabled = true;
     spriteBatch = factory.GetSpriteBatch();
     base.LoadContent(GraphicInfo, factory);
 }