diff --git a/MiraAPI/Patches/Options/GameOptionsMenuPatch.cs b/MiraAPI/Patches/Options/GameOptionsMenuPatch.cs index dfa9de0..202607e 100644 --- a/MiraAPI/Patches/Options/GameOptionsMenuPatch.cs +++ b/MiraAPI/Patches/Options/GameOptionsMenuPatch.cs @@ -51,8 +51,8 @@ public static class GameOptionsMenuPatch foreach (TextMeshPro textMeshPro in newOpt.GetComponentsInChildren(true)) { if (group.GroupColor != Color.clear) textMeshPro.color = group.GroupColor.DarkenColor(); - textMeshPro.fontMaterial.SetFloat("_StencilComp", 3f); - textMeshPro.fontMaterial.SetFloat("_Stencil", 20); + textMeshPro.fontMaterial.SetFloat(ShaderID._StencilComp, 3f); + textMeshPro.fontMaterial.SetFloat(ShaderID._Stencil, 20); } __instance.Children.Add(newOpt); @@ -83,8 +83,8 @@ public static class GameOptionsMenuPatch } foreach (TextMeshPro textMeshPro in newOpt.GetComponentsInChildren(true)) { - textMeshPro.fontMaterial.SetFloat("_StencilComp", 3f); - textMeshPro.fontMaterial.SetFloat("_Stencil", 20); + textMeshPro.fontMaterial.SetFloat(ShaderID._StencilComp, 3f); + textMeshPro.fontMaterial.SetFloat(ShaderID._Stencil, 20); } __instance.Children.Add(newOpt);