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

Create a Mac port #78

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

alicerunsonfedora
Copy link

@alicerunsonfedora alicerunsonfedora commented Oct 15, 2022

This PR will keep track of the progress for the Mac port of the randomizer app.

  • Create the frontend/user interface portion.
  • Change Windows-specific system call to macOS-appropriate ones.
  • Find global pointer and ensure memory hijacking works correctly.

Signed-off-by: Marquis Kurt <[email protected]>
The current UI has been created with Storyboards and follows more
closely to the verbiage used in Mac apps. Preliminary support for
saving/loading from User Defaults exists, though the app doesn't
fully utilize it yet.

The current app structure uses MVVM as well, to separate the UI
from the business logic.

Signed-off-by: Marquis Kurt <[email protected]>
@alicerunsonfedora
Copy link
Author

Progress update: We now have a basic UI that is hooked up to a view model that controls the difficulty mode. There's also some support for loading from/saving to User Defaults. The current structure of the app is MVVM.

image

The main UI is finished with support for saving and loading data
from User Defaults. This will likely get changed when the app will
look for an active process of The Witness to randomize.

Signed-off-by: Marquis Kurt <[email protected]>
Additionally, for Macs running 11.0 or later, the subtext that will
update the status of randomization appears as the window's subtitle.

Signed-off-by: Marquis Kurt <[email protected]>
@alicerunsonfedora
Copy link
Author

Progress update: I've finished hooking up the UI to a basic view model, which handles storing the settings somewhere. Additionally, I've set up the app so that it loads from and saves to User Defaults when opening/closing the app. I've also made some minor tweaks for Macs running Big Sur and later to use the window's subtitle property. I still need to figure out a good solution for Macs running Catalina and earlier.

image

This only appears on Big Sur or later and if the user has selected
their preferred accent color on the system to be Multicolor.

Signed-off-by: Marquis Kurt <[email protected]>
Signed-off-by: Marquis Kurt <[email protected]>
@tgtiweird
Copy link

looks nice so far

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