ISSUE-054 - Basic animating of the Timing Tower added.
Provided basic controls to switch between. Still need to properly round the bottom rows of both the running and retired cars.
This commit is contained in:
1 parent
00d2c671cb
commit
c9388b86fc
12 files changed
+204
-114
No files matched your search
@@ -3,8 +3,9 @@ import { createSlice, PayloadAction } from "@reduxjs/toolkit";
|
||||
import {
|
||||
BGChyrons,
|
||||
BGStatusIndicatorModes,
|
||||
BGTimingTowerDisplayModes,
|
||||
BGTimingTowerFocusedCarsMode,
|
||||
BGTimingTowerModes,
|
||||
BGTimingTowerSplitsMode,
|
||||
OpenState,
|
||||
RootState,
|
||||
} from "../../../types/state";
|
||||
@@ -19,7 +20,8 @@ const initialState: RootState["broadcastGraphics"] = {
|
||||
},
|
||||
timingTower: {
|
||||
open: 1,
|
||||
mode: BGTimingTowerModes.Leader,
|
||||
displayMode: BGTimingTowerDisplayModes.LeftAndRight,
|
||||
splitsMode: BGTimingTowerSplitsMode.Leader,
|
||||
focusedCars: [],
|
||||
focusedCarsMode: BGTimingTowerFocusedCarsMode.None,
|
||||
},
|
||||
@@ -52,6 +54,11 @@ export const broadcastGraphicsSlice = createSlice({
|
||||
clearChyrons: (state) => {
|
||||
state.chyrons = null;
|
||||
},
|
||||
|
||||
// Timing Board
|
||||
setTimingTowerSplitsMode: (state, action: PayloadAction<BGTimingTowerSplitsMode>) => {
|
||||
state.timingBoard.timingTower.splitsMode = action.payload;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
@@ -60,5 +67,6 @@ export const {
|
||||
setChyronsOpenState,
|
||||
incrementChyronsOpenState,
|
||||
clearChyrons,
|
||||
setTimingTowerSplitsMode,
|
||||
} = broadcastGraphicsSlice.actions;
|
||||
export default broadcastGraphicsSlice.reducer;
|
||||
Reference in new issue
Block a user