internal void Awake() { _instance = this; Logger = base.Logger; if (_currentSceneFolder.IsNullOrEmpty()) { _currentSceneFolder = SceneUtils.StudioSceneRootFolder; } Harmony.CreateAndPatchAll(typeof(Hooks)); ExtendedSave.SceneBeingLoaded += ExtendedSave_SceneBeingLoaded; StudioSaveLoadApi.SceneLoad += StudioSaveLoadApi_SceneLoad; }
internal void Main() { _instance = this; Logger = base.Logger; NavigateNextSceneShortcut = Config.Bind("Keyboard Shortcuts", "Navigate Next", new KeyboardShortcut(KeyCode.F3, KeyCode.LeftShift), "Navigate to the next (newer) scene"); NavigatePrevSceneShortcut = Config.Bind("Keyboard Shortcuts", "Navigate Previous", new KeyboardShortcut(KeyCode.F4, KeyCode.LeftShift), "Navigate to the previous (older) scene"); ReloadCurrentSceneShortcut = Config.Bind("Keyboard Shortcuts", "Reload Current", new KeyboardShortcut(KeyCode.F5, KeyCode.LeftShift), "Reload the currently loaded scene"); NotificationSoundsEnabled = Config.Bind("Config", "Notification Sounds", true, "When enabled, notification sounds will play when scene loading is complete, or navigation fails"); TrackLastLoadedSceneEnabled = Config.Bind("Config", "Track Last Loaded Scene", true, "When enabled, the last loaded scene will be tracked externally and can be reloaded upon return"); RestoreLoaderPage = Config.Bind("Config", "Restore Loader Page", true, "When opening the scene browser, scroll to the last loaded scene"); GeBoAPI.Instance.SetupNotificationSoundConfig(GUID, NotificationSoundsEnabled); }