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 PopupMessageInputFieldPatch(
     string title,
     string defaultText,
     Panel_PopUpInputField.OnOkDelegate okDelegate
     )
 {
     if (PopupQueue.PopupIsActive())
     {
         ptfInstance.ptfLogger.LogInfo("popup is already active, queueing!");
         PopupInputFieldQueueItem QueueItem = new PopupInputFieldQueueItem(
             title,
             defaultText,
             okDelegate
             );
         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);
 }