private void ShowCurrentRenderMessage()
 {
     if (PRModSettings.renderFeedback == RenderFeedback.Window)
     {
         messageBox = new SmallMessageBox("LPR_Rendering".Translate());
         Find.WindowStack.Add(messageBox);
     }
     else if (PRModSettings.renderFeedback == RenderFeedback.Message)
     {
         Messages.Message("LPR_Rendering".Translate(), MessageTypeDefOf.CautionInput, false);
     }
 }
        private void DoEncodingPost()
        {
            // Clean up unused objects
            imageTextureRawData = null;
            UnityEngine.Object.Destroy(imageTexture);
            imageTextureWidth  = 0;
            imageTextureHeight = 0;

            // Signal finished encoding
            manuallyTriggered = false;
            encodingInt       = false;

            // Hide message box
            if (messageBox != null)
            {
                messageBox.Close();
                messageBox = null;
            }
        }