Skip to content

feat: relay treasure-hunt travels, paste items, optional closing escape - #12

Merged
Miniluchi merged 9 commits into
mainfrom
feat/hunt-overlay-items-escape
Oct 6, 2026
Merged

Miniluchi merged 9 commits into
mainfrom
feat/hunt-overlay-items-escape

Conversation

@Miniluchi

Copy link
Copy Markdown
Owner

Treasure-hunt /travels were never relayed, for two reasons at once:

  • The hunt overlay copies /travel -33 -59 — space-separated, no comma — which the parser rejected.
  • Clicking the overlay never brings Ganymède to the foreground, so the source gate saw Dofus in front and dropped the copy.

The gate now also counts the window under the pointer (WindowPort::under_cursor: window list on macOS, WindowFromPoint on Windows), and a command stays valid for 2 s after the user was last in Ganymède, to cover the overlay's animation. Item names get no grace: the overlay sits over the game, so text copied anywhere just after a hover must not be pasted into it.

Also in this PR:

  • Items: plain text copied in Ganymède (an item name) is pasted into Dofus with Ctrl/Cmd+V only — no chat, no Enter. On by default, toggle in the panel.
  • Press Escape: optional closing Escape that hands the keyboard back to the game after a command. Off by default; written into send_sequence like the chat key.
  • Recognised commands that were not relayed are now logged at info instead of debug.

Tested in game on macOS. The Windows layer is type-checked only.

@Miniluchi
Miniluchi merged commit ad2b33a into main Oct 6, 2026
4 checks passed
@Miniluchi
Miniluchi deleted the feat/hunt-overlay-items-escape branch October 6, 2026 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant