diff options
| author | historia <[not public]> | 2026-08-03 17:15:50 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-08-03 17:15:50 -0400 |
| commit | a2cbc04f86508708daa09affa5e9d73cc689b2ba (patch) | |
| tree | 0d0c6c7fbf4a775faaf5e9dd700157b883882638 /internal/game/render_help.go | |
| parent | adda27dba5bf7bf1dee62159f0cbc0bd90734751 (diff) | |
| download | thehouseoficarus-a2cbc04f86508708daa09affa5e9d73cc689b2ba.tar.gz | |
feat: new color 'command', color tag system implemented
Diffstat (limited to 'internal/game/render_help.go')
| -rw-r--r-- | internal/game/render_help.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/game/render_help.go b/internal/game/render_help.go index 4a283d1..e2893b5 100644 --- a/internal/game/render_help.go +++ b/internal/game/render_help.go @@ -7,6 +7,7 @@ import ( "gopkg.in/yaml.v3" "thehouseoficarus/internal/behavior" + "thehouseoficarus/internal/color" "thehouseoficarus/internal/net" "thehouseoficarus/internal/ui" ) @@ -117,8 +118,10 @@ func (g *Game) doHelp(sess *net.Session, topic string) { Title: "Commands", Columns: []string{"Command", "Type", "Description"}, } + commandSpec := g.resolveColor(sess, "command") for _, c := range commandList { - t.Rows = append(t.Rows, []string{c.Name, c.Type, c.Desc}) + name := color.Render(g.colorMode(sess), commandSpec, c.Name) + t.Rows = append(t.Rows, []string{name, c.Type, c.Desc}) } for _, line := range t.Render(unicode, wrapWidth) { sess.WriteLine(line) |
