mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-19 15:51:48 +00:00
Add more locale
This commit is contained in:
1 parent
9fd5b488b8
commit
7cb8246953
3 files changed
+10
-2
No files matched your search
@@ -39,7 +39,7 @@ public static class GameModeOption
|
||||
}
|
||||
}
|
||||
|
||||
internal static readonly StringNames GamemodeName = MiraLocaleManager.GetOrCreateLocaleString("Gamemode");
|
||||
internal static readonly StringNames GamemodeName = MiraLocaleManager.GetOrCreateLocaleString("MiraApi.Gamemode");
|
||||
internal static readonly StringNames CustomName = MiraLocaleManager.GetOrCreateLocaleString("Custom");
|
||||
internal static readonly Dictionary<uint, StringNames> Values = new()
|
||||
{
|
||||
|
||||
@@ -41,7 +41,7 @@ internal static class HudPatches
|
||||
var modelText = modeLabel!.Find("Text_TMP").gameObject;
|
||||
var modelTextClone = Object.Instantiate(modelText, modeLabel);
|
||||
Object.Destroy(modelTextClone.GetComponent<TextTranslatorTMP>());
|
||||
modelTextClone.GetComponent<TextMeshPro>().text = "Gamemode";
|
||||
modelTextClone.GetComponent<TextMeshPro>().text = MiraLocaleManager.Get("MiraApi.Gamemode", "Gamemode");
|
||||
var gmText = modeValue!.Find("GameModeText").gameObject;
|
||||
var gmTextClone = Object.Instantiate(gmText, modeValue);
|
||||
gmText.SetActive(false);
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
<string name="MiraApi.CustomCategory2">Custom Category 2</string>
|
||||
<string name="MiraApi.ModifierMenuDescription">Configure modifiers and their settings here!</string>
|
||||
<string name="MiraApi.CustomOptionMenuDescription">Apply game settings for this mod!</string>
|
||||
<string name="MiraApi.Gamemode">Gamemode</string>
|
||||
<string name="MiraApi.Gamemode.Classic">Classic</string>
|
||||
<string name="MiraApi.Gamemode.Classic.Description">The classic Among Us experience!
|
||||
Find the Impostors or deceive the Crew.</string>
|
||||
@@ -43,4 +44,11 @@ Outlive the timer or eliminate the crew.</string>
|
||||
<string name="MiraApi.ModifierDisplay.Page">Page</string>
|
||||
<string name="MiraApi.Page">Page</string>
|
||||
<string name="MiraApi.Main">Main</string>
|
||||
<string name="MiraApi.AbilityType.Basic">Ability</string>
|
||||
<string name="MiraApi.AbilityType.Interaction">Interaction Ability</string>
|
||||
<string name="MiraApi.AbilityType.Radius">Radius Ability</string>
|
||||
<string name="MiraApi.AbilityType.Menu">Menu Ability</string>
|
||||
<string name="MiraApi.AbilityType.Meeting">Meeting Ability</string>
|
||||
<string name="MiraApi.AbilityType.SelectiveMeeting">Selective Meeting Ability</string>
|
||||
<string name="Options">Options</string>
|
||||
</resources>
|
||||
Reference in new issue
Block a user