protected override void Draw(GameTime time) { // Draw the TextLayout base.Draw(time); //RenderTarget2D.DrawTextLayout(new Vector2(0, 0), TextLayout, new SolidColorBrush(RenderTarget2D, Color.White), DrawTextOptions.None); ScreenManager.Draw(time); }
public override void Draw(GameTime gameTime) { for (int i = 0; i < DrawableComponents.Count; i++) { if (DrawableComponents[i].Visible) DrawableComponents[i].Draw(gameTime); } base.Draw(gameTime); }
public override void Update(GameTime gameTime) { for (int i = 0; i < DrawableComponents.Count; i++) { if (Components[i].Enabled) Components[i].Update(gameTime); } base.Update(gameTime); }
protected override void Update(GameTime time) { base.Update(time); ScreenManager.Update(time); }
public virtual void Draw(GameTime gameTime) { }
/// <summary> /// In a derived class, implements logic to update any relevant sample state. /// </summary> protected virtual void Update(GameTime time) { if(Components!=null) foreach (var item in Components) { } }
/// <summary> /// In a derived class, implements logic to render the sample. /// </summary> protected virtual void Draw(GameTime time) { }
public override void Update(GameTime gameTime) { base.Update(gameTime); if (CurrentScreen != null) CurrentScreen.Update(gameTime); }
public override void Draw(GameTime gameTime) { base.Draw(gameTime); if (CurrentScreen != null) CurrentScreen.Draw(gameTime); }
public override void Update(GameTime gameTime) { base.Update(gameTime); }
public override void Draw(GameTime gameTime) { base.Draw(gameTime); RenderTarget2D.DrawTextLayout(new Vector2(0, 0), new TextLayout(Game.FactoryDWrite, "编程棋 Alpha 0", new TextFormat(Game.FactoryDWrite, "微软雅黑", 128) { TextAlignment = TextAlignment.Center, ParagraphAlignment = ParagraphAlignment.Center }, Game.RenderTarget2D.Size.Width, Game.RenderTarget2D.Size.Height), new SolidColorBrush(RenderTarget2D, Color.White), DrawTextOptions.None); }
public virtual void Update(GameTime gameTime) { }