From e9bac0a737575364133a96249224dc8c4163d9ce Mon Sep 17 00:00:00 2001 From: Clansty Date: Sun, 29 Sep 2024 13:03:54 +0800 Subject: [PATCH] [O] Disable MipMap --- AquaMai/UX/LoadAssetsPng.cs | 6 +++--- AquaMai/Utils/PractiseModeUI.cs | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/AquaMai/UX/LoadAssetsPng.cs b/AquaMai/UX/LoadAssetsPng.cs index c778ea96..e912ee0d 100644 --- a/AquaMai/UX/LoadAssetsPng.cs +++ b/AquaMai/UX/LoadAssetsPng.cs @@ -68,7 +68,7 @@ public class LoadAssetsPng return null; } - var texture = new Texture2D(1, 1); + var texture = new Texture2D(1, 1, TextureFormat.RGBA32, false); texture.LoadImage(File.ReadAllBytes(path)); return texture; } @@ -125,7 +125,7 @@ public class LoadAssetsPng var filename = genre.FileName.ToLowerInvariant(); var locPath = localAssetsContents.TryGetValue(filename, out var laPath) ? laPath : tabTitlePaths.GetValueOrDefault(filename); if (locPath is null) continue; - var texture = new Texture2D(1, 1); + var texture = new Texture2D(1, 1, TextureFormat.RGBA32, false); texture.LoadImage(File.ReadAllBytes(locPath)); ____genreSprite[id] = Sprite.Create(texture, new Rect(0, 0, texture.width, texture.height), new Vector2(0.5f, 0.5f)); } @@ -137,7 +137,7 @@ public class LoadAssetsPng var filename = version.FileName.ToLowerInvariant(); var locPath = localAssetsContents.TryGetValue(filename, out var laPath) ? laPath : tabTitlePaths.GetValueOrDefault(filename); if (locPath is null) continue; - var texture = new Texture2D(1, 1); + var texture = new Texture2D(1, 1, TextureFormat.RGBA32, false); texture.LoadImage(File.ReadAllBytes(locPath)); ____versionSprite[id] = Sprite.Create(texture, new Rect(0, 0, texture.width, texture.height), new Vector2(0.5f, 0.5f)); } diff --git a/AquaMai/Utils/PractiseModeUI.cs b/AquaMai/Utils/PractiseModeUI.cs index 7d161689..e057f05e 100644 --- a/AquaMai/Utils/PractiseModeUI.cs +++ b/AquaMai/Utils/PractiseModeUI.cs @@ -8,8 +8,6 @@ namespace AquaMai.Utils; public class PractiseModeUI : MonoBehaviour { - private GUIWindow window; - private float playerWidth; private float playerCenter; private float windowTop;