static void Postfix(VRUI.VRUIViewController.DeactivationType deactivationType) { if (deactivationType == VRUI.VRUIViewController.DeactivationType.RemovedFromHierarchy) { Gamemode.ResetGameMode(); } }
private void _UpdatingPreviewClickableColor(VRUI.VRUIViewController.DeactivationType deactivationType) { if (ImagePreview != null && _ColorPickerSettings != null && ColorPicker.ColorPickerPreview != null && ColorPicker.ColorPickerPreview.ImagePreview != null) { ImagePreview.color = ColorPicker.ColorPickerPreview.ImagePreview.color; } _CustomViewController.didDeactivateEvent -= _UpdatingPreviewClickableColor; }
private void _UpdatingPreviewClickableColor(VRUI.VRUIViewController.DeactivationType deactivationType) { if (ImagePreview != null && _ColorPickerSettings != null && _ColorPickerSettings.ColorPickerPreview != null && _ColorPickerSettings.ColorPickerPreview.ImagePreview != null) { ImagePreview.color = _ColorPickerSettings.ColorPickerPreview.ImagePreview.color; } else { Console.WriteLine("[BeatSaberCustomUI.ColorPickerPreviewClickable._UpdatingPreviewClickableColor]: 'ImagePreview' or '_ColorPickerSettings' was null."); } }