From 7ff3d8265db1d9d6d24ffd84d5ec1f14cc960ab0 Mon Sep 17 00:00:00 2001 From: fchb1239 Date: Mon, 24 Jul 2023 19:37:18 +0200 Subject: [PATCH] made a variable public --- ComputerInterface/AirJumpView.cs | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/ComputerInterface/AirJumpView.cs b/ComputerInterface/AirJumpView.cs index fff182d..66e79d2 100644 --- a/ComputerInterface/AirJumpView.cs +++ b/ComputerInterface/AirJumpView.cs @@ -5,18 +5,19 @@ using AirJump.Logging; -namespace AirJump.ComputerInterface +namespace AirJump.CI { class AirJumpView : ComputerView { public static AirJumpView instance; private readonly UISelectionHandler selectionHandler; - const string highlightColour = "336BFF"; + public const string highlightColour = "336BFF"; //public bool modEnabled; //public int mat; //public int size; - string[] matNames = new string[] { "Normal", "Fur", "Lava", "Rock", "Ice", "Custom" }; + //string[] matNames = new string[] { "Normal", "Fur", "Lava", "Rock", "Ice", "Custom" }; + string[] matNames = new string[] { "Normal", "Fur", "Lava", "Rock", "Ice" }; string[] sizeNames = new string[] { "Normal", "Bigger", "Chonk" }; public AirJumpView() @@ -51,7 +52,7 @@ public void UpdateScreen() str.MakeBar('-', SCREEN_WIDTH, 0, "ffffff10"); str.EndAlign().AppendLines(1); - if (Behaviours.VersionVerifier.instance.validVersion) + if (Behaviours.VersionVerifier.validVersion) { str.AppendLine(selectionHandler.GetIndicatedText(0, $"[Enabled]", highlightColour) : "white>[Disabled]")}")); str.AppendLine(selectionHandler.GetIndicatedText(1, $"Material: {matNames[Behaviours.AirJump.instance.settings.matIndex]}")); @@ -67,7 +68,17 @@ public void UpdateScreen() } else { - str.AppendClr($"Old version detected!\nPlease update to {Behaviours.VersionVerifier.instance.newestVersion}", "A01515").EndColor().AppendLine(); + str.AppendClr($"Old version detected! Please update!", "A01515").EndColor().AppendLine(); + str.AppendClr($"Your version: {PluginInfo.Version}", "A01515").EndColor().AppendLine(); + str.AppendClr($"Newest version: {Behaviours.VersionVerifier.newestVersion}", "A01515").EndColor().AppendLine(); + str.AppendLine(""); + str.AppendLine(""); + str.AppendLine(""); + str.AppendLine(""); + str.AppendLine("The download link has been opened in your browser."); + + AJLog.Log("Opening browser"); + System.Diagnostics.Process.Start("https://github.com/fchb1239/AirJump/releases"); } }); }