Skip to content

Property sheet trait improvement#13691

Open
geezer09 wants to merge 3 commits into
vassalengine:masterfrom
geezer09:PropertySheet-trait-improvement
Open

Property sheet trait improvement#13691
geezer09 wants to merge 3 commits into
vassalengine:masterfrom
geezer09:PropertySheet-trait-improvement

Conversation

@geezer09

@geezer09 geezer09 commented Nov 14, 2024

Copy link
Copy Markdown
Contributor

This pull request is intended to address the same issue as PR #11974

It introduces changes to the PropertySheet class to include a new "state" property for each row in the property table. The most important changes include adding a new member variable to store the previous state, updating the table data structure to include the state, and modifying the method to retrieve the current state.

Changes made to the state of properties in the property sheet window are reflected when accessing them via the gamepiece and vice versa.

After a bit of testing, it seems like these changes are quite tolerant to faulty user input.

Fixes #11861

… can be changed directly in that window. Changed the behaviour so the state was saved when exiting that window instead of being reset
@BrentEaston

Copy link
Copy Markdown
Collaborator

Thanks @geezer09, I'll have a closer look at this.

@BrentEaston BrentEaston added the bug Something isn't working label Mar 29, 2025
@BrentEaston BrentEaston self-assigned this Mar 29, 2025
@BrentEaston

Copy link
Copy Markdown
Collaborator

Can you re-create this PR against the Release-3.7 branch for me? Thanks.

Editor.PropertySheet.property_sheet_item=Property Sheet item
Editor.PropertySheet.name=Name
Editor.PropertySheet.type=Type
Editor.PropertySheet.State=State

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not sure if case matters in the lookup, but this does not match line 932 in PropertySheet.java. It appears that the convention here is for all lowercase, so 'State' should be 'state'.

@uckelman uckelman modified the milestones: 3.7.16, 3.7.17 Apr 10, 2025
@uckelman uckelman modified the milestones: 3.7.17, 3.7.18, 3.7.19 Sep 22, 2025
@uckelman uckelman modified the milestones: 3.7.19, 3.7.20 Dec 30, 2025
@uckelman uckelman modified the milestones: 3.7.20, 3.7.21 Feb 6, 2026
@uckelman uckelman removed this from the 3.7.21 milestone Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Viewing Property Sheet properties in the editor usually erases any values you've put in

4 participants