Skip to content

Commit

Permalink
Update announcer display final score screen for 2024.
Browse files Browse the repository at this point in the history
  • Loading branch information
patfair committed May 17, 2024
1 parent a092655 commit 1247a88
Showing 1 changed file with 28 additions and 18 deletions.
46 changes: 28 additions & 18 deletions templates/announcer_display_score_posted.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ <h4 class="modal-title">Final Results &ndash; {{.Match.LongName}}</span></h4>
<div class="col-sm-6">
<div class="card card-body bg-red">
{{template "alliance_match_result" dict "summary" .RedScoreSummary "fouls" .RedFouls "cards" .RedCards
"rankings" .RedRankings "rulesViolated" .RulesViolated}}
"rankings" .RedRankings "rulesViolated" .RulesViolated "rankingPoints" .RedRankingPoints
"matchType" .Match.Type}}
</div>
</div>
<div class="col-sm-6">
<div class="card card-body bg-blue">
{{template "alliance_match_result" dict "summary" .BlueScoreSummary "fouls" .BlueFouls "cards" .BlueCards
"rankings" .BlueRankings "rulesViolated" .RulesViolated}}
"rankings" .BlueRankings "rulesViolated" .RulesViolated "rankingPoints" .BlueRankingPoints
"matchType" .Match.Type}}
</div>
</div>
</div>
Expand All @@ -28,37 +30,45 @@ <h4 class="modal-title">Final Results &ndash; {{.Match.LongName}}</span></h4>
{{define "alliance_match_result"}}
<h4>Score</h4>
<div class="row justify-content-center">
<div class="col-sm-6">Auto Mobility Points</div>
<div class="col-sm-4">{{.summary.MobilityPoints}}</div>
<div class="col-sm-6">Auto Leave Points</div>
<div class="col-sm-4">{{.summary.LeavePoints}}</div>
</div>
<div class="row justify-content-center">
<div class="col-sm-6">Grid Points</div>
<div class="col-sm-4">{{.summary.GridPoints}}</div>
<div class="col-sm-6">Speaker Points</div>
<div class="col-sm-4">{{.summary.SpeakerPoints}}</div>
</div>
<div class="row justify-content-center">
<div class="col-sm-6">Charge Station Points</div>
<div class="col-sm-4">{{.summary.ChargeStationPoints}}</div>
<div class="col-sm-6">Amp Points</div>
<div class="col-sm-4">{{.summary.AmpPoints}}</div>
</div>
<div class="row justify-content-center">
<div class="col-sm-6">Endgame Park Points</div>
<div class="col-sm-4">{{.summary.ParkPoints}}</div>
<div class="col-sm-6">Stage Points</div>
<div class="col-sm-4">{{.summary.StagePoints}}</div>
</div>
<div class="row justify-content-center">
<div class="col-sm-6">Foul Points</div>
<div class="col-sm-4">{{.summary.FoulPoints}}</div>
</div>
<div class="row justify-content-center">
<div class="col-sm-6">Sustainability Bonus RP</div>
<div class="col-sm-4">{{if .summary.SustainabilityBonusRankingPoint}}Yes{{else}}No{{end}}</div>
</div>
<div class="row justify-content-center">
<div class="col-sm-6">Activation Bonus RP</div>
<div class="col-sm-4">{{if .summary.ActivationBonusRankingPoint}}Yes{{else}}No{{end}}</div>
</div>
{{if ne .matchType playoffMatch}}
<div class="row justify-content-center">
<div class="col-sm-6">Melody Bonus RP</div>
<div class="col-sm-4">{{if .summary.MelodyBonusRankingPoint}}Yes{{else}}No{{end}}</div>
</div>
<div class="row justify-content-center">
<div class="col-sm-6">Ensemble Bonus RP</div>
<div class="col-sm-4">{{if .summary.EnsembleBonusRankingPoint}}Yes{{else}}No{{end}}</div>
</div>
{{end}}
<div class="row justify-content-center mt-3">
<div class="col-sm-6"><b>Final Score</b></div>
<div class="col-sm-4"><b>{{.summary.Score}}</b></div>
</div>
{{if ne .matchType playoffMatch}}
<div class="row justify-content-center">
<div class="col-sm-6"><b>Ranking Points</b></div>
<div class="col-sm-4"><b>{{.rankingPoints}}</b></div>
</div>
{{end}}
<h4 class="mt-3">Fouls</h4>
{{range $foul := .fouls}}
<div class="row justify-content-center">
Expand Down

0 comments on commit 1247a88

Please sign in to comment.