Improve tic-tac-toe party mode (#912)

- A won field pops up and fades into the color of the winning team
- At the end, the winning line pulses while all other fields are dimmed
- The jokers are labeled ("New song", "Replay a field"), so it's clear what they do
- Darker panels behind the team areas and more room between the board and the title
- Long player names no longer reach into the board

Co-authored-by: Florian Ostertag <flokuep@users.noreply.github.com>
This commit is contained in:
McSchneidarandFlorian Ostertag authored and GitHub committed 2026-10-18 06:18:20 +02:00
1 parent b4c29e1b55
commit 5e449c7b01
5 files changed
+240 -7

No files matched your search

@@ -120,6 +120,7 @@ namespace VocaluxeLib.PartyModes.TicTacToe
public int CurrentRoundNr;
public int FieldNr;
public int LastWonField;
public int[] NumJokerRandom;
public int[] NumJokerRetry;
@@ -246,6 +247,7 @@ namespace VocaluxeLib.PartyModes.TicTacToe
GameData.Team = CBase.Game.GetRandom(100) < 50 ? 0 : 1;
CBase.Songs.ResetSongSung();
GameData.CurrentRoundNr = 1;
GameData.LastWonField = -1;
_CreateRounds();
_SetNumJokers();
break;
@@ -479,6 +481,7 @@ namespace VocaluxeLib.PartyModes.TicTacToe
GameData.Rounds[GameData.FieldNr].PointsTeam1 = (int)Math.Round(results[0].Points);
GameData.Rounds[GameData.FieldNr].PointsTeam2 = (int)Math.Round(results[1].Points);
GameData.Rounds[GameData.FieldNr].Finished = true;
GameData.LastWonField = GameData.FieldNr;
if (GameData.Rounds[GameData.FieldNr].PointsTeam1 < GameData.Rounds[GameData.FieldNr].PointsTeam2)
{
GameData.Rounds[GameData.FieldNr].Winner = 2;
@@ -490,6 +493,7 @@ namespace VocaluxeLib.PartyModes.TicTacToe
else
{
GameData.Rounds[GameData.FieldNr].Finished = false;
GameData.LastWonField = -1;
GameData.CurrentRoundNr--;
}
}