public NewGameFolders() { _folderTreeView = new FolderTreeView(Overlord.GetUserDataRootPath(), Overlord.GetDefaultPath(0)) { CurrentFolderChanged = OnFolderChanged }; Overlord.Init(); }
public ClassroomFolders() { _folderTreeView = new FolderTreeView(Overlord.GetUserDataRootPath(), Overlord.GetDefaultPath(0)) { CurrentFolderChanged = OnFolderChanged }; Overlord.Init(); Harmony.CreateAndPatchAll(typeof(ClassroomFolders)); }
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; } }
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; } }
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; } }
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; } }