@@ -11,6 +11,7 @@ import useSearchParams from '@/utils/useSearchParams';
1111
1212import * as machineSelectors from '../../machines/selectors' ;
1313import { connectToStream } from '../../middlewares/Stream' ;
14+ import { actions } from '../../slices' ;
1415
1516import StreamEditorPanel from './StreamEditorPanel' ;
1617import StreamFullPanel from './StreamFullPanel' ;
@@ -66,11 +67,16 @@ function StreamWidget({
6667 const widthInfoPanelPercentage = toPrcStr ( searchParams . has ( 'widthInfoPanel' ) ? searchParams . get ( 'widthInfoPanel' ) : 40 ) ;
6768 const widthEditorPanelPercentage = toPrcStr ( searchParams . has ( 'widthEditorPanel' ) ? searchParams . get ( 'widthEditorPanel' ) : 60 ) ;
6869 const outputTitleWidth = toPrcStr ( searchParams . has ( 'outputTitleWidth' ) ? searchParams . get ( 'outputTitleWidth' ) : 25 ) ;
70+ const progressGifSize = toPxlStr ( searchParams . has ( 'progressGifSize' ) ? searchParams . get ( 'progressGifSize' ) : 100 ) ;
71+ const winGifSize = toPxlStr ( searchParams . has ( 'winGifSize' ) ? searchParams . get ( 'winGifSize' ) : 100 ) ;
6972
7073 const { mainService, waitingRoomService } = useGameRoomMachine ( {
7174 mainMachine,
7275 taskMachine,
7376 waitingRoomMachine,
77+ options : {
78+ withoutModals : false ,
79+ } ,
7480 } ) ;
7581
7682 const roomMachineState = useMachineStateSelector (
@@ -90,6 +96,7 @@ function StreamWidget({
9096 const channel = setGameChannel ( game . id ) ;
9197
9298 const options = { cancelRedirect : true } ;
99+ dispatch ( actions . clearGamePlayers ( ) ) ;
93100 connectToGame ( mainService , waitingRoomService , options ) ( dispatch ) ;
94101
95102 const clearChannel = ( ) => {
@@ -140,6 +147,8 @@ function StreamWidget({
140147 testBarHeight = { testBarHeight }
141148 testBarWinGifTop = { testBarWinGifTop }
142149 testBarProgressGifTop = { testBarProgressGifTop }
150+ progressGifSize = { progressGifSize }
151+ winGifSize = { winGifSize }
143152 />
144153 ) }
145154 { orientations . LEFT === orientation && (
@@ -168,6 +177,8 @@ function StreamWidget({
168177 testBarProgressGifTop = { testBarProgressGifTop }
169178 width = { widthEditorPanelPercentage }
170179 taskHeaderFontSize = { taskHeaderFontSize }
180+ progressGifSize = { progressGifSize }
181+ winGifSize = { winGifSize }
171182 />
172183 </ div >
173184 ) }
@@ -183,6 +194,8 @@ function StreamWidget({
183194 testBarProgressGifTop = { testBarProgressGifTop }
184195 width = { widthEditorPanelPercentage }
185196 taskHeaderFontSize = { taskHeaderFontSize }
197+ progressGifSize = { progressGifSize }
198+ winGifSize = { winGifSize }
186199 />
187200 < StreamTaskInfoPanel
188201 game = { game }
0 commit comments