Exemple #1
0
 public void handleRecall()
 {
     if (linksTo == null && eventLink != null)
     {
         ScreenBrowser.Navigate(ScreenBrowser.currentUI.initialScreen);
         enabled           = true;
         Keyboard.KeyDown -= eventLink;
         Demo.mode         = InputMode.Menu;
     }
     else if (linksTo != null)
     {
         enabled = true;
     }
 }
Exemple #2
0
 public void handleAction(InputEventArgs e)
 {
     if (linksTo != null)
     {
         DialogBrowser.Navigate(linksTo);
     }
     else if (eventLink != null)
     {
         ScreenBrowser.Hide();
         Demo.mode         = InputMode.Map;
         Keyboard.KeyDown -= eventLink;
         Keyboard.KeyDown += eventLink;
     }
     if (actionLink != null)
     {
         actionLink();
     }
 }
Exemple #3
0
 public void handleFinish()
 {
     if (linksTo == null && eventLink != null)
     {
         ScreenBrowser.Navigate(ScreenBrowser.currentUI.initialScreen);
         enabled           = false;
         Keyboard.KeyDown -= eventLink;
         if (Demo.mode != InputMode.Dialog)
         {
             Demo.mode = InputMode.Menu;
         }
     }
     else if (actionLink != null)
     {
         ScreenBrowser.Navigate(ScreenBrowser.currentUI.initialScreen);
         enabled = true;
         ScreenBrowser.Hide();
     }
 }