mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 01:46:15 +00:00
use new ShaderID class
This commit is contained in:
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);
|
||||||
|
|||||||
Reference in new issue
Block a user