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

feat: remove game profile selection (fixed on OMEGA) #684

Merged
merged 4 commits into from
Nov 6, 2022

Conversation

skaldarnar
Copy link
Member

@skaldarnar skaldarnar commented Nov 4, 2022

Contains

  • chore: remove unused code; add doc comments
  • feat: disable game profile selection (fixed on OMEGA)
  • feat: remove profile box from both FXML and ApplicationController
  • fix: check for remaining disk space each time the installed games change
  • chore: move more initialization code from ApplicationController#update to ApplicationController#initialize
  • feat: use more bindings in FooterController

Contributes to #677.

image

How to test

Start the launcher.

The game profile selection box ("Terasology" vs "Terasology Lite") should no longer be visible.

The game release selection box should contain the releases (and pre-releases, if enabled in the settings) of Omega builds.

Downloading and starting Omega releases should still work as before.

Note: Previously installed engine-only releases will no longer be visible in the launcher, but will remain on the disk (dead data, but can be started manually).

Outstanding before merging

Improve on the UI in a follow-up PR and clean up unused code in the progress.

@skaldarnar skaldarnar added this to the v4.7 milestone Nov 4, 2022
- feat: remove the game profile combo box from the FXML and the controller
- feat: manage the launcher configuration `config` as property to better handle delayed initialization
- chore: move more initialization code from `ApplicationController#update` to `ApplicationController#initialize`
- feat: initialize game release combo box as soon as the launcher configuration is available
- fix: check for remaining disk space each time the installed games change
@skaldarnar skaldarnar changed the title fix: disable game profile selection (fixed on OMEGA) feat: remove game profile selection (fixed on OMEGA) Nov 5, 2022
@skaldarnar skaldarnar added Type: Enhancement New features or noticable improvements. Topic: UI Related to user interface (UI) or design. Status: Actionable An issue or task that can immediately be worked on Type: Maintenance Maintenance or chores not adding new features or fixing bugs. labels Nov 5, 2022
final GameManager gameManager = new GameManager(cacheDirectory, gameDirectory);
Set<GameIdentifier> installedGames = gameManager.getInstalledGames();
Copy link
Member

Choose a reason for hiding this comment

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

do we call getInstalledGames() in other situations or can it be removed?

Copy link
Member Author

Choose a reason for hiding this comment

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

Likewise, in the application controller:

// bind the application controller's view of the installed games to that of the game manager. that way, we also
// get notified if the installed games are changed from a different thread (DeleteTask or DownloadTask).
Bindings.bindContent(installedGames, gameManager.getInstalledGames());

@skaldarnar skaldarnar merged commit d54ced1 into master Nov 6, 2022
@skaldarnar skaldarnar deleted the fix/remove-terasology-lite branch November 6, 2022 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Actionable An issue or task that can immediately be worked on Topic: UI Related to user interface (UI) or design. Type: Enhancement New features or noticable improvements. Type: Maintenance Maintenance or chores not adding new features or fixing bugs.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants