diff options
Diffstat (limited to 'internal/game/cmd_color.go')
| -rw-r--r-- | internal/game/cmd_color.go | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/internal/game/cmd_color.go b/internal/game/cmd_color.go index 33b406d..8e90f02 100644 --- a/internal/game/cmd_color.go +++ b/internal/game/cmd_color.go @@ -57,8 +57,8 @@ func (g *Game) doColor(sess *net.Session, input string) { spec := color.Parse(value) if spec.Empty() && value != "" { sess.WriteLine(fmt.Sprintf("Invalid color string: %s", value)) - sess.WriteLine("Format: <0-255> [bg:<0-255>] [bold] [dim] [underline]") - sess.WriteLine("Example: 208 bold") + sess.WriteLine("Format: <00-FF> [bg:<00-FF>] [bold] [dim] [underline]") + sess.WriteLine("Example: D0 bold") return } @@ -162,6 +162,9 @@ var colorCategoryOrder = []string{ "eat_food", "drop_message", "credits_pickup", + + "map_at", + "map_blocked", } func showColorTable(g *Game, sess *net.Session) { @@ -169,9 +172,9 @@ func showColorTable(g *Game, sess *net.Session) { mode := g.colorMode(sess) table := &ui.Table{ Columns: []string{ - color.Render(mode, color.Parse("75"), "Target"), + color.Render(mode, color.Parse("4B"), "Target"), "Color", - color.Render(mode, color.Parse("243"), "Source"), + color.Render(mode, color.Parse("F3"), "Source"), }, } for _, cat := range colorCategoryOrder { @@ -185,9 +188,9 @@ func showColorTable(g *Game, sess *net.Session) { } } table.Rows = append(table.Rows, []string{ - color.Render(mode, color.Parse("75"), cat), + color.Render(mode, color.Parse("4B"), cat), coloredVal, - color.Render(mode, color.Parse("243"), source), + color.Render(mode, color.Parse("F3"), source), }) } for _, line := range table.Render(p.OptionBool("unicode")) { |
