tweak(hud): el bloc d'un jugador inactiu es deixa apagat (sense dibuixar, reservant l'ample)
This commit is contained in:
@@ -945,6 +945,8 @@ auto GameScene::buildScoreboardData() const -> Systems::InitHud::ScoreboardData
|
||||
return std::string(6 - std::min(6, static_cast<int>(S.length())), '0') + S;
|
||||
};
|
||||
|
||||
out.p1_active = match_config_.player1_active;
|
||||
out.p2_active = match_config_.player2_active;
|
||||
out.score_p1 = match_config_.player1_active ? FORMAT_SCORE(score_per_player_[0]) : "000000";
|
||||
out.lives_p1 = match_config_.player1_active ? lives_per_player_[0] : 0;
|
||||
out.score_p2 = match_config_.player2_active ? FORMAT_SCORE(score_per_player_[1]) : "000000";
|
||||
|
||||
Reference in New Issue
Block a user