Example #1
0
        public NewGameFolders()
        {
            _folderTreeView = new FolderTreeView(Overlord.GetUserDataRootPath(), Overlord.GetDefaultPath(0))
            {
                CurrentFolderChanged = OnFolderChanged
            };

            Overlord.Init();
        }
Example #2
0
        public ClassroomFolders()
        {
            _folderTreeView = new FolderTreeView(Overlord.GetUserDataRootPath(), Overlord.GetDefaultPath(0))
            {
                CurrentFolderChanged = OnFolderChanged
            };

            Overlord.Init();

            Harmony.CreateAndPatchAll(typeof(ClassroomFolders));
        }
Example #3
0
        public static void InitializePatch(CustomCharaFile __instance)
        {
            if (_customCharaFile == null)
            {
                _customCharaFile = __instance;

                _folderTreeView.DefaultPath   = Overlord.GetDefaultPath(__instance.chaCtrl.sex);
                _folderTreeView.CurrentFolder = _folderTreeView.DefaultPath;

                _targetScene = Scene.AddSceneName;
            }
        }
Example #4
0
        public static void Init(PreviewCharaList list, int sex)
        {
            if (_customCharaFile != list)
            {
                // Stop events from firing
                _customCharaFile = null;

                _folderTreeView.DefaultPath   = Overlord.GetDefaultPath(sex);
                _folderTreeView.CurrentFolder = _folderTreeView.DefaultPath;

                _customCharaFile = list;
                _targetScene     = Scene.AddSceneName;
            }
        }
Example #5
0
        public static void Init(EntryPlayer list, int sex)
        {
            if (_newGame != list)
            {
                // Stop events from firing
                _newGame = null;

                _folderTreeView.DefaultPath = Overlord.GetDefaultPath(sex);
                _folderTreeView.CurrentFolder = _folderTreeView.DefaultPath;

                _newGame = list;
                _targetScene = Scene.AddSceneName;
            }
        }
Example #6
0
        public static void Init(FreeHPreviewCharaList list, int sex)
        {
            if (_freeHFile != list)
            {
                // Stop events from firing
                _freeHFile = null;

                _folderTreeView.DefaultPath   = Overlord.GetDefaultPath(sex);
                _folderTreeView.CurrentFolder = _folderTreeView.DefaultPath;

                _freeHFile = list;
                _customFileListSelecter = list.GetComponentInChildren <CustomFileListSelecter>();
                _targetScene            = Scene.AddSceneName;
            }
        }