Exemple #1
0
 public void Share(List <ScreenshotResolution> resolutions)
 {
     System.DateTime time = System.DateTime.Now;
     foreach (ScreenshotResolution resolution in resolutions)
     {
         // Parse
         UpdateFileName(resolution, time);
         var title   = ScreenshotNameParser.ParseSymbols(m_ShareTitle, resolution, time);
         var subject = ScreenshotNameParser.ParseSymbols(m_ShareSubject, resolution, time);
         var text    = ScreenshotNameParser.ParseSymbols(m_ShareText, resolution, time);
         // Share
         ShareUtils.ShareImage(resolution.m_Texture, resolution.m_FileName, title, subject, text);
     }
 }
        public void UpdateFileName(ScreenshotResolution resolution, System.DateTime time, string currentCamera = "", string currentBatch = "", string currentComposer = "")
        {
            // Update the filenames
            m_Config.UpdateFileName(resolution, time);

            // Parse symbols etc.
            resolution.m_FileName = resolution.m_FileName.Replace("{layer}", currentCamera);
            resolution.m_FileName = resolution.m_FileName.Replace("{batch}", currentBatch);
            resolution.m_FileName = resolution.m_FileName.Replace("{composer}", currentComposer);

            if (!m_Config.m_OverrideFiles)
            {
                resolution.m_FileName = ScreenshotNameParser.PreventOverride(resolution.m_FileName);
            }
        }
Exemple #3
0
        public string GetPath()
        {
            string path = m_DestinationFolder == ScreenshotNameParser.DestinationFolder.CUSTOM_FOLDER ? m_RootedPath : m_RelativePath;

            return(ScreenshotNameParser.ParsePath(m_DestinationFolder, path));
        }
Exemple #4
0
        public string ParseFileName(ScreenshotResolution resolution, System.DateTime time)
        {
            string path = m_DestinationFolder == ScreenshotNameParser.DestinationFolder.CUSTOM_FOLDER ? m_RootedPath : m_RelativePath;

            return(ScreenshotNameParser.ParseFileName(m_FileName, resolution, m_DestinationFolder, path, m_FileFormat, m_OverwriteFiles, time));
        }