From f0483e278b5d4c3250ed243d41576e8b6e7afaeb Mon Sep 17 00:00:00 2001 From: Paul Sommer Date: Sat, 14 Mar 2026 19:10:04 +0100 Subject: [PATCH 1/3] add roundWinBox to ToolsData for multiple roundWinBox sponsors --- src/model/ToolsData.ts | 16 ++++++++++++++++ src/replay/ReplayConnectorService.ts | 4 ++++ 2 files changed, 20 insertions(+) diff --git a/src/model/ToolsData.ts b/src/model/ToolsData.ts index 4f8ed0e..0108ad5 100644 --- a/src/model/ToolsData.ts +++ b/src/model/ToolsData.ts @@ -43,6 +43,10 @@ export class ToolsData { public nameOverrides: INameOverrides = { overrides: "[]", }; + public roundWinBox: IRoundWinBox = { + type: "disabled", + sponsors: [], + }; public constructor(init?: Partial) { Object.assign(this, init); @@ -107,6 +111,18 @@ export type INameOverrides = { overrides: string; // JSON representation of Map for easier transfer }; +export type IRoundWinBox = { + type: "disabled" | "tournamentInfo" | "sponsors"; + sponsors: IRoundWinBoxSponsors[]; +}; + +export type IRoundWinBoxSponsors = { + wonTeam: "all" | "left" | "right"; + roundCeremonie: "all" | "normal" | "ace" | "clutch" | "teamAce" | "flawless" | "thrifty"; + iconUrl: string; + backdropUrl: string; +}; + export type IOverridesPlayercamsData = { nameOverrides: string; // JSON representation of Map for easier transfer enabledPlayers: string[]; diff --git a/src/replay/ReplayConnectorService.ts b/src/replay/ReplayConnectorService.ts index 409d84e..0b753e1 100644 --- a/src/replay/ReplayConnectorService.ts +++ b/src/replay/ReplayConnectorService.ts @@ -134,6 +134,10 @@ export class ReplayConnectorService { nameOverrides: { overrides: "[]", }, + roundWinBox: { + type: "tournamentInfo", + sponsors: [], + }, timeoutCounter: { max: 2, left: 2, From 285c55b64b4d8fafa8e0dce4bdd09db3420b5cde Mon Sep 17 00:00:00 2001 From: Paul Sommer Date: Mon, 16 Mar 2026 23:57:42 +0100 Subject: [PATCH 2/3] update Types --- src/model/ToolsData.ts | 8 -------- src/replay/ReplayConnectorService.ts | 1 - 2 files changed, 9 deletions(-) diff --git a/src/model/ToolsData.ts b/src/model/ToolsData.ts index 0108ad5..e192da6 100644 --- a/src/model/ToolsData.ts +++ b/src/model/ToolsData.ts @@ -13,7 +13,6 @@ export class ToolsData { name: "", logoUrl: "", backdropUrl: "", - enabled: false, }; public timeoutDuration: number = 60; public timeoutCounter: ITimeoutInfo = { @@ -50,12 +49,6 @@ export class ToolsData { public constructor(init?: Partial) { Object.assign(this, init); - - if (this.tournamentInfo.logoUrl != "" || this.tournamentInfo.name != "") { - this.tournamentInfo.enabled = true; - } else { - this.tournamentInfo.enabled = false; - } this.timeoutCounter.left = this.timeoutCounter.max; this.timeoutCounter.right = this.timeoutCounter.max; } @@ -77,7 +70,6 @@ export type ITournamentInfo = { name: string; logoUrl: string; backdropUrl: string; - enabled: boolean; }; export type ITimeoutInfo = { diff --git a/src/replay/ReplayConnectorService.ts b/src/replay/ReplayConnectorService.ts index 0b753e1..16eaee9 100644 --- a/src/replay/ReplayConnectorService.ts +++ b/src/replay/ReplayConnectorService.ts @@ -110,7 +110,6 @@ export class ReplayConnectorService { name: "Tournament Name", logoUrl: "", backdropUrl: "", - enabled: true, }, timeoutDuration: 60, sponsorInfo: { From fddaf006550d76a1b4d9678e251f015bd5589762 Mon Sep 17 00:00:00 2001 From: Paul Sommer Date: Wed, 18 Mar 2026 12:49:45 +0100 Subject: [PATCH 3/3] fix IRoundWinBoxSponsors type --- src/model/ToolsData.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/ToolsData.ts b/src/model/ToolsData.ts index e192da6..045f079 100644 --- a/src/model/ToolsData.ts +++ b/src/model/ToolsData.ts @@ -110,7 +110,7 @@ export type IRoundWinBox = { export type IRoundWinBoxSponsors = { wonTeam: "all" | "left" | "right"; - roundCeremonie: "all" | "normal" | "ace" | "clutch" | "teamAce" | "flawless" | "thrifty"; + roundCeremonie: ("all" | "normal" | "ace" | "clutch" | "teamAce" | "flawless" | "thrifty")[]; iconUrl: string; backdropUrl: string; };