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