Exemple #1
0
 public void LoadContent(ContentManager Content, string filenameTrans, string filenameNoTrans)
 {
     trans.LoadContent(Content, filenameTrans);
     overData = new Color[trans.GetWidth() * trans.GetHeight()];
     notrans.LoadContent(Content, filenameNoTrans);
     trans.GetData(overData);
 }
Exemple #2
0
 public void LoadContent(ContentManager Content, string filenameTrans, string filenameNoTrans, string filenameStetic, Color color)
 {
     trans   = new BasicSprite(Rectangle.Empty, color);
     notrans = new BasicSprite(Rectangle.Empty, color);
     stetic  = new BasicSprite(Rectangle.Empty, color);
     stetic.LoadContent(Content, filenameStetic);
     trans.LoadContent(Content, filenameTrans);
     overData = new Color[trans.GetWidth() * trans.GetHeight()];
     notrans.LoadContent(Content, filenameNoTrans);
     trans.GetData(overData);
     trans.setPos(new Rectangle(0, 0, trans.GetTexture().Width, trans.GetTexture().Height));
     notrans.setPos(new Rectangle(0, 0, notrans.GetTexture().Width, notrans.GetTexture().Height));
     //Console.WriteLine("trans pos"+trans.getPos());
 }