aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_mods.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-07-18 04:44:50 -0400
committerhistoria <[not public]>2026-07-18 04:44:50 -0400
commit2b5d8f595f96a2864899f4c7e28bc06fa52d2603 (patch)
treef1539db865d9968414e59d9b250861c1b356d627 /internal/game/cmd_mods.go
parentdb8ca1fe26a36b78074a424ae657b2cbb9b3af19 (diff)
downloadthehouseoficarus-2b5d8f595f96a2864899f4c7e28bc06fa52d2603.tar.gz
feat: expose all colors in config.yaml for easier theming
Diffstat (limited to 'internal/game/cmd_mods.go')
-rw-r--r--internal/game/cmd_mods.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/internal/game/cmd_mods.go b/internal/game/cmd_mods.go
index 26b0e95..0126b5f 100644
--- a/internal/game/cmd_mods.go
+++ b/internal/game/cmd_mods.go
@@ -55,10 +55,10 @@ func (g *Game) doMods(sess *net.Session, showAll bool) {
t := &ui.Table{
Title: cat.Name,
Columns: []string{
- color.Render(mode, color.Parse("49"), "Module"),
- color.Render(mode, color.Parse("F5"), "Level"),
- color.Render(mode, color.Parse("B3"), "Cost"),
- color.Render(mode, color.Parse("B3"), "XP"),
+ color.Render(mode, g.resolveConstant(sess, "table_header_label"), "Module"),
+ color.Render(mode, g.resolveConstant(sess, "table_header_detail"), "Level"),
+ color.Render(mode, g.resolveConstant(sess, "table_header_xp"), "Cost"),
+ color.Render(mode, g.resolveConstant(sess, "table_header_xp"), "XP"),
},
}
@@ -77,10 +77,10 @@ func (g *Game) doMods(sess *net.Session, showAll bool) {
})
} else if unlocked {
t.Rows = append(t.Rows, []string{
- color.Render(mode, color.Parse("49"), m.Name),
- color.Render(mode, color.Parse("F5"), levelStr),
- color.Render(mode, color.Parse("B3"), costStr),
- color.Render(mode, color.Parse("B3"), xpStr),
+ color.Render(mode, g.resolveConstant(sess, "table_header_label"), m.Name),
+ color.Render(mode, g.resolveConstant(sess, "table_header_detail"), levelStr),
+ color.Render(mode, g.resolveConstant(sess, "table_header_xp"), costStr),
+ color.Render(mode, g.resolveConstant(sess, "table_header_xp"), xpStr),
})
} else {
t.Rows = append(t.Rows, []string{