Undo "Changed IP in Address". This will be version 1.0.0
This commit is contained in:
@ -21,7 +21,7 @@ namespace CoopClient
|
||||
|
||||
private bool GameLoaded = false;
|
||||
|
||||
internal static readonly string CurrentVersion = "V0_9_0";
|
||||
internal static readonly string CurrentVersion = "V1_0_0";
|
||||
|
||||
internal static bool ShareNpcsWithPlayers = false;
|
||||
internal static bool DisableTraffic = false;
|
||||
|
@ -10,8 +10,8 @@ namespace CoopClient.Menus.Sub
|
||||
{
|
||||
internal class ServerListClass
|
||||
{
|
||||
[JsonProperty("address")]
|
||||
public string Address { get; set; }
|
||||
[JsonProperty("ip")]
|
||||
public string IP { get; set; }
|
||||
[JsonProperty("name")]
|
||||
public string Name { get; set; }
|
||||
[JsonProperty("version")]
|
||||
@ -89,20 +89,20 @@ namespace CoopClient.Menus.Sub
|
||||
foreach (ServerListClass server in serverList)
|
||||
{
|
||||
NativeItem tmpItem = null;
|
||||
MainMenu.Add(tmpItem = new NativeItem($"[{server.Country}] {server.Name}", $"~b~{server.Address}~s~~n~~g~Version {server.Version}.x~s~~n~Mods = {server.Mods}~n~NPCs = {server.NPCs}") { AltTitle = $"[{server.Players}/{server.MaxPlayers}][{(server.AllowList ? "~r~X~s~" : "~g~O~s~")}]"});
|
||||
MainMenu.Add(tmpItem = new NativeItem($"[{server.Country}] {server.Name}", $"~b~{server.IP}~s~~n~~g~Version {server.Version}.x~s~~n~Mods = {server.Mods}~n~NPCs = {server.NPCs}") { AltTitle = $"[{server.Players}/{server.MaxPlayers}][{(server.AllowList ? "~r~X~s~" : "~g~O~s~")}]"});
|
||||
tmpItem.Activated += (object sender, EventArgs e) =>
|
||||
{
|
||||
try
|
||||
{
|
||||
MainMenu.Visible = false;
|
||||
|
||||
Main.MainNetworking.DisConnectFromServer(server.Address);
|
||||
Main.MainNetworking.DisConnectFromServer(server.IP);
|
||||
|
||||
Main.MainMenu.ServerIpItem.AltTitle = server.Address;
|
||||
Main.MainMenu.ServerIpItem.AltTitle = server.IP;
|
||||
|
||||
Main.MainMenu.MainMenu.Visible = true;
|
||||
|
||||
Main.MainSettings.LastServerAddress = server.Address;
|
||||
Main.MainSettings.LastServerAddress = server.IP;
|
||||
Util.SaveSettings();
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
@ -3,7 +3,7 @@
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<AssemblyVersion>1.11.0.0001</AssemblyVersion>
|
||||
<AssemblyVersion>1.0.0.0001</AssemblyVersion>
|
||||
<FileVersion>1.0.0.0</FileVersion>
|
||||
<RepositoryUrl>https://github.com/GTACOOP-R/GTACoop-R</RepositoryUrl>
|
||||
</PropertyGroup>
|
||||
|
@ -21,7 +21,7 @@ namespace CoopServer
|
||||
|
||||
internal class Server
|
||||
{
|
||||
private static readonly string CompatibleVersion = "V0_9";
|
||||
private static readonly string CompatibleVersion = "V1_0";
|
||||
|
||||
public static readonly Settings MainSettings = Util.Read<Settings>("CoopSettings.xml");
|
||||
private readonly Blocklist MainBlocklist = Util.Read<Blocklist>("Blocklist.xml");
|
||||
|
Reference in New Issue
Block a user