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
|
|
@ -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