From 5d9c38a503623c4f876c4f94c9a33035a752b666 Mon Sep 17 00:00:00 2001 From: ReAdmin <170283204+rewalo@users.noreply.github.com> Date: Wed, 7 Oct 2026 02:32:42 -0700 Subject: [PATCH] Wire a placeholder into the wiki search box so clearing an empty box works --- MiraAPI/Patches/RoleGuidePatches.cs | 7 +++++++ MiraAPI/Resources/Locale/en_US.xml | 1 + 2 files changed, 8 insertions(+) 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...