예제 #1
0
 public static void DrawBehindUI(SpriteBatch spriteBatch)
 {
     if (!Main.gameMenu)
     {
         HEROsModVideo.Services.MobHUD.MobInfo.Draw(spriteBatch);
         SelectionTool.Draw(spriteBatch);
         if (RegionService.RegionsVisible)
         {
             RegionService.DrawRegions(spriteBatch);
         }
         //HEROsModNetwork.CTF.CaptureTheFlag.Draw(spriteBatch);
         CheckTileModificationTool.DrawBoxOnCursor(spriteBatch);
     }
 }
예제 #2
0
 public override void PostDrawTiles()
 {
     if (RegionService.RegionsVisible || SelectionTool.Visible || CheckTileModificationTool.ListeningForInput)
     {
         Main.spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, Main.DefaultSamplerState,
                                DepthStencilState.None, Main.instance.Rasterizer, null, Main.GameViewMatrix.TransformationMatrix);
         if (SelectionTool.Visible)
         {
             SelectionTool.Draw(Main.spriteBatch);
         }
         if (RegionService.RegionsVisible)
         {
             RegionService.DrawRegions(Main.spriteBatch);
         }
         if (CheckTileModificationTool.ListeningForInput)
         {
             CheckTileModificationTool.DrawBoxOnCursor(Main.spriteBatch);
         }
         Main.spriteBatch.End();
     }
 }