Textures tab: browse with the mouse wheel and arrow keys #7

Manually merged
github merged 1 commit from gh-pr/7/head into gh-pr/7/base 2026-11-26 20:02:49 +00:00
Owner

@⁠vladbondarenko97 on GitHub · 2026-11-21 22:58 UTC · original
vladbondarenko97:texture-browse → master · +49 −4 · 2 files · 1 commits · merged 2026-11-21 23:03 UTC

Asked for in #1 ("my fingers are starting to hurt going through thousands of hashed textures").

  • Over the preview at fit zoom, each mouse-wheel notch selects the next (down) or previous (up) texture in the filtered list. It also steps past textures that can't decode, which would otherwise stop you. Zoomed in, the wheel pans as before.
  • ↑ / ↓ step one texture and Page Up / Page Down step 10, while no text field has focus.
  • The list scrolls to follow the selection.
  • Each decode now carries a generation number, so a slow decode of a texture you scrolled past can't replace the current preview or its error.

Tested on macOS (Apple Silicon) in the real GUI (--tab textures, all 352,461 textures) with real wheel events (CGEvent) and key presses: 3 notches down from no selection selects row 3; then 5 down, 2 up, ↓ ↓ lands on row 8 as expected, past an undecodable R8G8B8A8 tile-mode-1 texture; the list follows and the selected BC7 texture decodes. cargo build/cargo test clean. Not tried on Windows; the code only uses egui input (no platform calls).

🤖 Generated with Claude Code

**@⁠vladbondarenko97** on GitHub · 2026-11-21 22:58 UTC · [original](https://github.com/holdmysocks/SixNG/pull/7) `vladbondarenko97:texture-browse` → `master` · +49 −4 · 2 files · 1 commits · merged 2026-11-21 23:03 UTC Asked for in #1 ("my fingers are starting to hurt going through thousands of hashed textures"). - Over the preview at fit zoom, each mouse-wheel notch selects the next (down) or previous (up) texture in the filtered list. It also steps past textures that can't decode, which would otherwise stop you. Zoomed in, the wheel pans as before. - ↑ / ↓ step one texture and Page Up / Page Down step 10, while no text field has focus. - The list scrolls to follow the selection. - Each decode now carries a generation number, so a slow decode of a texture you scrolled past can't replace the current preview or its error. **Tested** on macOS (Apple Silicon) in the real GUI (`--tab textures`, all 352,461 textures) with real wheel events (CGEvent) and key presses: 3 notches down from no selection selects row 3; then 5 down, 2 up, ↓ ↓ lands on row 8 as expected, past an undecodable `R8G8B8A8` tile-mode-1 texture; the list follows and the selected BC7 texture decodes. `cargo build`/`cargo test` clean. Not tried on Windows; the code only uses egui input (no platform calls). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Over the preview at fit zoom each wheel notch selects the next (down) or
previous (up) texture in the filtered list, including past textures that
cannot decode; zoomed in, the wheel still pans. Up/Down and Page Up/Down
step through the list while no text field has focus. The list follows the
selection.

Each decode is tagged with a generation so a slow decode of a texture
scrolled past cannot replace the current preview.

Asked for in #1.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:02:47 +00:00
github manually merged commit ae0fd0c195 into gh-pr/7/base 2026-11-26 20:02:49 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.