public PopupWarningQueueItem(
     string message,
     PopUpWarningCategory category
     )
 {
     this.message  = message;
     this.category = category;
 }
 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 PopupWarningPatch(
     string message,
     PopUpWarningCategory category
     )
 {
     if (PopupQueue.PopupIsActive())
     {
         ptfInstance.ptfLogger.LogInfo("popup is already active, queueing!");
         PopupWarningQueueItem QueueItem = new PopupWarningQueueItem(
             message,
             category
             );
         PopupQueue.queue.Enqueue(QueueItem);
         return(false);
     }
     return(true);
 }
 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);
 }
 public static bool PopupTwoChoicesPatch(
     string message,
     string choiceA,
     string choiceB,
     Panel_PopUpTwoChoices.OnChoiceDelegate callbackA,
     Panel_PopUpTwoChoices.OnChoiceDelegate callbackB,
     PopUpWarningCategory warningCategory
     )
 {
     if (PopupQueue.PopupIsActive())
     {
         ptfInstance.ptfLogger.LogInfo("popup is already active, queueing!");
         PopupTwoChoicesQueueItem QueueItem = new PopupTwoChoicesQueueItem(
             message,
             choiceA,
             choiceB,
             callbackA,
             callbackB
             );
         PopupQueue.queue.Enqueue(QueueItem);
         return(false);
     }
     return(true);
 }