Skip to content

Export textures: scroll the texture set list so the dialog stays on s… - #660

Closed
Iron180402 wants to merge 1 commit into
storytold:mainfrom
Iron180402:fix/export-texture-sets-scroll
Closed

Iron180402 wants to merge 1 commit into
storytold:mainfrom
Iron180402:fix/export-texture-sets-scroll

Conversation

@Iron180402

@Iron180402 Iron180402 commented Nov 18, 2026 •

Copy link
Copy Markdown

…creen

The Export textures dialog has a fixed size, but its texture set column drew one checkbox per set outside any scroll area. With many texture sets the window grew past the screen and pushed Export and Cancel out of reach.

The list now sits in a vertical ScrollArea. Adds a test that opens the dialog with 80 extra texture sets and checks its buttons stay inside the window; it fails without the fix (buttons at y = 1698 in a 960 px window).

Refs #284

Summary by CodeRabbit

  • Bug Fixes
    • Long texture-set lists in the export dialog now scroll, keeping the “Reset all” and “Cancel” controls visible on-screen.

…creen

The Export textures dialog has a fixed size, but its texture set column drew
one checkbox per set outside any scroll area. With many texture sets the
window grew past the screen and pushed Export and Cancel out of reach.

The list now sits in a vertical ScrollArea. Adds a test that opens the dialog
with 80 extra texture sets and checks its buttons stay inside the window; it
fails without the fix (buttons at y = 1698 in a 960 px window).

Refs storytold#284
@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The export dialog now places the texture-set checklist in a vertically scrolling area. A UI test checks that “Reset all” and “Cancel” remain within the screen boundary when the dialog contains 80 texture sets.

Changes: Export dialog

Layer / File(s) Summary
Scrollable checklist and screen-boundary test
crates/ui-egui/src/windows.rs
The texture-set checkboxes appear in a vertical scroll area. A UI test creates 80 texture sets and checks that “Reset all” and “Cancel” remain within the 960-pixel screen boundary.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: chasse20, bflatastic, vangel76

Merge Risk: Minimal · up to 53262

The export dialog's texture list now scrolls, so the Export and Cancel buttons stay on screen when there are many texture sets. No actionable merge risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: the texture set list in the Export textures dialog now scrolls, so the dialog's buttons stay on screen. The raw summary confirms the checklist is now in a vertically s…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: the texture set list in the Export textures dialog now scrolls, so the dialog's buttons stay on screen. The raw summary confirms the checklist is now in a vertically scrolling area, and the PR objectives confirm the same goal. The title is cut off at the end ("on s…"), which reduces clarity but does not change its relation to the changeset.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 2745045 and 5326276.

Files selected for processing: 1

  • crates/ui-egui/src/windows.rs

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

@RafaelMendes1407

Copy link
Copy Markdown
Contributor

Thanks for this. Closing as superseded: #667 bounds the Export window's texture-set list and keeps the footer outside the scroll area (crates/ui-egui/src/windows.rs:773-798), with a regression test. Main doesn't have your direct check of Cancel's position when the window opens. If you'd like the regression test kept, a small PR adding just the test against current main would be welcome. Happy to reopen if I've missed something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants