Skip to content

Fix FDeckViewer section dropdown#9791

Open
MostCromulent wants to merge 3 commits intoCard-Forge:masterfrom
MostCromulent:deckviewer
Open

Fix FDeckViewer section dropdown#9791
MostCromulent wants to merge 3 commits intoCard-Forge:masterfrom
MostCromulent:deckviewer

Conversation

@MostCromulent
Copy link
Contributor

@MostCromulent MostCromulent commented Feb 18, 2026

The 'View Deck' window currently uses a different method of swapping between deck zones compared to the 'Deck Editor' window, for unclear reasons, even though the two are otherwise visually almost identical.

This PR makes the 'View Deck' window use the same dropdown menu as the 'Deck Editor' window, while also preserving the pre-existing 'Change Section' button. Users can either select a section from the dropdown or click the button to cycle through sections.

Screenshot 2026-02-18 171811

Summary

  • Fixes Add drop-down menu in View Deck window to see commander zone #7096: "View Deck" dialog now shows Commander/Sideboard sections via a dropdown
  • Adds ItemManager's built-in cbxSection dropdown, matching the deck editor UI
  • Preserves the original "Change Section" button for quick cycling between sections
  • Both controls stay in sync — clicking the button updates the dropdown selection

Test plan

  • Launch Forge, set up a Commander game with a net deck, click "View Deck" — dropdown should appear in the header row listing Main/Commander sections
  • Switching sections in the dropdown updates the card list and caption
  • Clicking "Change Section" button cycles to the next section and updates the dropdown
  • Decks with only a Main section should not show the dropdown, and the button should be disabled
  • Non-Commander decks with sideboards show Main/Sideboard in the dropdown

🤖 Generated with Claude Code

Replace the "Change Section" button with ItemManager's built-in
cbxSection dropdown. Move dropdown population to after cardManager.setup()
so initialize() doesn't reset visibility to false.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@MostCromulent MostCromulent marked this pull request as ready for review February 18, 2026 06:49
@MostCromulent MostCromulent changed the title Fix FDeckViewer section dropdown not appearing Fix FDeckViewer section dropdown Feb 18, 2026
@Jetz72 Jetz72 added Desktop Deck Editor Anything related to the mobile or desktop deck editors labels Feb 18, 2026
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@tool4ever
Copy link
Contributor

seems like you should remove duplicating the section name via updateCaption() now

Match deck editor pattern: caption shows just the deck name with a
trailing dash, and the dropdown beside it shows the current section.
Removes the now-redundant updateCaption() method.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@MostCromulent
Copy link
Contributor Author

seems like you should remove duplicating the section name via updateCaption() now

This has been updated to match the pattern in the Deck Editor view.

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

Labels

Deck Editor Anything related to the mobile or desktop deck editors Desktop

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add drop-down menu in View Deck window to see commander zone

3 participants