Viewer: pick animations from dropdowns instead of typing the name #371

Manually merged
github merged 2 commits from gh-pr/371/head into gh-pr/371/base 2026-11-26 20:31:17 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-26 15:53 UTC · original
holdmysocks:animation-picker → master · +399 −63 · 5 files · 2 commits · merged 2026-11-26 16:12 UTC

The model viewer's Animation section no longer needs a typed <dictionary>/<clip> name. Two dropdowns pick the animation instead, for characters and for animals. Tracked in SIX-230.

Viewer

  • The first dropdown picks the clip dictionary. The second picks a clip in it, or the dictionary's default clip (move or idle).
  • Each dropdown has a filter field at the top. Every typed word must be in the name. The long dictionary list draws only the rows in view.
  • The dictionary list holds the dictionaries that fit the model. For a character, that is every dictionary that is not for animals. For an animal, it is the dictionaries of its species, or every animal dictionary if none has the species word. all dictionaries lists every one.
  • Clips whose animation data is stored elsewhere (not decoded) are greyed out, with a tooltip.
  • Both lists are read on worker threads: the dictionary names once per run (the cached index/anim.clipdicts.json, or about a minute reading anim.rpf the first time), and a dictionary's clips when it is picked. The old animal list read the cache on the UI thread.
  • ✏ opens a text box for a typed or pasted name, an entry id (anim.rpf@…) or a cutscene (cin@<scene>). It opens by itself when the current name is one of those. Walk and None stay. --anim and the clip loader are unchanged.

Core (sixng_core::anim)

  • is_creature_dictionary, species_words (moved from the viewer), ClipFit with fitting_dictionaries, name_matches, clip_list / ClipInfo, and default_clip. The clip loader now uses default_clip.
  • Unit tests cover all of them.

Docs: the README's Animation entry describes the dropdowns.

Testing: cargo test --locked -p sixng-core -p sixng-gui passes (321 and 51 tests), and the no-default-features check builds without warnings. The dropdowns have not been clicked through in a running viewer.

**@⁠holdmysocks** on GitHub · 2026-11-26 15:53 UTC · [original](https://github.com/holdmysocks/SixNG/pull/371) `holdmysocks:animation-picker` → `master` · +399 −63 · 5 files · 2 commits · merged 2026-11-26 16:12 UTC The model viewer's Animation section no longer needs a typed `<dictionary>/<clip>` name. Two dropdowns pick the animation instead, for characters and for animals. Tracked in SIX-230. **Viewer** - The first dropdown picks the clip dictionary. The second picks a clip in it, or the dictionary's default clip (`move` or `idle`). - Each dropdown has a filter field at the top. Every typed word must be in the name. The long dictionary list draws only the rows in view. - The dictionary list holds the dictionaries that fit the model. For a character, that is every dictionary that is not for animals. For an animal, it is the dictionaries of its species, or every animal dictionary if none has the species word. **all dictionaries** lists every one. - Clips whose animation data is stored elsewhere (not decoded) are greyed out, with a tooltip. - Both lists are read on worker threads: the dictionary names once per run (the cached `index/anim.clipdicts.json`, or about a minute reading `anim.rpf` the first time), and a dictionary's clips when it is picked. The old animal list read the cache on the UI thread. - **✏** opens a text box for a typed or pasted name, an entry id (`anim.rpf@…`) or a cutscene (`cin@<scene>`). It opens by itself when the current name is one of those. **Walk** and **None** stay. `--anim` and the clip loader are unchanged. **Core** (`sixng_core::anim`) - `is_creature_dictionary`, `species_words` (moved from the viewer), `ClipFit` with `fitting_dictionaries`, `name_matches`, `clip_list` / `ClipInfo`, and `default_clip`. The clip loader now uses `default_clip`. - Unit tests cover all of them. **Docs:** the README's Animation entry describes the dropdowns. **Testing:** `cargo test --locked -p sixng-core -p sixng-gui` passes (321 and 51 tests), and the no-default-features check builds without warnings. The dropdowns have not been clicked through in a running viewer.
The Animation section of characters and animals lists the clip dictionaries
that fit the model, with a filter field, then the clips of the picked one.
Both lists are read on worker threads. A text box for typed or pasted names
stays behind the pencil button.

Core: anim::{is_creature_dictionary, species_words, ClipFit,
fitting_dictionaries, name_matches, clip_list, default_clip}, with tests.

SIX-230
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:31:15 +00:00
github manually merged commit e88417b17f into gh-pr/371/base 2026-11-26 20:31:17 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.