Beispiel #1
0
 // ReSharper disable once UnusedMember.Local
 private void OnDialogResponse(VisibleDialog player, int dialogId, int response, int listItem, string inputText)
 {
     if (dialogId != DialogService.DialogId)
     {
         return; // Prevent dialog hacks
     }
     player.ResponseReceived = true;
     player.Handler(new DialogResult(
                        response == 1 ? DialogResponse.LeftButton : DialogResponse.RightButtonOrCancel, listItem, inputText));
 }
Beispiel #2
0
 // ReSharper disable once UnusedMember.Local
 private void OnPlayerDisconnect(VisibleDialog player, DisconnectReason _)
 {
     player.Handler(new DialogResult(DialogResponse.Disconnected, 0, null));
 }