aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_aps.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/cmd_aps.go')
-rw-r--r--internal/game/cmd_aps.go15
1 files changed, 9 insertions, 6 deletions
diff --git a/internal/game/cmd_aps.go b/internal/game/cmd_aps.go
index 727bf8b..56820ad 100644
--- a/internal/game/cmd_aps.go
+++ b/internal/game/cmd_aps.go
@@ -125,15 +125,18 @@ func displayApsNodes(g *Game, sess *net.Session, p *player.Player, known []int)
})
mode := g.colorMode(sess)
+ hLabel := g.resolveConstant(sess, "table_header_label")
+ hDetail := g.resolveConstant(sess, "table_header_detail")
+ hValue := g.resolveConstant(sess, "table_header_value")
rows := make([][]string, len(infos))
for i, info := range infos {
distStr := strconv.Itoa(info.Distance)
if info.Distance == 0 {
- distStr = color.Render(mode, color.Parse("6C"), "here")
+ distStr = color.Render(mode, g.resolveConstant(sess, "aps_here"), "here")
}
rows[i] = []string{
- color.Render(mode, color.Parse("F5"), fmt.Sprintf("#%d", info.ID)),
- color.Render(mode, color.Parse("49"), info.Name),
+ color.Render(mode, hDetail, fmt.Sprintf("#%d", info.ID)),
+ color.Render(mode, hLabel, info.Name),
distStr,
}
}
@@ -141,9 +144,9 @@ func displayApsNodes(g *Game, sess *net.Session, p *player.Player, known []int)
t := &ui.Table{
Title: "APS Datapad",
Columns: []string{
- color.Render(mode, color.Parse("F5"), "Room"),
- color.Render(mode, color.Parse("49"), "Name"),
- color.Render(mode, color.Parse("FA"), "Distance"),
+ color.Render(mode, hDetail, "Room"),
+ color.Render(mode, hLabel, "Name"),
+ color.Render(mode, hValue, "Distance"),
},
Rows: rows,
}