Beispiel #1
0
 protected virtual void saveClick(object sender, InputEngine.MouseArgs e)
 {
     Sound.SoundPlayer.PlayButtonClick();
     if (tb.Text == "")
     {
         return;
     }
     try
     {
         if (saves.SelectedIndex != -1)
         {
             mb = YesNoMessageBox.Show("Are you sure you want to\r\nreplace existing file: \r\n" + saves.GetSelected() + "?");
             mb.onButtonClicked += new YesNoMessageBox.ButtonClickedEventHandler(mbReplace_onButtonClicked);
         }
         else
         {
             Save();
             GUIEngine.ChangeScene(Graphics.GUI.GUIEngine.s_game, null);
             //GUIEngine.curScene = null;
         }
     }
     catch
     {
         var a = OKMessageBox.Show("Wrong filename!");
         a.onButtonClicked += new OKMessageBox.ButtonClickedEventHandler(a_onButtonClicked);
     }
 }
Beispiel #2
0
 public static OKMessageBox Show(String txt)
 {
     var a = new OKMessageBox(txt);
     a.Initialize();
     a.isVisible = true;
     GUIEngine.AddHUDScene(a);
     return a;
 }
Beispiel #3
0
        public static OKMessageBox Show(String txt)
        {
            var a = new OKMessageBox(txt);

            a.Initialize();
            a.isVisible = true;
            GUIEngine.AddHUDScene(a);
            return(a);
        }
Beispiel #4
0
 void MainMenu_onClicked(object sender, InputEngine.MouseArgs e)
 {
     OKMessageBox.Show("Not implemented yet");
 }
Beispiel #5
0
 protected void a_onButtonClicked(object sender, OKMessageBox.ButtonClickedArgs e)
 {
     tb.isFocused = true;
 }