mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-20 01:46:19 +00:00
Canary 3 Hotfix 1
This commit is contained in:
1 parent
70f4a7128e
commit
b2981e20cf
2 files changed
+16
-5
No files matched your search
@@ -23,7 +23,7 @@ public class PingTrackerPatch
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
||||
sb.AppendFormat("PING: <b>{0}</b>\n", GetPingColor(AmongUsClient.Instance.Ping));
|
||||
sb.Append($"<color=#00dbdb><size=75%>BetterAmongUs {Main.GetVersionText()}</size></color>\n");
|
||||
sb.Append($"<color=#00dbdb><size=75%>BetterAmongUs {Main.GetVersionText(true)}</size></color>\n");
|
||||
sb.AppendFormat("<color=#b0b0b0><size=50%>{0}</size></color>\n", Main.Github);
|
||||
|
||||
if (Main.BetterHost.Value && GameStates.IsHost)
|
||||
|
||||
@@ -22,20 +22,31 @@ public class Main : BasePlugin
|
||||
{
|
||||
public const ReleaseTypes ReleaseBuildType = ReleaseTypes.Canary;
|
||||
public const string CanaryNum = "3";
|
||||
public const string HotfixNum = "1";
|
||||
public const bool IsHotFix = true;
|
||||
public const string PluginGuid = "com.d1gq.betteramongus";
|
||||
public const string PluginVersion = "1.0.0";
|
||||
public const string ReleaseDate = "07.29.2024"; // dd/mm/yyyy
|
||||
public const string Github = "https://github.com/D1GQ/BetterAmongUs";
|
||||
public const string Discord = "https://discord.gg/";
|
||||
|
||||
public static string GetVersionText()
|
||||
public static string GetVersionText(bool newLine = false)
|
||||
{
|
||||
string text = string.Empty;
|
||||
|
||||
string newLineText = newLine ? "\n" : " ";
|
||||
|
||||
if (ReleaseBuildType == ReleaseTypes.Release)
|
||||
return $"v{BetterAmongUsVersion}";
|
||||
text = $"v{BetterAmongUsVersion}";
|
||||
else if (ReleaseBuildType == ReleaseTypes.Canary)
|
||||
return $"v{BetterAmongUsVersion} Canary {Main.CanaryNum}";
|
||||
text = $"v{BetterAmongUsVersion}{newLineText}Canary {Main.CanaryNum}";
|
||||
else if (Main.ReleaseBuildType == ReleaseTypes.Dev)
|
||||
return $"v{BetterAmongUsVersion} Dev {Main.ReleaseDate}";
|
||||
text = $"v{BetterAmongUsVersion}{newLineText}Dev {Main.ReleaseDate}";
|
||||
|
||||
if (IsHotFix)
|
||||
text += $" Hotfix {HotfixNum}";
|
||||
|
||||
return text;
|
||||
}
|
||||
public Harmony Harmony { get; } = new Harmony(PluginGuid);
|
||||
|
||||
|
||||
Reference in new issue
Block a user