public void handleFinish() { if (linksTo == null && eventLink != null) { //DialogBrowser.Navigate(DialogBrowser.currentUI.initialDialog); // enabled = false; Keyboard.KeyDown -= eventLink; Demo.mode = InputMode.Menu; //NOTE: switches to SimpleUI } else if (actionLink != null) { //DialogBrowser.Navigate(DialogBrowser.currentUI.initialDialog); //enabled = true; DialogBrowser.Hide(); } }
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(); } }