public static bool ShowAlertDialog(Action <int> action, string errorCode) { AlertManager.lastErrorCode = errorCode; if (errorCode == "LOCAL_ERROR_TIMEOUT") { string @string = StringMaster.GetString("AlertNetworkErrorTitle"); string string2 = StringMaster.GetString("AlertNetworkErrorTimeOut"); return(AlertManager.ShowAlertDialog(action, @string, string2, AlertManager.ButtonActionType.Retry, true)); } if (errorCode == "LOCAL_ERROR_WWW") { string string3 = StringMaster.GetString("AlertDataErrorTitle"); string string4 = StringMaster.GetString("AlertDataErrorInfo"); return(AlertManager.ShowAlertDialog(action, string3, string4, AlertManager.ButtonActionType.Retry, true)); } if (errorCode == "LOCAL_ERROR_JSONPARSE") { string string5 = StringMaster.GetString("SaveFailedTitle"); string string6 = StringMaster.GetString("AlertJsonErrorInfo"); return(AlertManager.ShowAlertDialog(action, string5, string6, AlertManager.ButtonActionType.Title, true)); } if (errorCode == "LOCAL_ERROR_ASSET_DATA") { string string7 = StringMaster.GetString("AlertNetworkErrorTitle"); string string8 = StringMaster.GetString("AlertNetworkErrorRetry"); return(AlertManager.ShowAlertDialog(action, string7, string8, AlertManager.ButtonActionType.Retry, true)); } if (errorCode == "LOCAL_ERROR_SAVE_DATA_IO") { string string9 = StringMaster.GetString("SaveFailedTitle"); string string10 = StringMaster.GetString("SaveFailed-02"); return(AlertManager.ShowAlertDialog(action, string9, string10, AlertManager.ButtonActionType.Close, true)); } if (errorCode == "LOCAL_ERROR_SAVE_DATA_OTHER") { string string11 = StringMaster.GetString("SaveFailedTitle"); string string12 = StringMaster.GetString("SaveFailed-01"); return(AlertManager.ShowAlertDialog(action, string11, string12, AlertManager.ButtonActionType.Close, true)); } if (errorCode == "LOCAL_ERROR_SAVE_DATA_SECURITY") { string string13 = StringMaster.GetString("SaveFailedTitle"); string string14 = StringMaster.GetString("SaveFailed-03"); return(AlertManager.ShowAlertDialog(action, string13, string14, AlertManager.ButtonActionType.Close, true)); } if (errorCode == "E-AL09") { string string15 = StringMaster.GetString("TakeOver-12"); string string16 = StringMaster.GetString("TakeOver-13"); return(AlertManager.ShowAlertDialog(action, string15, string16, AlertManager.ButtonActionType.Close, true)); } if (errorCode == "E-AL10") { string string17 = StringMaster.GetString("TakeOver-12"); string string18 = StringMaster.GetString("TakeOver-13"); return(AlertManager.ShowAlertDialog(action, string17, string18, AlertManager.ButtonActionType.Close, true)); } if (!string.IsNullOrEmpty(AlertManager.GetNeptuneErrorString(errorCode))) { return(AlertManager.ShowAlertDialog(action, AlertManager.GetNeptuneErrorTitle(errorCode), AlertManager.GetNeptuneErrorString(errorCode), AlertManager.ButtonActionType.Close, true)); } GameWebAPI.RespDataMA_MessageM.MessageM alert = AlertMaster.GetAlert(errorCode); if (alert == null) { alert = AlertMaster.GetAlert("E-GP01"); } if (alert == null) { return(AlertManager.ErrorCallback(action, errorCode)); } AlertManager.ButtonActionType actionType = (AlertManager.ButtonActionType) int.Parse(alert.actionType); AlertManager.DialogType dialogType = (AlertManager.DialogType) int.Parse(alert.actionValue); if (dialogType == AlertManager.DialogType.Alert) { return(AlertManager.ShowAlertDialog(action, alert.messageTitle, alert.messageText, actionType, true)); } if (dialogType != AlertManager.DialogType.Modal) { return(AlertManager.ShowAlertDialog(action, alert.messageTitle, alert.messageText, actionType, true)); } return(AlertManager.ShowModalMessage(action, alert.messageTitle, alert.messageText, actionType, true)); }