|
|
@@ -76,6 +76,7 @@ If you encounter an issue while the game is patched, report it to us. If you thi |
|
|
|
private async void playbtn_Click(object sender, EventArgs e) |
|
|
|
{ |
|
|
|
if (playbtn.ForeColor == Color.Green) return; //Disabled |
|
|
|
await UpdateAPI(); |
|
|
|
await PatchStartGame(); //It will call EndWork(); |
|
|
|
} |
|
|
|
|
|
|
@@ -108,15 +109,15 @@ If you encounter an issue while the game is patched, report it to us. If you thi |
|
|
|
var mod = mods[item.Name]; |
|
|
|
if (modlist.SelectedItems.Count == 1) |
|
|
|
{ |
|
|
|
bool up = mod.Version != null && mod.Version < mod.LatestVersion; |
|
|
|
bool up = mod.Updatable; |
|
|
|
modinfobox.Text = ((up ? "New version available! " + mod.UpdateDetails + "\n\n" |
|
|
|
: "") + mod.Description).Replace("\n", Environment.NewLine); |
|
|
|
if(up) |
|
|
|
{ |
|
|
|
modinfobox.Select(0, "New version available!".Length); |
|
|
|
//modinfobox.SelectionColor = Color.Aqua; |
|
|
|
//modinfobox.DeselectAll(); |
|
|
|
//modinfobox.SelectionColor = modinfobox.ForeColor; |
|
|
|
modinfobox.SelectionColor = Color.Aqua; |
|
|
|
modinfobox.DeselectAll(); |
|
|
|
modinfobox.SelectionColor = modinfobox.ForeColor; |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|