diff options
Diffstat (limited to 'internal/game/cmd_score.go')
| -rw-r--r-- | internal/game/cmd_score.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/game/cmd_score.go b/internal/game/cmd_score.go index 488979c..5e850d1 100644 --- a/internal/game/cmd_score.go +++ b/internal/game/cmd_score.go @@ -123,6 +123,14 @@ func (g *Game) doScore(sess *net.Session) { color.Render(mode, color.Parse("FA"), fmt.Sprintf("%.0f", p.MaxBattery()))) content(batLine) + engStyle := &ui.BarStyle{FilledColor: 108, EmptyColor: 237, EmptyDim: true} + engBarStr := ui.RenderColoredBar(p.RunEnergy, p.MaxRunEnergy(), 26, unicode, engStyle, mode) + engLine := fmt.Sprintf("ENG [%s] %s / %s", + engBarStr, + color.Render(mode, color.ColorSpec{Fg: 108}, fmt.Sprint(p.RunEnergy)), + color.Render(mode, color.Parse("FA"), fmt.Sprint(p.MaxRunEnergy()))) + content(engLine) + gap() actionDesc := "Idle" |
