예제 #1
0
 private void DrawBlingBlingBoy(On.Terraria.Main.orig_DrawInterface orig, Main self, GameTime gameTime)
 {
     orig(self, gameTime);
     if (IceWorld.BossDowned)
     {
         BlingBlingTimer++;
     }
     if (BlingBlingTimer > 6000 && IceWorld.BossDowned)
     {
         Main.spriteBatch.Begin();
         Main.spriteBatch.Draw(ModContent.GetTexture("IceKracken/Bling"), new Rectangle(0, 0, Main.screenWidth, Main.screenHeight), Color.White * ((BlingBlingTimer - 6000) / 60000f));
         Main.spriteBatch.End();
     }
 }
예제 #2
0
        public void DrawForeground(On.Terraria.Main.orig_DrawInterface orig, Main self, GameTime gameTime)
        {
            Main.spriteBatch.Begin();

            foreach (var fg in ForegroundLoader.Foregrounds)
            {
                fg.Render(Main.spriteBatch);
            }

            Main.spriteBatch.End();

            try //I dont know why this is ehre but it was in the old one so im keeping it to be safe
            {
                orig(self, gameTime);
            }
            catch { }
        }
예제 #3
0
 public void DrawForeground(On.Terraria.Main.orig_DrawInterface orig, Main self, GameTime gameTime)
 {
     Main.spriteBatch.Begin(default, default, SamplerState.PointClamp, default, default); //Main.spriteBatch.Begin()