Skip to content

Right-click inventory item opens UFOpaedia entry#9

Draft
ayrtondenner wants to merge 1 commit intomasterfrom
feature/right-click-ufopaedia-equip
Draft

Right-click inventory item opens UFOpaedia entry#9
ayrtondenner wants to merge 1 commit intomasterfrom
feature/right-click-ufopaedia-equip

Conversation

@ayrtondenner
Copy link
Owner

Summary

  • Restores original X-COM: Apocalypse behavior: right-clicking an item in equip screens opens its UFOpaedia entry
  • Adds right-click handling to both agent equip screen (aequipscreen.cpp) and vehicle equip screen (vequipscreen.cpp)
  • Left-click drag & drop behavior is preserved unchanged

Upstream issue: OpenApoc#1571
Tracking issue: #8

Test plan

  • Agent equip — right-click item on paper doll → opens UFOpaedia entry
  • Agent equip — right-click item in inventory bar → opens UFOpaedia entry
  • Agent equip — left-click still drags items as before
  • Vehicle equip — right-click equipped item → opens UFOpaedia entry
  • Vehicle equip — right-click item in inventory → opens UFOpaedia entry
  • Vehicle equip — left-click still drags items as before
  • Right-click on empty slot → nothing happens (no crash)
  • Right-click on unresearched item → nothing happens gracefully
  • Right-click while dragging → no interference with drag state
  • Enemy mode — right-click does nothing

🤖 Generated with Claude Code

In the original X-COM: Apocalypse, right-clicking an item in the equip
screen opens its UFOpaedia entry. This restores that behavior for both
the agent and vehicle equipment screens.

Resolves OpenApoc#1571
Closes #8

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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