use new ShaderID class

This commit is contained in:
XtraCube committed 2024-08-18 20:28:53 -04:00
1 parent 31449b1481
commit 82e98a309a
1 file changed
+4 -4
@@ -51,8 +51,8 @@ public static class GameOptionsMenuPatch
foreach (TextMeshPro textMeshPro in newOpt.GetComponentsInChildren<TextMeshPro>(true)) foreach (TextMeshPro textMeshPro in newOpt.GetComponentsInChildren<TextMeshPro>(true))
{ {
if (group.GroupColor != Color.clear) textMeshPro.color = group.GroupColor.DarkenColor(); if (group.GroupColor != Color.clear) textMeshPro.color = group.GroupColor.DarkenColor();
textMeshPro.fontMaterial.SetFloat("_StencilComp", 3f); textMeshPro.fontMaterial.SetFloat(ShaderID._StencilComp, 3f);
textMeshPro.fontMaterial.SetFloat("_Stencil", 20); textMeshPro.fontMaterial.SetFloat(ShaderID._Stencil, 20);
} }
__instance.Children.Add(newOpt); __instance.Children.Add(newOpt);
@@ -83,8 +83,8 @@ public static class GameOptionsMenuPatch
} }
foreach (TextMeshPro textMeshPro in newOpt.GetComponentsInChildren<TextMeshPro>(true)) foreach (TextMeshPro textMeshPro in newOpt.GetComponentsInChildren<TextMeshPro>(true))
{ {
textMeshPro.fontMaterial.SetFloat("_StencilComp", 3f); textMeshPro.fontMaterial.SetFloat(ShaderID._StencilComp, 3f);
textMeshPro.fontMaterial.SetFloat("_Stencil", 20); textMeshPro.fontMaterial.SetFloat(ShaderID._Stencil, 20);
} }
__instance.Children.Add(newOpt); __instance.Children.Add(newOpt);