Button_beenden


SUBMITTED BY: Thor2607

DATE: Sept. 25, 2016, 5:42 p.m.

FORMAT: C#

SIZE: 894 Bytes

HITS: 419

  1. b_beenden.leftclick += (x, y) => { Game1.instance.Exit(); };
  2. 115: b_beenden.size = butten_size;
  3. 116: b_beenden.pos = new Vector2(loc_x, 425);
  4. 117: b_beenden.setText("Beenden");
  5. 118: b_beenden.ev_over += (x, y) =>
  6. 119: {
  7. 120: b_beenden.setText("Spiel beenden");
  8. 121: soundmgr.play(soundmgr.sound.over);
  9. 122: info.visible = true;
  10. 123: info.pos = new Vector2(loc_x + butten_size.X + 200, 200 + butten_size.Y / 2 - 7);
  11. 124: info.txt = "Beendet das Spiel und komme zu deinem Desktop zurueck";
  12. 125: };
  13. 126: b_beenden.ev_left += (x, y) =>
  14. 127: {
  15. 128: b_beenden.setText("Beenden");
  16. 129: info.visible = false;
  17. 130: };

comments powered by Disqus