Ejemplo n.º 1
0
 public ConfigState()
 {
     /* Set default values */
     fastTagging             = false;
     currentDatabase         = Constants.DEFAULT_DB_NAME;
     lang                    = null;
     autoSave                = false;
     captureVideoStandard    = VideoStandards.P480_16_9.Clone();
     captureEncodingProfile  = EncodingProfiles.MP4.Clone();
     captureEncodingQuality  = EncodingQualities.Medium.Clone();
     renderVideoStandard     = VideoStandards.P720_16_9.Clone();
     renderEncodingProfile   = EncodingProfiles.MP4.Clone();
     renderEncodingQuality   = EncodingQualities.High.Clone();
     overlayTitle            = true;
     enableAudio             = false;
     fps_n                   = 25;
     fps_d                   = 1;
     autorender              = false;
     autorenderDir           = null;
     lastRenderDir           = null;
     lastDir                 = null;
     reviewPlaysInSameWindow = true;
     defaultTemplate         = null;
     hotkeys                 = new Hotkeys();
     projectSortMethod       = ProjectSortMethod.Date;
     ignoreUpdaterVersion    = null;
 }
Ejemplo n.º 2
0
        void OnSortMethodValueChanged(int value)
        {
            ProjectSortMethod sortMethod = (ProjectSortMethod)value;

            switch (sortMethod)
            {
            case ProjectSortMethod.SortByDate:
                UIStateManager.current.Dispatcher.Dispatch(Payload <ActionTypes> .From(ActionTypes.SetProjectSortMethod, ProjectSortMethod.SortByDate));
                break;

            case ProjectSortMethod.SortByName:
                UIStateManager.current.Dispatcher.Dispatch(Payload <ActionTypes> .From(ActionTypes.SetProjectSortMethod, ProjectSortMethod.SortByName));
                break;

            default:
                UIStateManager.current.Dispatcher.Dispatch(Payload <ActionTypes> .From(ActionTypes.SetProjectSortMethod, ProjectSortMethod.SortByDate));
                break;
            }
        }
Ejemplo n.º 3
0
        void OnProjectStateDataChanged(UIProjectStateData data)
        {
            if (data.activeProject != m_CurrentActiveProject)
            {
                m_DialogButton.interactable = data.activeProject != Project.Empty;
                m_CurrentActiveProject      = data.activeProject;
                m_ActiveProjectListItem     = m_ProjectListItems.FirstOrDefault(item => item.project == m_CurrentActiveProject);
            }

            if (m_ActiveProjectListItem != null && data.activeProjectThumbnail != m_ActiveProjectListItem.projectThumbnail)
            {
                m_ActiveProjectListItem.projectThumbnail = data.activeProjectThumbnail;
            }

            if (data.projectSortMethod != m_CurrentProjectSortMethod)
            {
                m_CurrentProjectSortMethod = data.projectSortMethod;
                SortProjects();
            }
        }