Browse Source

style: 🎨 change the name of spectator

change the name of spectator
tags/0.1.0
Shawqeem 2 years ago
parent
commit
1a1cd8e957
3 changed files with 8 additions and 4 deletions
  1. +0
    -1
      logic/Client/MainWindow.xaml.cs
  2. +7
    -2
      logic/Client/StatusBarOfCircumstance.xaml.cs
  3. +1
    -1
      logic/cmd/gameServer.cmd

+ 0
- 1
logic/Client/MainWindow.xaml.cs View File

@@ -1358,7 +1358,6 @@ namespace Client
private List<MessageOfGate> listOfGate;
private List<MessageOfHiddenGate> listOfHiddenGate;
private object drawPicLock = new object();
private object recvLock = new object();
private MessageOfStudent? human = null;
private MessageOfTricker? butcher = null;
private bool humanOrButcher;//true for human


+ 7
- 2
logic/Client/StatusBarOfCircumstance.xaml.cs View File

@@ -12,6 +12,7 @@ using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Protobuf;
using Preparation.Utility;

namespace Client
{
@@ -56,14 +57,18 @@ namespace Client
{
time.Text += Convert.ToString(sec);
}
if (playerId == 4)
if (playerId == GameData.numOfStudent)
{
name.Text = "🚀 Tricker's";
}
else
else if(playerId< GameData.numOfStudent)
{
name.Text = "🚀 Student" + Convert.ToString(playerId) + "'s";
}
else
{
name.Text = "🚀 Spectator's";
}
if (obj.SubjectFinished < Preparation.Utility.GameData.numOfGeneratorRequiredForRepair)
{
status.Text = "📱: " + Convert.ToString(obj.SubjectFinished) + "\n🚪: ";


+ 1
- 1
logic/cmd/gameServer.cmd View File

@@ -14,4 +14,4 @@ start cmd /k ..\Client\bin\Debug\net6.0-windows\Client.exe --cl --port 8888 --ch

start cmd /k ..\Client\bin\Debug\net6.0-windows\Client.exe --cl --port 8888 --characterID 3 --type 1 --occupation 3

::start cmd /k ..\Client\bin\Debug\net6.0-windows\Client.exe --ip 0.0.0.0 --port 8888 --characterID 2030
start cmd /k ..\Client\bin\Debug\net6.0-windows\Client.exe --cl --port 8888 --characterID 2030

Loading…
Cancel
Save