Repository navigation
xcl-menu: a themed menu for a controller that starts games with xcl run - #3457
ArtuArtaza wants to merge 1 commit into
Conversation
A program of its own in crates/xcl-menu, drawn with gpui-kit. It lists the games in the folders the user adds, starts one with `xcl run <folder>` and prepares its shaders ahead of time with `xcl pso-precompile <folder>`. It links nothing of XCL and is not a member of the workspace, so the root Cargo.lock and `cargo build --workspace` stay as they are, and CI neither builds nor tests it. Five layouts (home, coverflow, blades, orb, classic) drawn from theme files, six of them built in; keyboard, mouse and controller. The tree holds no pictures and no fonts: the built-in themes have no background picture, and a theme whose font is not installed is drawn with Segoe UI. The network setting is on by default, as with `xcl run`; off, the menu passes XCL_NETWORK=0. In crates/xcl-menu, debug, Rust 1.100.0, RX 6700 XT / Ryzen 5 5600X: cargo build has no warnings; cargo test: 38 passed, 0 failed, 0 ignored. Not done by hand yet: starting a real game, a real warm-up, controller input. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Review (head 8eadbd9, diff triaged rather than read line by line; draft, not built or run):
Fine: it doesn't touch AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point. |
|
Overlaps in purpose with #1500 (PowerShell developer launcher with presets) and #1719 ( AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
A menu for the couch: it lists the games in the folders you add, starts one with
xcl run <folder>, and prepares a game's shaders ahead of time withxcl pso-precompile <folder>, with a progress bar, a queue and pause. Keyboard, mouse and controller; five layouts drawn from theme files. It is a program of its own (crates/xcl-menu) that startsxcl.exefrom outside: nothing of XCL is linked or changed, and it is not a member of the workspace, so the rootCargo.toml,Cargo.lockand CI time are untouched.This is a draft, opened to ask whether such a menu is wanted in the tree. It is far over the size target (8,025 lines without its
Cargo.lock, in one commit) and is here to be looked at, not merged as it is. If it is wanted I will split it into stacked PRs in this order: the window with the Home layout, settings, library and Play; the shader warm-up; then one PR each for the Cover Flow, Blades, Orb and Classic Blades layouts; controller input; the inspection options; the docs. If it is not, it stays in my fork and this can be closed. It does not bear on the world-load goal (#1833), so it can wait.Related: #1719 (
xcl-gui, an egui window for the log, the settings and updates) asks the same question for a different program, and #1500 adds a developer launcher with presets. This one does neither of those jobs: it is the screen you start a game from with a controller. I am glad to fold it into either, or to drop it in favour of one of them.What is in it
crates/xcl-menu/src/model.rs: the settings file, the library scan (a game is a folder withMicrosoftGame.config), findingxcl.exe, startingxcl run, with testscrates/xcl-menu/src/theme.rs,themes/*.toml: theme files withinherits, the six built-in themes, the user's own from%LOCALAPPDATA%\XCL\menu\themes, with testscrates/xcl-menu/src/warm.rs: runningxcl pso-precompile, reading its output into progress, the queue, pause, and each game's last run inwarm.toml, with testscrates/xcl-menu/src/pad.rs: controllers throughgilrs(stick and D-pad as directions with repeat, the face buttons by position), with testscrates/xcl-menu/src/ui/mod.rs,kit.rs,motion.rs,pages.rs: the window, the targets the arrow keys walk, the buttons' states and eases, the pages every layout shares, with testscrates/xcl-menu/src/ui/home.rs,coverflow.rs,blades.rs,orb.rs,classic.rs,src/gfx.rs: the five layouts, and the radial fills the program paints itselfcrates/xcl-menu/src/main.rs: the command line (--demo,--theme,--page, and--state,--transition,--offscreenfor looking at a state or taking pictures)crates/xcl-menu/README.md,Cargo.toml,Cargo.lock(8,912 lines, generated), and outside the crate only a pointer inREADME.mdand a row inTHIRD_PARTY.mdgpui-kit(Apache-2.0; the window and drawing),gilrs(controllers),imageandsmallvec(the fills the program paints itself),tomlandserde(themes and settings)Tested
8eadbd9, no uncommitted changes, AMD Radeon RX 6700 XT (driver 32.0.21045.29003), AMD Ryzen 5 5600X, Windows 11 Pro build 26200.9974, Rust 1.100.0 (0ef1bc386 2026-11-09), debugcrates/xcl-menu:cargo build: no warnings.cargo test: 38 passed, 0 failed, 0 ignored. The tests open no window and use no GPUcargo tree --target x86_64-pc-windows-msvc -e normal,build: 405 crates, each with a licence of the list inTHIRD_PARTY.md(MIT, Apache-2.0, BSD, Zlib, Unicode-3.0, CC0-1.0, MPL-2.0, Unlicense, 0BSD, BSL-1.0, or one of them as an alternative); none is GPL-2.0-onlygit diff --check: cleanRegression run
crates/xcl, and not the rootCargo.tomlorCargo.lockNot tested
xcl pso-precompilerun to its end, its progress, pause, the queue)cargo test --workspace -- --test-threads=4was not run: the workspace's code is unchanged and the GPU was in usemainatfa204595, not rebased onto today'smain;git merge-treefinds no conflict with0fe06eb0AI use
🤖 Generated with Claude Code