aboutsummaryrefslogtreecommitdiff
path: root/internal/admin/api_colors.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-07-15 06:19:05 -0400
committerhistoria <[not public]>2026-07-15 06:19:05 -0400
commite09e7badbc722f580a9d7674c46d6ff3cc320b26 (patch)
treea6beb1ed8a2ed3e2ae2334a619a1e0b40e5030d6 /internal/admin/api_colors.go
parent84dd8c7557d8b9d92cd8d339afc28a0fd9a3a896 (diff)
downloadthehouseoficarus-e09e7badbc722f580a9d7674c46d6ff3cc320b26.tar.gz
feat(admin): color picker shows color cube correctly
Diffstat (limited to 'internal/admin/api_colors.go')
-rw-r--r--internal/admin/api_colors.go53
1 files changed, 23 insertions, 30 deletions
diff --git a/internal/admin/api_colors.go b/internal/admin/api_colors.go
index 78e5f98..0493b6c 100644
--- a/internal/admin/api_colors.go
+++ b/internal/admin/api_colors.go
@@ -144,17 +144,15 @@ func buildPreview() []colorSection {
sections = append(sections, colorSection{
Title: "Room Look",
Lines: []colorLine{
- ln(seg("[", "dim"), seg("*", "map_at"), seg("] ", "dim"),
- seg("Test Room", "room_name"),
- seg(" (", ""), seg("intro", "room_desc"), seg(", ", ""),
- seg("#2001", "room_number"), seg(")", "")),
+ ln(seg("Test Room", "room_name"),
+ seg(" (intro, #2001)", "room_number")),
txt(""),
ln(seg("It's a test room", "room_desc")),
txt(""),
ln(seg("A tree is here.", "room_desc")),
txt(""),
- ln(seg("A sentry ", "protected_mob"), seg("(level 4) watches the gate.", "")),
- ln(seg("A man ", "mob"), seg("(level 5) scribbles something in a small notebook.", "")),
+ ln(seg("A sentry ", "protected_mob"), seg("(level 4)", ""), seg(" watches the gate.", "")),
+ ln(seg("A man ", "mob"), seg("(level 5)", ""), seg(" scribbles something in a small notebook.", "")),
txt(""),
ln(seg("Icarus", "player_name"), seg(" is here.", "")),
txt(""),
@@ -167,20 +165,13 @@ func buildPreview() []colorSection {
txt(""),
txt("Exits:"),
ln(seg(" ", ""), seg("south", "exit_direction"), seg(" - ", ""), seg("Test Room", "exit_name")),
- ln(seg(" ", ""), seg("east", "exit_direction"), seg(" - ", ""), seg("Room ", "exit_name"), seg("#1005", "room_number")),
+ ln(seg(" ", ""), seg("east", "exit_direction"), seg(" - ", ""), seg("Processing Station", "exit_name")),
ln(seg(" ", ""), seg("west", "exit_direction"), seg(" - ", ""), seg("Inside Transport Shuttle", "exit_name")),
txt(""),
ln(seg(">", "dim")),
- },
- })
-
- // --- Movement ---------------------------------------------------------
- sections = append(sections, colorSection{
- Title: "Movement",
- Lines: []colorLine{
- ln(seg("You walk ", ""), seg("south", "direction"), seg(" to ", ""),
- seg("Test Room", "room_name"), seg(" (", ""), seg("#2001", "room_number"), seg(")", "")),
- ln(seg("WARNING: that area is exposed to ", ""), seg("radiation", "warning"), seg(".", "")),
+ txt(""),
+ ln(seg("> s", "dim")),
+ ln(seg("You walk ", ""), seg("south", "direction"), seg(".", "")),
},
})
@@ -193,23 +184,25 @@ func buildPreview() []colorSection {
txt(""),
ln(seg("You attack ", ""), seg("the man", "mob"), seg("! Style: accurate (+3 atk)", "")),
ln(seg("You hit ", ""), seg("the man", "mob"), seg(" for ", ""),
- seg("\u25B8 6 \u25C2 damage. [\u2588\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591] [ 1/7]", "damage_dealt"),
+ seg("\U0001FB38 6 \U0001FB34 damage. [█░░░░░░░░░] [ 1/7]", "damage_dealt"),
seg(" (+18xp acc, +6xp hp)", "xp")),
- ln(seg("The man", "mob"), seg(" misses you.", "miss")),
+ ln(seg("The man misses you.", "miss")),
ln(seg("You hit ", ""), seg("the man", "mob"), seg(" for ", ""),
- seg("\u25B8 6 \u25C2 damage. [\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591] [ 0/7]", "damage_dealt"),
+ seg("\U0001FB38 6 \U0001FB34 damage. [░░░░░░░░░░] [ 0/7]", "damage_dealt"),
seg(" (+18xp acc, +6xp hp)", "xp")),
ln(seg("You have defeated ", ""), seg("the man", "mob"), seg("!", "victory")),
ln(seg("*** You are now level 12 melee! ***", "level_up")),
txt(""),
ln(seg("A scout", "mob"), seg(" hits you for ", ""),
- seg("\u25B8 5 \u25C2 damage. [\u2588\u2588\u2588\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591] [22/40]", "damage_taken")),
+ seg("\U0001FB38 5 \U0001FB34 damage. [██████░░░░] [22/40]", "damage_taken")),
ln(seg("A scout's attack is extra effective! Equip ", ""),
seg("plated vest", "warning"), seg(" for protection.", "")),
ln(seg("You attack ", ""), seg("a scout", "mob"), seg(" with ", ""), seg("laser cutter", "science_mod"), seg("!", "")),
- ln(seg("You miss ", ""), seg("a scout", "mob"), seg(".", "miss")),
+ ln(seg("You miss a scout.", "miss")),
ln(seg("Oh dear, you are dead!", "death")),
- ln(seg("Error: command not recognized.", "error")),
+ txt(""),
+ ln(seg("> help!", "dim")),
+ ln(seg("Unknown command.", "error")),
txt(""),
ln(seg("(", ""), seg("damage", "damage"), seg(" is a config-only alt key, not emitted by the engine)", "")),
},
@@ -284,13 +277,13 @@ func buildPreview() []colorSection {
sections = append(sections, colorSection{
Title: "Mini Map",
Lines: []colorLine{
- ln(seg("\u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557", "dim")),
- ln(seg("\u2551", "dim"), seg("\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591", "map_blocked"), seg("\u2551", "dim")),
- ln(seg("\u2551", "dim"), seg("\u2591\u2591", "map_blocked"), seg("@", "map_at"), seg("\u2591\u2591", "map_blocked"), seg("\u2502", "map_course"), seg("\u2591\u2591\u2591\u2591", "map_blocked"), seg("\u2551", "dim")),
- ln(seg("\u2551", "dim"), seg("\u2591\u2591\u2591\u2591\u2591", "map_blocked"), seg("\u2502", "map_course"), seg("\u2591\u2591\u2591\u2591", "map_blocked"), seg("\u2551", "dim")),
- ln(seg("\u2551", "dim"), seg("\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591", "map_blocked"), seg("\u2551", "dim")),
- ln(seg("\u255a\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255d", "dim")),
- ln(seg(" ", ""), seg("Room #2002", "room_number")),
+ ln(seg("╔═════╗", "dim")),
+ ln(seg("║", "dim"), seg(" ", ""), seg("░", "map_blocked"), seg(" ", ""), seg("║", "dim")),
+ ln(seg("║", "dim"), seg(" ", ""), seg("║", "dim")),
+ ln(seg("║", "dim"), seg("■", ""), seg("-", ""), seg("@", "map_at"), seg("-", ""), seg("■", ""), seg("║", "dim")),
+ ln(seg("║", "dim"), seg(" ", ""), seg("│", "map_course"), seg(" ", ""), seg("║", "dim")),
+ ln(seg("║", "dim"), seg(" ", ""), seg("■", ""), seg(" ", ""), seg("║", "dim")),
+ ln(seg("╚═════╝", "dim")),
},
})