Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support a barebones "city screen" view #532

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

TomWerner
Copy link
Contributor

This is triggered when building a city and when clicking "zoom to city"

For now I've just added the "exit" button, but hope to add tile yields soon.

I also fixed an issue with the advisor and input handling - previously if you exited the advisor via escape the game would ask if you wanted to exit. Now it works properly.

This will hopefully yield additional good starter PRs - there's lots of labels and icons to place on this screen.

image

@TomWerner TomWerner force-pushed the twrner/initial-city-screen branch from f317477 to df4eeec Compare January 29, 2025 21:37
if (!unit.canBuildCity()) {
log.Warning($"can't build city at {unit.location}");
return;
return null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we could return a nullable type from this method to enhance type safety.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

This is triggered when building a city and when clicking "zoom to city"

For now I've just added the "exit" button, but hope to add tile yields soon.

I also fixed an issue with the advisor and input handling - previously if you exited the advisor via escape the game would ask if you wanted to exit. Now it works properly.
@TomWerner TomWerner force-pushed the twrner/initial-city-screen branch from df4eeec to 2c2c21f Compare February 7, 2025 05:26
@TomWerner TomWerner merged commit 2d0ce1a into Development Feb 7, 2025
3 checks passed
@TomWerner TomWerner deleted the twrner/initial-city-screen branch February 7, 2025 05:29
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.

2 participants