From a2cbc04f86508708daa09affa5e9d73cc689b2ba Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Mon, 3 Aug 2026 17:15:50 -0400 Subject: feat: new color 'command', color tag system implemented --- internal/casino/machine.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'internal/casino/machine.go') diff --git a/internal/casino/machine.go b/internal/casino/machine.go index 0ee4cde..79e4cb6 100644 --- a/internal/casino/machine.go +++ b/internal/casino/machine.go @@ -340,13 +340,19 @@ func formatWins(wins []SlotWin, ways int) string { return message[:len(message)-1] } -const slotMenuText = "Slot machine commands:\n bet Set your wager\n bet max Set the maximum wager\n spin Spin using your current wager\n autospin Start automatic betting\n stop Leave the slot machine" +var slotCommands = []MenuCommand{ + {Command: "bet ", Desc: "Set your wager"}, + {Command: "bet max", Desc: "Set the maximum wager"}, + {Command: "spin", Desc: "Spin using your current wager"}, + {Command: "autospin", Desc: "Start automatic betting"}, + {Command: "stop", Desc: "Leave the slot machine"}, +} func (m *Machine) privateMenu(prefix string) []Event { events := m.private(prefix) events[0].Color = "casino_menu" if m.phase == machineReady { - events[0].Menu = &MenuView{Kind: MenuSlotCommands, Body: slotMenuText} + events[0].Menu = &MenuView{Kind: MenuSlotCommands, Commands: slotCommands} } return events } -- cgit v1.2.3