From b45c501d0decb1f905ba8171354b2d52b9498ab0 Mon Sep 17 00:00:00 2001
From: 116KBr <2768918334@qq.com>
Date: Mon, 22 Nov 2021 16:30:53 +0800
Subject: [PATCH] Added:some new features
---
logic/Client/Client.csproj | 4 -
logic/Client/ConnectRegister.xaml | 12 ++-
logic/Client/ConnectRegister.xaml.cs | 2 +-
logic/Client/ErrorDisplayer.xaml.cs | 2 +-
logic/Client/MainWindow.xaml | 26 ++---
logic/Client/MainWindow.xaml.cs | 137 +++++++++++++++++++++------
logic/Client/Map.png | Bin 42028 -> 0 bytes
7 files changed, 129 insertions(+), 54 deletions(-)
delete mode 100644 logic/Client/Map.png
diff --git a/logic/Client/Client.csproj b/logic/Client/Client.csproj
index 1e6fd3d2..86b6daf9 100644
--- a/logic/Client/Client.csproj
+++ b/logic/Client/Client.csproj
@@ -10,16 +10,12 @@
-
-
- Always
-
Always
diff --git a/logic/Client/ConnectRegister.xaml b/logic/Client/ConnectRegister.xaml
index b16cbb9d..105f88b4 100644
--- a/logic/Client/ConnectRegister.xaml
+++ b/logic/Client/ConnectRegister.xaml
@@ -5,19 +5,23 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:Client"
mc:Ignorable="d"
- Title="ConnectRegister" Height="315" Width="350" ResizeMode="NoResize" >
+ Title="ConnectRegister" Height="370" Width="350" ResizeMode="NoResize" >
-
-
+
+
-
+
+
+
+
+
diff --git a/logic/Client/ConnectRegister.xaml.cs b/logic/Client/ConnectRegister.xaml.cs
index dee72e0c..0fa7ef4e 100644
--- a/logic/Client/ConnectRegister.xaml.cs
+++ b/logic/Client/ConnectRegister.xaml.cs
@@ -37,7 +37,7 @@ private void Save(object sender, RoutedEventArgs e)
}
else using (var sw = new StreamWriter(".\\ConnectInfo.txt"))
{
- sw.WriteLine(IPBox.Text + " " + PortBox.Text + " " + PlayerIDBox.Text + " " + TeamIDBox.Text);
+ sw.WriteLine(IPBox.Text + " " + PortBox.Text + " " + PlayerIDBox.Text + " " + TeamIDBox.Text+" "+Pskill.Text+" "+Askill.Text);
State.Text = "Info Registered.";
}
}
diff --git a/logic/Client/ErrorDisplayer.xaml.cs b/logic/Client/ErrorDisplayer.xaml.cs
index 122368f6..4e2bbc4e 100644
--- a/logic/Client/ErrorDisplayer.xaml.cs
+++ b/logic/Client/ErrorDisplayer.xaml.cs
@@ -22,7 +22,7 @@ public partial class ErrorDisplayer : Window
public ErrorDisplayer(string s)
{
InitializeComponent();
- errorDisplayer.Text = s;
+ errorDisplayer.Text = s+" Time:"+DateTime.Now.ToString();
}
private void DragWindow(object sender, RoutedEventArgs e)
{
diff --git a/logic/Client/MainWindow.xaml b/logic/Client/MainWindow.xaml
index eae3e4ce..c70c58b5 100644
--- a/logic/Client/MainWindow.xaml
+++ b/logic/Client/MainWindow.xaml
@@ -16,12 +16,12 @@
-
-
+
+
-
+
@@ -33,56 +33,56 @@
-