RMB cursor hint: show MOVE / ATTACK / INTERACT label under cursor (sub-issue 22-4) #27
Labels
No labels
blocked:needs-attention
blocked:needs-decision
blocked:needs-decompose
blocked:needs-design
blocked:needs-triage
blocked:unclassified
bug
documentation
enhancement
gsd-spec
in-progress
needs-decompose
priority:high
priority:low
priority:medium
quickfix
test
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/cybertactics#27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent-Issue: #22
Sub-issue 22-4 — keyboard hint bottom-bar is the only command surface
#hint(web/index.html:32) is a fixed string. There's no in-game tooltipon RMB that says "MOVE on ground, ATTACK on enemy, INTERACT on object" —
the user has to read the hint bar or experiment. Same for the F1/F2/F3
strike-team keybindings — they aren't shown anywhere in the panels
themselves; only
titleattribute on team rows.Fix
On RMB hover (mousemove with button=2, or mousedown to position, then render
the next frame), draw a small label at the cursor showing what
issueContextwould queue at that tile. Match the queued order label exactly:
MOVEATTACK <name>INTERACT <type>SPREADThe label is a small DOM element (e.g.
#rmb-hint) absolutely positioned atthe cursor; hidden on LMB / mouseout / no RMB context. Reuse the same
classification logic from
issueContext(web/js/game.js:677–709) — do notduplicate the rule, extract a
classifyRmb(tx, ty) → stringhelper ifneeded.
File(s)
web/js/ui.jsrender()— draw the hint ifG.rmbHintis setweb/js/main.jsmousedown — set/clearG.rmbHintweb/css/style.css—#rmb-hintstylingweb/index.html— add#rmb-hintelementAcceptance
("MOVE", "ATTACK ", "INTERACT ") matching the queued
order label
classifyRmbextracted if shared betweenhover and
issueContextmake cipassesRefs
web/index.html:32web/js/ui.jsrender()web/js/main.jsmousedown handlerweb/js/game.js:677–709(issueContext)Fix landed on main as commit
1685748(merge commitd38dcb9after the sibling origin/main merge picked upc304687+60b3a60).What shipped
Tests
CI status
Push triggered CI run #7646 — currently waiting. The self-hosted runner has been cancelled/failure on every commit since 2026-09-22 (sibling commit
c304687was cancelled,5661439was an explicit re-run-via-runner-pickup-verification that failed). This is an upstream runner issue, not a code regression. Verified locally end-to-end.Closes #22-4 / #27.