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

feature: cross-platform UI #39

Conversation

maximilien-noal
Copy link
Contributor

@maximilien-noal maximilien-noal commented Mar 3, 2024

Description of Changes

Brings a cross-platform UI, thanks to AvaloniaUI.

Keeps the WinForms client as a comparison (for now).

Separates OpenCiv1 assembly from the UI.

Rationale behind Changes

Enables more contributions from people who don"t use Windows.

Enables the game to run on Linux, Mac, while still running on Windows.

The structure also enable the reuse of the OpenCiv1.UI assembly for a Blazor or Avalonia WASM project, and iOS and Android projects.

Suggested Testing Steps

image

Two things to fix in RedrawScreen: wrong colors and wrong coords.

Also the MessageBox that confirms the user exiting the app arrives too late (the app has already closed.

Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

@maximilien-noal
Copy link
Contributor Author

Update:

Two things to fix in RedrawScreen: wrong colors and wrong coords.

image

Also the MessageBox that confirms the user exiting the app arrives too late (the app has already closed)

@maximilien-noal maximilien-noal force-pushed the feature/cross_platform branch 2 times, most recently from 166e7cc to 7c5c5ce Compare March 4, 2024 18:53
Signed-off-by: Maximilien Noal <noal.maximilien@gmail.com>
@maximilien-noal
Copy link
Contributor Author

image

The only thing left to fix seems to be the keyboard. I can't skip the intro...?

@siebenstreich
Copy link

Enables the game to run on Linux, Mac, while still running on Windows.

A big thumbs-up for explicitly paying attention to Linux-compatibility!

@rajko-horvat
Copy link
Owner

Enables the game to run on Linux, Mac, while still running on Windows.

A big thumbs-up for explicitly paying attention to Linux-compatibility!

I'm currently testing it under Linux ;)

@rajko-horvat
Copy link
Owner

The test went successfully under Ubuntu. I had to be extra careful about Upper/Lower case file names as Linux distinguishes between them. But all went great ;)
image

@richardpenman
Copy link

wow that is remarkable - running civ1 on Linux without an emulator!

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.

None yet

4 participants