mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 13:46:44 -04:00
Made the in-match alliance display stick around for a few seconds post-match.
This commit is contained in:
8
arena.go
8
arena.go
@@ -142,7 +142,7 @@ func (arena *Arena) Setup() {
|
||||
arena.savedMatch = &Match{}
|
||||
arena.savedMatchResult = &MatchResult{}
|
||||
arena.allianceStationDisplays = make(map[string]string)
|
||||
arena.allianceStationDisplayScreen = "blank"
|
||||
arena.allianceStationDisplayScreen = "match"
|
||||
|
||||
arena.lights.Setup()
|
||||
}
|
||||
@@ -230,6 +230,10 @@ func (arena *Arena) LoadMatch(match *Match) error {
|
||||
|
||||
arena.matchLoadTeamsNotifier.Notify(nil)
|
||||
arena.realtimeScoreNotifier.Notify(nil)
|
||||
|
||||
arena.allianceStationDisplayScreen = "match"
|
||||
arena.allianceStationDisplayNotifier.Notify(nil)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -461,6 +465,8 @@ func (arena *Arena) Update() {
|
||||
time.Sleep(time.Second * matchEndScoreDwellSec)
|
||||
arena.audienceDisplayScreen = "blank"
|
||||
arena.audienceDisplayNotifier.Notify(nil)
|
||||
arena.allianceStationDisplayScreen = "logo"
|
||||
arena.allianceStationDisplayNotifier.Notify(nil)
|
||||
}()
|
||||
arena.playSoundNotifier.Notify("match-end")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user