Skip to content

City screen: Left and Right go to the previous and the next city, as the original's - #168

Open
MortenLyhr wants to merge 1 commit into
bssth:masterfrom
MortenLyhr:fix/city-screen-arrow-keys
Open

MortenLyhr wants to merge 1 commit into
bssth:masterfrom
MortenLyhr:fix/city-screen-arrow-keys

Conversation

@MortenLyhr

Copy link
Copy Markdown
Contributor

In the original's city screen, Left goes to the previous city and Right to the next one. From Roma on the TestMap, Left goes to Antium and Right to Cumae, the game core's Previous City and Next City (seen in Wine, BtS 3.19). Up does nothing. OpenCiv4 looked for an action with the arrow as its hotkey and found none, so nothing happened: no action has a plain arrow as its hotkey in CIV4ControlInfos.xml (Next and Previous City are on Home and End).

With the city screen up and no modifier held, Left now runs Previous City and Right runs Next City. Up and Down still do nothing. The camera stays held on the city screen (#155), and changing city moves it to the new city, as Home and End already did.

Wine (original) / OpenCiv4
Left, after
Right, before
Right, after

Checks

  • Scripted keys on the TestMap (Roma, 40,36): before, Left, Right and Up did nothing. After, Left goes to Antium and Right to Cumae, as in Wine; Up still does nothing.
  • ctest 15/15.
  • Checksum at turn 100 (--turns 100 --map Fractal --size STANDARD --seed 7): D7D43800, unchanged (input only).

🤖 Generated with Claude Code

In the original's city screen Left goes to the previous city and Right to
the next one (seen in Wine on the TestMap: from Roma, Left to Antium and
Right to Cumae, the game core's Previous and Next City); Up does nothing.
No action has the arrows as its hotkey (CIV4ControlInfos.xml gives Next
and Previous City Home and End), so OpenCiv4 found no action for them
there and nothing happened. Now, with the city screen up and no modifier
held, they run Previous City and Next City.

Co-Authored-By: Claude Opus 5.5 <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