diff --git a/Custom Menu Text/Beon b/Custom Menu Text/Beon index bc06e09..d024467 100644 Binary files a/Custom Menu Text/Beon and b/Custom Menu Text/Beon differ diff --git a/Custom Menu Text/CustomMenuTextPlugin.cs b/Custom Menu Text/CustomMenuTextPlugin.cs index f93596d..8029cf6 100644 --- a/Custom Menu Text/CustomMenuTextPlugin.cs +++ b/Custom Menu Text/CustomMenuTextPlugin.cs @@ -24,7 +24,7 @@ public class CustomMenuTextPlugin : IPlugin public static readonly Color defaultBottomColor = Color.red; public const string DEFAULT_CONFIG = -@"# Custom Menu Text v3.0.0 +@"# Custom Menu Text v3.0.1 # by Arti # Special Thanks: Kyle1413 # @@ -162,7 +162,7 @@ Ask in <#7289DA>#support public static List allEntries = null; public string Name => "Custom Menu Text"; - public string Version => "3.0.0"; + public string Version => "3.0.1"; // Store the text objects so when we leave the menu and come back, we aren't creating a bunch of them public static TextMeshPro mainText; @@ -209,6 +209,10 @@ private void SceneManager_sceneLoaded(Scene arg0, LoadSceneMode arg1) public static GameObject loadTextPrefab(string path) { + var oldFonts = GameObject.FindObjectsOfType(); + var glowFonts = oldFonts.Where(f => !f.name.Contains("No Glow")); + var mat = glowFonts.FirstOrDefault()?.material; + GameObject prefab; string fontPath = Path.Combine(Environment.CurrentDirectory, path); if (!File.Exists(fontPath)) @@ -223,6 +227,9 @@ public static GameObject loadTextPrefab(string path) AssetBundle beonBundle = AssetBundle.LoadFromMemory(Properties.Resources.Beon); prefab = beonBundle.LoadAsset("Text"); } + + if (mat != null) prefab.GetComponent().font.material = mat; + return prefab; } diff --git a/Custom Menu Text/Properties/AssemblyInfo.cs b/Custom Menu Text/Properties/AssemblyInfo.cs index 0328968..fe243f7 100644 --- a/Custom Menu Text/Properties/AssemblyInfo.cs +++ b/Custom Menu Text/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("3.0.0.0")] -[assembly: AssemblyFileVersion("3.0.0.0")] +[assembly: AssemblyVersion("3.0.1.0")] +[assembly: AssemblyFileVersion("3.0.1.0")]