Repository navigation
Add a Setups page that opens first - #172
Merged
Merged
Conversation
Every saved profile is listed as a setup beside the chosen one, which shows its HUD's in-game picture and eight key details: HUD, crosshair, field of view, sensitivity, hit and kill sounds, performance preset and mods. Details that match the setup in the game are dimmed, and the "N changes from <name>" line opens the existing Compare dialog. The setup in the game offers Edit and Play; any other offers Switch and Switch and play. Both use the existing switch and launch paths, and Switch and play only launches once that profile is in the game. The details come from a new read-only command, get_setup_overviews, which reads each profile's manifest and stored cfgs and writes nothing.
Opening execs fetched the HUD catalog and wrote its cache just to name HUDs and show their pictures, which the native Linux checks rightly flag. The page now reads the saved copy through get_cached_hud_catalog and falls back to the HUD's id and a plain block before one exists.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A Setups page, first in the sidebar and where the workspace opens. It lists every profile as a setup; the chosen one shows its HUD's in-game picture and eight details (HUD, crosshair, field of view, sensitivity, hit and kill sounds, performance preset, mods).
Why
Switching between whole setups is the core of execs, but it was only reachable from the header menu, and the app opened on a settings pane.
How
get_setup_overviews(core/src/setup_overview.rs) is read-only: it reads each profile's manifest and stored cfgs (Gameplay cfg first, then the profile'sconfig.cfgfor FOV and sensitivity). The page adds no writes.?preview=setupsshows it in the browser preview.profiles.md),ARCHITECTURE.mdand the changelog are updated.Checks
vitest(152 files),biome check .,tsc --noEmit, the root script tests,cargo fmt --check,cargo clippy -D warnings,cargo test --workspace --locked. Checked in the browser preview at 1400, 1024 and 960 px wide.