public static void ShowMessage(DialogPopupDelegate popupDelegate, String format, params Object[] args) { String message = StringUtils.TryFormat(format, args); DialogPopup popup = new DialogPopup(popupDelegate, "Message", message, ButtonOk); Application.RootController().GetCurrentController().StartPopup(popup); }
private void OnDisconnectedFromServerDialogFinish(DialogPopup popup, int buttonId) { MultiplayerLobbyScreen lobbyScreen = FindLobbyScreen(); Debug.Assert(lobbyScreen != null); lobbyScreen.Finish(); }
private static void DefaultDialogPopupDelegate(DialogPopup popup, int buttonId) { popup.Finish(); popup.NotifyPopupDelegate(buttonId); }