Skip to content

Minimap: works with a popup up - #65

Closed
MortenLyhr wants to merge 1 commit into
bssth:masterfrom
MortenLyhr:fix/map-under-popups
Closed

MortenLyhr wants to merge 1 commit into
bssth:masterfrom
MortenLyhr:fix/map-under-popups

Conversation

@MortenLyhr

Copy link
Copy Markdown
Contributor

With a popup up (the research choice, naming a city, choosing what it builds), a click on the main interface's minimap did nothing, so the map could not be looked over while choosing. MapWindow::onButton checked !popup.active() before the minimap; the check is gone, so the click and the drag move the camera as without a popup. A click on the popup itself is still taken first.

The mouse wheel already zooms the map with a popup up (unless the mouse is over the popup, where it scrolls the popup); checked the same way.

TestMap at the start, research popup open, after a click on the minimap's lower left: the camera went there, the popup stays.

after

Checked:

  • ctest 13/13.
  • --turns 100 --map Fractal --size STANDARD --seed 7 checksums match master on every turn.

🤖 Generated with Claude Code

A popup (the research choice, a city's name or what it builds) blocked
the main interface's minimap, so the map could not be looked over while
choosing. The click and the drag now work as without a popup; the
popup's own clicks are taken before it as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MortenLyhr

Copy link
Copy Markdown
Contributor Author

Closing: in the original (checked in Wine, plain BtS and BUG + BULL) the minimap takes no click while the turn's questions (build, research, civic) are up, the opposite of this PR. #149 makes them modal as the original's, minimap included; see #149 (comment).

@MortenLyhr MortenLyhr closed this Nov 23, 2026
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