@@ -173,6 +173,14 @@ def game_state(self, game_state: str):
173173 self .ui_video_control .QWidget .close ()
174174 self .label .paint_cursor = False
175175 self .set_country_flag ()
176+ self .score_board_manager .with_namespace ({
177+ "checksum_ok" : "--" ,
178+ "is_official" : "--" ,
179+ "is_fair" : "--" ,
180+ "mode" : mm .trans_game_mode (self .gameMode ),
181+ })
182+ self .score_board_manager .show (self .label .ms_board , index_type = 1 )
183+
176184 elif self ._game_state == 'study' :
177185 self .num_bar_ui .QWidget .close ()
178186 self ._game_state = game_state
@@ -586,12 +594,6 @@ def gameRestart(self, e = None): # 画界面,但是不埋雷,改数据而
586594 # self.label.paint_cursor = False
587595 # self.label.setMouseTracking(False) # 鼠标未按下时,组织移动事件回调
588596
589- self .score_board_manager .with_namespace ({
590- "checksum_ok" : "--" ,
591- "is_official" : "--" ,
592- "is_fair" : "--"
593- })
594-
595597
596598 # 游戏结束画残局,改状态
597599 def gameFinished (self ):
@@ -655,6 +657,7 @@ def dump_evf_file_data(self):
655657 self .label .ms_board .is_official = self .is_official ()
656658
657659 self .label .ms_board .software = "元3.1.10" .encode ( "UTF-8" )
660+ self .label .ms_board .mode = self .gameMode
658661 self .label .ms_board .player_identifier = self .player_identifier .encode ( "UTF-8" )
659662 self .label .ms_board .race_identifier = self .race_identifier .encode ( "UTF-8" )
660663 self .label .ms_board .uniqueness_identifier = self .unique_identifier .encode ( "UTF-8" )
@@ -1255,10 +1258,18 @@ def play_video(self, video):
12551258 # 检查evf的checksum,其余录像没有鉴定能力
12561259 if isinstance (video , ms .EvfVideo ):
12571260 self .score_board_manager .with_namespace ({
1258- "checksum_ok" : self .checksum_guard .valid_checksum (video .raw_data [:- 33 ], video .checksum ),
1259- "is_official" : video .is_official ,
1260- "is_fair" : video .is_fair
1261+ "checksum_ok" : self .checksum_guard .\
1262+ valid_checksum (video .raw_data [:- 33 ], video .checksum ),
1263+ })
1264+ else :
1265+ self .score_board_manager .with_namespace ({
1266+ "checksum_ok" : False ,
12611267 })
1268+ self .score_board_manager .with_namespace ({
1269+ "is_official" : video .is_official ,
1270+ "is_fair" : video .is_fair ,
1271+ "mode" : mm .trans_game_mode (video .mode ),
1272+ })
12621273 video .analyse_for_features (["high_risk_guess" , "jump_judge" , "needless_guess" ,
12631274 "mouse_trace" , "vision_transfer" , "survive_poss" ])
12641275
0 commit comments