Minimap support

This commit is contained in:
BruceChen 2026-03-29 18:47:40 +08:00
parent c2475ea9e5
commit 6631180f8a
17 changed files with 5961 additions and 6 deletions

View file

@ -933,6 +933,39 @@ Note: This does NOT require a Bot Token, only an Application ID. Discord must be
<data name="Main.Advanced.enable_sentry" xml:space="preserve">
<value>Set to false to opt-out of Sentry error logging.</value>
</data>
<data name="Console.Minimap" xml:space="preserve">
<value>Settings for the TUI minimap overlay that shows terrain and entities.</value>
</data>
<data name="Console.Minimap.Enabled" xml:space="preserve">
<value>Whether the minimap is visible on startup in TUI mode.</value>
</data>
<data name="Console.Minimap.Zoom" xml:space="preserve">
<value>Blocks per pixel, 1-16. 1 = closest (1:1), 16 = farthest (16 blocks per pixel).</value>
</data>
<data name="Console.Minimap.Width" xml:space="preserve">
<value>Map width in pixels (characters). Range 10-120, default 40.</value>
</data>
<data name="Console.Minimap.Height" xml:space="preserve">
<value>Map height in pixels (must be even, uses half-block chars). Range 4-80, default 40.</value>
</data>
<data name="Console.Minimap.Position" xml:space="preserve">
<value>Minimap position: "top_left", "top_right", "center", "bottom_left", or "bottom_right".</value>
</data>
<data name="Console.Minimap.ShowPlayerNames" xml:space="preserve">
<value>Show player names on the minimap.</value>
</data>
<data name="Console.Minimap.ShowHostileNames" xml:space="preserve">
<value>Show hostile mob names on the minimap.</value>
</data>
<data name="Console.Minimap.ShowNeutralNames" xml:space="preserve">
<value>Show neutral mob names on the minimap.</value>
</data>
<data name="Console.Minimap.ShowPassiveNames" xml:space="preserve">
<value>Show passive mob names on the minimap.</value>
</data>
<data name="Console.Minimap.RefreshInterval" xml:space="preserve">
<value>Minimap refresh interval in milliseconds (200-5000, default 1000).</value>
</data>
<data name="Main.General.AuthlibUser" xml:space="preserve">
<value>Yggdrasil authlib multi-user selection.</value>
</data>

View file

