Skip to content

Commit

Permalink
made a variable public
Browse files Browse the repository at this point in the history
  • Loading branch information
fchb1239 authored Jul 24, 2023
1 parent 629ec56 commit 7ff3d82
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions ComputerInterface/AirJumpView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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, $"<color={(Behaviours.AirJump.instance.settings.enabled ? string.Format("#{0}>[Enabled]", highlightColour) : "white>[Disabled]")}</color>"));
str.AppendLine(selectionHandler.GetIndicatedText(1, $"Material: <color=#{highlightColour}>{matNames[Behaviours.AirJump.instance.settings.matIndex]}</color>"));
Expand All @@ -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");
}
});
}
Expand Down

0 comments on commit 7ff3d82

Please sign in to comment.