Пример #1
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();
     }
 }
Пример #2
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();
     }
 }