Skip to content

Fix pivoting of strategic game tables#860

Merged
tturocy merged 1 commit into
masterfrom
dev_nfgtable
May 11, 2026
Merged

Fix pivoting of strategic game tables#860
tturocy merged 1 commit into
masterfrom
dev_nfgtable

Conversation

@tturocy
Copy link
Copy Markdown
Member

@tturocy tturocy commented Apr 29, 2026

This corrects pivoting of strategic game tables. Specifically, this fixes the resizing of the row and column label panels so they display all of the levels of the index.

Along the way, some internal refactoring is done to separate the local storage of the pivoted view from the user-display wxWidgets level.

@tturocy tturocy added this to the gambit-16.7.0 milestone Apr 29, 2026
@tturocy tturocy linked an issue Apr 29, 2026 that may be closed by this pull request
@edwardchalstrey1
Copy link
Copy Markdown
Member

Screenshot 2026-04-30 at 10 29 47

Hi @tturocy here is a screenshot from having built the GUI from this branch and opening a game in strategic form view - does this show the row and column labels looking the way you expect?

@tturocy
Copy link
Copy Markdown
Member Author

tturocy commented Apr 30, 2026

@edwardchalstrey1 Try dragging player2 to be on the row labels and see what happens (what you're showing was the case that already worked before)

@edwardchalstrey1
Copy link
Copy Markdown
Member

@edwardchalstrey1 Try dragging player2 to be on the row labels and see what happens (what you're showing was the case that already worked before)

Screenshot 2026-04-30 at 11 16 32

@tturocy
Copy link
Copy Markdown
Member Author

tturocy commented Apr 30, 2026

@edwardchalstrey1 Try dragging player2 to be on the row labels and see what happens (what you're showing was the case that already worked before)

Screenshot 2026-04-30 at 11 16 32

Yeah, that's not good, does not seem to be sizing correctly.

@rahulsavani
Copy link
Copy Markdown
Member

@tturocy : Does it still make sense for me to test on Linux, given Ed's experience?

@tturocy
Copy link
Copy Markdown
Member Author

tturocy commented May 8, 2026

@rahulsavani Yes please, it would still be useful information.

@rahulsavani
Copy link
Copy Markdown
Member

rahulsavani commented May 8, 2026

@edwardchalstrey1 Which game did you try above? The two (different from your one above) games I tried on Linux both seem to work fine, so ideally I should test your game too...

@edwardchalstrey1
Copy link
Copy Markdown
Member

Ok I just tried rebuilding from this branch again and opening 2smp.efg in strategic form view and dragging player 2 to be on the row labels, and now it looks like this (so I think this is now correctly sizing):

Screenshot 2026-05-11 at 11 09 51

@rahulsavani
Copy link
Copy Markdown
Member

Ok I just tried rebuilding from this branch again and opening 2smp.efg in strategic form view and dragging player 2 to be on the row labels, and now it looks like this (so I think this is now correctly sizing):

Screenshot 2026-05-11 at 11 09 51

That game works fine for me too on Linux, so I think we are good.

Copy link
Copy Markdown
Member

@rahulsavani rahulsavani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me on Linux.

At some point, the sizing of row and column labels to accommodate the actual
size of labels no longer worked correctly, at least on some
platforms.  This corrects the sizing logic and ensures that
drag-and-drop of players is now working as well.

Closes #844.
@tturocy tturocy merged commit 480c9a1 into master May 11, 2026
26 checks passed
@tturocy tturocy deleted the dev_nfgtable branch May 11, 2026 13:48
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.

[Bug]: Strategy labels not updating when pivoting strategic form

3 participants