diff --git a/MiraAPI/Patches/RoleGuidePatches.cs b/MiraAPI/Patches/RoleGuidePatches.cs index 3398d5f..5994daf 100644 --- a/MiraAPI/Patches/RoleGuidePatches.cs +++ b/MiraAPI/Patches/RoleGuidePatches.cs @@ -296,7 +296,14 @@ public static class RoleGuidePatches RefreshActiveTab(true); })); + var placeholder = Object.Instantiate(tmpText, tmpText.transform.parent); + placeholder.name = "Placeholder"; + placeholder.color = new Color(0.55f, 0.55f, 0.55f); + placeholder.text = MiraLocaleManager.Get("MiraApi.Wiki.SearchPlaceholder"); + placeholder.GetComponent()?.Destroy(); + _searchBoxTmp.placeholderText = placeholder; _searchBoxTmp.transform.localPosition = new Vector3(-1.438f, 0.756f, -0.2f); + _searchBoxTmp.Clear(); var playerButton = __instance.TabButtons[0]; SetupTabButton( diff --git a/MiraAPI/Resources/Locale/en_US.xml b/MiraAPI/Resources/Locale/en_US.xml index 245b7ae..be120fa 100644 --- a/MiraAPI/Resources/Locale/en_US.xml +++ b/MiraAPI/Resources/Locale/en_US.xml @@ -55,4 +55,5 @@ Outlive the timer or eliminate the crew. Options Player List Game Settings + Search...