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

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

            Overlord.Init();

            Harmony.CreateAndPatchAll(typeof(ClassroomFolders));
        }
예제 #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;
            }
        }
예제 #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;
            }
        }
예제 #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;
            }
        }
예제 #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;
            }
        }