public void Draw(NSpriteBatch s, Vector2 q) { if (s.IsBegan) { s.End(); } if (!s.IsBegan) { s.Begin(SpriteBlendMode.Additive); } this.praticle2.Draw((SpriteBatch)s, q); this.sppraticle.Draw((SpriteBatch)s, q); this.sppraticle2.Draw((SpriteBatch)s, q); s.Draw(this.bosslist, new Vector2(this.Position.X + q.X, this.Position.Y + q.Y), new Rectangle?(new Rectangle(225, 135, 138, 138)), Color.White, MathHelper.ToRadians((float)this.cirrotate), new Vector2(69.5f, 69.5f), this.cirscale, SpriteEffects.None, 0.0f); if (s.IsBegan) { s.End(); } if (!s.IsBegan) { s.Begin(); } this.SpecialDraw((SpriteBatch)s, q); s.Draw(this.tex, new Vector2(this.Position.X + q.X, this.Position.Y + q.Y), new Rectangle?(new Rectangle((int)((double)this.origin.X + (double)this.ns * (double)this.originsize.X), (int)((double)this.origin.Y + (double)this.ny * (double)this.originsize.Y), (int)this.originsize.X, (int)this.originsize.Y)), new Color(this.rgb.X, this.rgb.Y, this.rgb.Z, this.alpha), 0.0f, this.judge, this.scale, SpriteEffects.None, 0.0f); this.rgb.X = 1f; this.rgb.Y = 1f; }
protected override void LoadContent() { try { Cry.Key = "NYLilMS35bt1RuSa47uRvO1FCYgPVq"; Cry.Vector = "KU4Tn93FEoYca"; this.spriteBatch = new NSpriteBatch(this.GraphicsDevice); this.screen = Texture2D.FromFile(this.GraphicsDevice, Cry.Decry("Content\\Graphics\\Pattern\\screen.xna", 0)); this.achivmanager = new AchievementManager(Texture2D.FromFile(this.GraphicsDevice, Cry.Decry("Content\\Graphics\\Info\\achivboard.xna", 0))); } catch (Exception ex) { StreamWriter streamWriter = new StreamWriter("Error.txt"); DateTime now = DateTime.Now; streamWriter.Write("[" + now.Hour.ToString("00") + ":" + now.Minute.ToString("00") + ":" + now.Second.ToString("00") + "]\n" + ex.ToString()); streamWriter.Close(); Main.Message(ex.ToString()); } }
public void Draw(NSpriteBatch s, bool Pause) { this.gd.SetRenderTarget(0, this.renderTarget); foreach (ModelM model in this.ModelCollection) { if (model.label != "1003") { model.Draw(this.Anti, this.cameraViewMatrix, this.cameraProjectionMatrix, this.g.GraphicsDevice); } } if (this._3dpraticle != null) { this._3dpraticle.Draw((SpriteBatch)s, this.Anti, this.cameraViewMatrix, this.cameraProjectionMatrix, this.g.GraphicsDevice); } if (this.GetModelid("1003") != -1) { this.ModelCollection[this.GetModelid("1003")].Draw(this.Anti, this.cameraViewMatrix, this.cameraProjectionMatrix, this.g.GraphicsDevice); } this.gd.SetRenderTarget(0, (RenderTarget2D)null); }