mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
Added a Github star reminder
This commit is contained in:
parent
0fda37b017
commit
1ca023be36
7 changed files with 37 additions and 0 deletions
|
|
@ -318,6 +318,8 @@ namespace MinecraftClient
|
|||
ConsoleIO.WriteLine(string.Format(Translations.mcc_banner_classic, Version, MCLowestVersion, MCHighestVersion, "Github.com/MCCTeam"));
|
||||
if (BuildInfo is not null)
|
||||
ConsoleIO.WriteLineFormatted("§8" + BuildInfo);
|
||||
if (Config.Main.Advanced.ShowGithubStarReminder)
|
||||
ConsoleIO.WriteLineFormatted("§e" + Translations.mcc_banner_star_reminder);
|
||||
}
|
||||
|
||||
private static void MaybePrintClassicModeTuiRecommendation()
|
||||
|
|
|
|||
|
|
@ -1877,6 +1877,15 @@ namespace MinecraftClient {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Show a GitHub star reminder on startup. Set to false to hide it..
|
||||
/// </summary>
|
||||
internal static string Main_Advanced_show_github_star_reminder {
|
||||
get {
|
||||
return ResourceManager.GetString("Main.Advanced.show_github_star_reminder", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Show full effect names and levels in the TUI status bar instead of compact effect icons only..
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -738,6 +738,9 @@ Usage examples: "/tell <mybot> connect Server1", "/connect Server2"</value
|
|||
<data name="Main.Advanced.show_effect_names_in_tui" xml:space="preserve">
|
||||
<value>Show full effect names and levels in the TUI status bar instead of compact effect icons only.</value>
|
||||
</data>
|
||||
<data name="Main.Advanced.show_github_star_reminder" xml:space="preserve">
|
||||
<value>Show a GitHub star reminder on startup. Set to false to hide it.</value>
|
||||
</data>
|
||||
<data name="Main.Advanced.show_system_messages" xml:space="preserve">
|
||||
<value>System messages for server ops.</value>
|
||||
</data>
|
||||
|
|
|
|||
|
|
@ -2311,6 +2311,12 @@ namespace MinecraftClient {
|
|||
}
|
||||
}
|
||||
|
||||
internal static string mcc_banner_star_reminder {
|
||||
get {
|
||||
return ResourceManager.GetString("mcc.banner.star_reminder", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
internal static string mcc_banner_label_mc_versions {
|
||||
get {
|
||||
return ResourceManager.GetString("mcc.banner.label_mc_versions", resourceCulture);
|
||||
|
|
|
|||
|
|
@ -845,6 +845,9 @@ Add the ID of this chat to "Authorized_Chat_Ids" field in the configuration file
|
|||
<data name="mcc.banner.classic" xml:space="preserve">
|
||||
<value>Minecraft Console Client v{0} - for MC {1} to {2} - {3}</value>
|
||||
</data>
|
||||
<data name="mcc.banner.star_reminder" xml:space="preserve">
|
||||
<value>⭐ Like MCC? Star us on GitHub: https://github.com/MCCTeam/Minecraft-Console-Client</value>
|
||||
</data>
|
||||
<data name="mcc.banner.label_mc_versions" xml:space="preserve">
|
||||
<value>Supported MC Versions:</value>
|
||||
</data>
|
||||
|
|
|
|||
|
|
@ -820,6 +820,9 @@ namespace MinecraftClient
|
|||
[TomlInlineComment("$Main.Advanced.show_effect_names_in_tui$")]
|
||||
public bool ShowEffectNamesInTUI = false;
|
||||
|
||||
[TomlInlineComment("$Main.Advanced.show_github_star_reminder$")]
|
||||
public bool ShowGithubStarReminder = true;
|
||||
|
||||
[TomlInlineComment("$Main.Advanced.terrain_and_movements$")]
|
||||
public bool TerrainAndMovements = false;
|
||||
|
||||
|
|
|
|||
|
|
@ -28,6 +28,9 @@ namespace MinecraftClient.Tui
|
|||
AddVersionRange(infoPanel);
|
||||
AddGithub(infoPanel);
|
||||
|
||||
if (Settings.Config.Main.Advanced.ShowGithubStarReminder)
|
||||
AddStarReminder(infoPanel);
|
||||
|
||||
if (buildInfo is not null)
|
||||
AddBuildInfo(infoPanel, buildInfo);
|
||||
|
||||
|
|
@ -70,6 +73,14 @@ namespace MinecraftClient.Tui
|
|||
panel.Children.Add(row);
|
||||
}
|
||||
|
||||
private static void AddStarReminder(StackPanel panel)
|
||||
{
|
||||
var row = new TextBlock();
|
||||
row.Inlines!.Add(new Run("\u2b50 ") { Foreground = Pal.Gold });
|
||||
row.Inlines.Add(Val("Star us on GitHub!", Pal.Gold));
|
||||
panel.Children.Add(row);
|
||||
}
|
||||
|
||||
private static void AddBuildInfo(StackPanel panel, string buildInfo)
|
||||
{
|
||||
panel.Children.Add(new TextBlock
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue