public static bool PopupMessageCancelButtonFix(
     string message,
     Panel_PopUpMessage.OnChoiceDelegate okDelegate
     )
 {
     PopUpMessage.Display(message, okDelegate, () => {}, PopUpWarningCategory.NONE);
     GameUI.m_Instance.m_PopUpMessage.m_NeverShowAgainToggle.transform.parent.gameObject.SetActive(false);
     return(false);
 }
 public PopupMessageQueueItem(
     string message,
     Panel_PopUpMessage.OnChoiceDelegate okDelegate,
     Panel_PopUpMessage.OnChoiceDelegate cancelDelegate,
     PopUpWarningCategory warningCategory
     )
 {
     this.message         = message;
     this.okDelegate      = okDelegate;
     this.cancelDelegate  = cancelDelegate;
     this.warningCategory = warningCategory;
 }
 public static bool PopupMessagePatch(
     string message,
     Panel_PopUpMessage.OnChoiceDelegate okDelegate,
     Panel_PopUpMessage.OnChoiceDelegate cancelDelegate,
     PopUpWarningCategory warningCategory
     )
 {
     if (PopupQueue.PopupIsActive())
     {
         ptfInstance.ptfLogger.LogInfo("popup is already active, queueing!");
         PopupMessageQueueItem QueueItem = new PopupMessageQueueItem(
             message,
             okDelegate,
             cancelDelegate,
             warningCategory
             );
         PopupQueue.queue.Enqueue(QueueItem);
         return(false);
     }
     return(true);
 }