Exemple #1
0
 //Draw buttons for location app
 public override void AndroidDraw(SpriteBatch spritebatch, GraphicsDevice graphDevice)
 {
     Save.Draw(spritebatch, Offset);
     Delete.Draw(spritebatch, Offset);
     TextDrawing.Drawtext(new Point(0, 650) + Offset, LocationApplication.ReadCurrentLocationFromFile(), spritebatch);
     //TextDrawing.Drawtext(new Point(400, 800) + Offset, ErrorShow, spritebatch);
 }
 //draw buttons
 public override void AndroidDraw(SpriteBatch spritebatch, GraphicsDevice graphDevice)
 {
     // dynamicTest.Draw(spritebatch, Offset);
     dynamiclol1.Draw(spritebatch, Offset);
     dynamiclol2.Draw(spritebatch, Offset);
     dynamiclol3.Draw(spritebatch, Offset);
     dynamiclol4.Draw(spritebatch, Offset);
     dynamiclol5.Draw(spritebatch, Offset);
     dynamiclol6.Draw(spritebatch, Offset);
     //dynamiclol7.Draw(spritebatch, Offset);
     //dynamiclol8.Draw(spritebatch, Offset);
 }
Exemple #3
0
 //Draw Bar Chart
 public override void AndroidDraw(SpriteBatch spritebatch, GraphicsDevice graphDevice)
 {
     if (GroupedBarchart == null)
     {
         spritebatch.End();
         Texture2D temp = GroupedBarChart.Make(data1, data2, graphDevice, spritebatch, namedata1, namedata2, data1color, data2color);
         GroupedBarchart = new Picture(temp, new Point(10, 200), new Point(temp.Width, temp.Height));
         spritebatch.Begin();
     }
     if (Legend == null)
     {
         spritebatch.End();
         Texture2D temp = GroupedBarChart.Legend(data1, data2, graphDevice, spritebatch, namedata1, namedata2, data1color, data2color);
         Legend = new Picture(temp, new Point(10, 800), new Point(temp.Width, temp.Height));
         spritebatch.Begin();
     }
     GroupedBarchart.draw(spritebatch, Offset);
     Legend.draw(spritebatch, Offset);
     ChooseNeighbourhood.Draw(spritebatch, Offset);
 }
Exemple #4
0
 public void AndroidDrawBase(SpriteBatch spritebatch, GraphicsDevice graphDevice)
 {
     graphDevice.Clear(backgroundColor);
     AndroidDraw(spritebatch, graphDevice);
     dynamichome.Draw(spritebatch, Offset);
 }