diff --git a/NoteTweaks/Patches/NoteArrowPatch.cs b/NoteTweaks/Patches/NoteArrowPatch.cs index 251f8c5..82707bd 100644 --- a/NoteTweaks/Patches/NoteArrowPatch.cs +++ b/NoteTweaks/Patches/NoteArrowPatch.cs @@ -2,7 +2,6 @@ using System.Linq; using System.Reflection; using HarmonyLib; -using Newtonsoft.Json; using NoteTweaks.Utils; using SongCore.Data; using UnityEngine; diff --git a/NoteTweaks/Plugin.cs b/NoteTweaks/Plugin.cs index a0da600..87c874e 100644 --- a/NoteTweaks/Plugin.cs +++ b/NoteTweaks/Plugin.cs @@ -4,7 +4,6 @@ using IPA; using IPA.Config; using IPA.Config.Stores; -using Newtonsoft.Json; using NoteTweaks.Configuration; using NoteTweaks.Installers; using NoteTweaks.Utils; diff --git a/NoteTweaks/UI/ExtraPanelViewController.cs b/NoteTweaks/UI/ExtraPanelViewController.cs index 72cd949..ea66495 100644 --- a/NoteTweaks/UI/ExtraPanelViewController.cs +++ b/NoteTweaks/UI/ExtraPanelViewController.cs @@ -2,7 +2,6 @@ using BeatSaberMarkupLanguage.Attributes; using BeatSaberMarkupLanguage.ViewControllers; using Newtonsoft.Json; -using Newtonsoft.Json.Linq; using NoteTweaks.Configuration; using UnityEngine; using Zenject; @@ -43,8 +42,6 @@ public ExtraPanelViewController() { byte[] manifestData = SiraUtil.Extras.Utilities.GetResource(Assembly.GetExecutingAssembly(), "NoteTweaks.manifest.json"); Manifest = JsonConvert.DeserializeObject(System.Text.Encoding.UTF8.GetString(manifestData)); - - Plugin.Log.Info(System.Text.Encoding.UTF8.GetString(manifestData)); gameVersion = $"(for {Manifest.GameVersion})"; author = $"developed by {Manifest.Author}"; diff --git a/NoteTweaks/UI/PreviewViewController.cs b/NoteTweaks/UI/PreviewViewController.cs index 03aa0ef..057b22b 100644 --- a/NoteTweaks/UI/PreviewViewController.cs +++ b/NoteTweaks/UI/PreviewViewController.cs @@ -29,9 +29,9 @@ internal class NotePreviewViewController : BSMLAutomaticViewController private static Mesh _dotMesh; private static Mesh _dotGlowMesh; private static readonly Texture2D OriginalArrowGlowTexture = Resources.FindObjectsOfTypeAll().ToList().First(x => x.name == "ArrowGlow"); - private static readonly Texture2D ReplacementArrowGlowTexture = Utils.Textures.PrepareTexture(OriginalArrowGlowTexture); + private static readonly Texture2D ReplacementArrowGlowTexture = OriginalArrowGlowTexture.PrepareTexture(); private static readonly Texture2D OriginalDotGlowTexture = Resources.FindObjectsOfTypeAll().ToList().First(x => x.name == "NoteCircleBakedGlow"); - private static readonly Texture2D ReplacementDotGlowTexture = Utils.Textures.PrepareTexture(OriginalDotGlowTexture); + private static readonly Texture2D ReplacementDotGlowTexture = OriginalDotGlowTexture.PrepareTexture(); private static readonly int Color0 = Shader.PropertyToID("_Color"); @@ -224,14 +224,7 @@ public static void UpdateNoteScale() for (int i = 0; i < NoteContainer.transform.childCount; i++) { GameObject noteCube = NoteContainer.transform.GetChild(i).gameObject; - if (noteCube.name.Contains("_Chain_")) - { - noteCube.transform.localScale = Vectors.Max(Plugin.Config.NoteScale * Plugin.Config.LinkScale, 0.1f); - } - else - { - noteCube.transform.localScale = Plugin.Config.NoteScale; - } + noteCube.transform.localScale = noteCube.name.Contains("_Chain_") ? Vectors.Max(Plugin.Config.NoteScale * Plugin.Config.LinkScale, 0.1f) : Plugin.Config.NoteScale; } } diff --git a/NoteTweaks/UI/SettingsViewController.cs b/NoteTweaks/UI/SettingsViewController.cs index f186481..61a159d 100644 --- a/NoteTweaks/UI/SettingsViewController.cs +++ b/NoteTweaks/UI/SettingsViewController.cs @@ -1,5 +1,4 @@ -using System.Reflection; -using BeatSaberMarkupLanguage.Attributes; +using BeatSaberMarkupLanguage.Attributes; using BeatSaberMarkupLanguage.ViewControllers; using NoteTweaks.Configuration; using UnityEngine;