MapView.View.drawTileGray C# (CSharp) Method

drawTileGray() private method

private drawTileGray ( Graphics g, XCMapTile mt, int x, int y ) : void
g System.Drawing.Graphics
mt XCom.XCMapTile
x int
y int
return void
		private void drawTileGray(Graphics g, XCMapTile mt,int x, int y)
		{
			if(mt.Ground != null && TopView.Instance.GroundVisible)
				g.DrawImage(mt.Ground[MapViewPanel.Current].Gray,x,y-mt.Ground.Info.TileOffset);

			if(mt.North != null && TopView.Instance.NorthVisible)
				g.DrawImage(mt.North[MapViewPanel.Current].Gray,x,y-mt.North.Info.TileOffset);

			if(mt.West != null && TopView.Instance.WestVisible)
				g.DrawImage(mt.West[MapViewPanel.Current].Gray,x,y-mt.West.Info.TileOffset);

			if(mt.Content != null && TopView.Instance.ContentVisible)
				g.DrawImage(mt.Content[MapViewPanel.Current].Gray,x,y-mt.Content.Info.TileOffset);
		}