@ -6880,5 +6880,158 @@ namespace MinecraftClient {
return ResourceManager.GetString("tui.crafting.grid", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Toggle the TUI minimap overlay, or adjust its zoom level..
/// </summary>
internal static string cmd_minimap_desc {
get {
return ResourceManager.GetString("cmd.minimap.desc", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Minimap enabled..
/// </summary>
internal static string cmd_minimap_enabled {
get {
return ResourceManager.GetString("cmd.minimap.enabled", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Minimap disabled..
/// </summary>
internal static string cmd_minimap_disabled {
get {
return ResourceManager.GetString("cmd.minimap.disabled", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Minimap zoom set to {0}:1 (blocks per pixel)..
/// </summary>
internal static string cmd_minimap_zoom_set {
get {
return ResourceManager.GetString("cmd.minimap.zoom_set", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Current minimap zoom: {0}:1 blocks/px (range 1-{1})..
/// </summary>
internal static string cmd_minimap_zoom_current {
get {
return ResourceManager.GetString("cmd.minimap.zoom_current", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The minimap command is only available in TUI mode..
/// </summary>
internal static string cmd_minimap_tui_only {
get {
return ResourceManager.GetString("cmd.minimap.tui_only", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Hostile.
/// </summary>
internal static string tui_minimap_legend_hostile {
get {
return ResourceManager.GetString("tui.minimap.legend.hostile", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Passive.
/// </summary>
internal static string tui_minimap_legend_passive {
get {
return ResourceManager.GetString("tui.minimap.legend.passive", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Neutral.
/// </summary>
internal static string tui_minimap_legend_neutral {
get {
return ResourceManager.GetString("tui.minimap.legend.neutral", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Player.
/// </summary>
internal static string tui_minimap_legend_player {
get {
return ResourceManager.GetString("tui.minimap.legend.player", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Name display -- Players: {0}, Hostile: {1}, Neutral: {2}, Passive: {3}.
/// </summary>
internal static string cmd_minimap_names_status {
get {
return ResourceManager.GetString("cmd.minimap.names_status", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to All entity name labels enabled..
/// </summary>
internal static string cmd_minimap_names_all_on {
get {
return ResourceManager.GetString("cmd.minimap.names_all_on", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to All entity name labels disabled..
/// </summary>
internal static string cmd_minimap_names_all_off {
get {
return ResourceManager.GetString("cmd.minimap.names_all_off", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to {0} name display: {1}.
/// </summary>
internal static string cmd_minimap_names_cat {
get {
return ResourceManager.GetString("cmd.minimap.names_cat", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to {0} name display set to {1}..
/// </summary>
internal static string cmd_minimap_names_cat_set {
get {
return ResourceManager.GetString("cmd.minimap.names_cat_set", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Current minimap position: {0}.
/// </summary>
internal static string cmd_minimap_position_current {
get {
return ResourceManager.GetString("cmd.minimap.position_current", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Minimap position set to: {0}.
/// </summary>
internal static string cmd_minimap_position_set {
get {
return ResourceManager.GetString("cmd.minimap.position_set", resourceCulture);
}
}
}
}

View file

@ -2419,4 +2419,55 @@ see item details.</value>
<data name="tui.crafting.grid" xml:space="preserve">
<value>Crafting</value>
</data>
<data name="cmd.minimap.desc" xml:space="preserve">
<value>Toggle the TUI minimap overlay, or adjust its zoom level.</value>
</data>
<data name="cmd.minimap.enabled" xml:space="preserve">
<value>Minimap enabled.</value>
</data>
<data name="cmd.minimap.disabled" xml:space="preserve">
<value>Minimap disabled.</value>
</data>
<data name="cmd.minimap.zoom_set" xml:space="preserve">
<value>Minimap zoom set to {0}:1 (blocks per pixel).</value>
</data>
<data name="cmd.minimap.zoom_current" xml:space="preserve">
<value>Current minimap zoom: {0}:1 blocks/px (range 1-{1}).</value>
</data>
<data name="cmd.minimap.tui_only" xml:space="preserve">
<value>The minimap command is only available in TUI mode.</value>
</data>
<data name="tui.minimap.legend.hostile" xml:space="preserve">
<value>Hostile</value>
</data>
<data name="tui.minimap.legend.passive" xml:space="preserve">
<value>Passive</value>
</data>
<data name="tui.minimap.legend.neutral" xml:space="preserve">
<value>Neutral</value>
</data>
<data name="tui.minimap.legend.player" xml:space="preserve">
<value>Player</value>
</data>
<data name="cmd.minimap.names_status" xml:space="preserve">
<value>Name display -- Players: {0}, Hostile: {1}, Neutral: {2}, Passive: {3}</value>
</data>
<data name="cmd.minimap.names_all_on" xml:space="preserve">
<value>All entity name labels enabled.</value>
</data>
<data name="cmd.minimap.names_all_off" xml:space="preserve">
<value>All entity name labels disabled.</value>
</data>
<data name="cmd.minimap.names_cat" xml:space="preserve">
<value>{0} name display: {1}</value>
</data>
<data name="cmd.minimap.names_cat_set" xml:space="preserve">
<value>{0} name display set to {1}.</value>
</data>
<data name="cmd.minimap.position_current" xml:space="preserve">
<value>Current minimap position: {0}</value>
</data>
<data name="cmd.minimap.position_set" xml:space="preserve">
<value>Minimap position set to: {0}</value>
</data>
</root>