апдейт
This commit is contained in:
@@ -2338,6 +2338,8 @@ function buildVmixCommandsFromFormation(side) {
|
||||
const players = Array.isArray(formationState[side]) ? formationState[side] : [];
|
||||
const commands = [];
|
||||
const playerPrefix = side === "home" ? "HOME" : "AWAY";
|
||||
const inputName = side === "home" ? "РАССТАНОВКА - ХОЗЯЕВА" : "РАССТАНОВКА - ГОСТИ";
|
||||
|
||||
|
||||
if (players.length < 2) {
|
||||
return [];
|
||||
@@ -2351,6 +2353,19 @@ function buildVmixCommandsFromFormation(side) {
|
||||
const x = convertPitchXToPan(player.x).toFixed(3);
|
||||
const y = convertPitchYToPan(player.y).toFixed(3);
|
||||
|
||||
|
||||
for (let i = 1; i <= 10; i++) {
|
||||
commands.push(
|
||||
vmixCmd(`Function=ResetInput&Input=${encodeURIComponent(`${playerPrefix} - Игрок${i}`)}`)
|
||||
);
|
||||
};
|
||||
|
||||
commands.push(
|
||||
vmixCmd(`Function=ResetInput&Input=${encodeURIComponent(inputName)}`)
|
||||
);
|
||||
|
||||
|
||||
|
||||
commands.push(
|
||||
vmixCmd(`Function=SetPanX&Input=${encodeURIComponent(playerInputName)}&Value=${x}`)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user