Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use tabs in customize scenario dialog #4106

Merged
merged 2 commits into from
May 25, 2024

Conversation

AaronGullickson
Copy link
Member

The new CustomizeScenarioDialog was quite large which can cause problems on small monitors. So, I redid the layout using tabs to make the overall dialog smaller, as shown in the attached images.

Screenshot 2024-05-24 at 11 46 28 AM Screenshot 2024-05-24 at 11 46 31 AM Screenshot 2024-05-24 at 11 46 33 AM

I also fixed a small problem on CustomizeScenarioObjectivesDialog where I was using the wrong label.

BorderFactory.createTitledBorder(resourceMap.getString("panOtherForces.title"))));
panOtherForces.setPreferredSize(new Dimension(600,250));
panOtherForces.setMinimumSize(new Dimension(600,250));
panOtherForces.setPreferredSize(new Dimension(600,300));
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we'd talked previously about making the MekHQ UI more responsive; would it be possible to use a persistent size, or a % of screen size, or something other than magic numbers here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Looks like it already got merged, but I can think about the issue in future dialog stuff.

Copy link
Collaborator

@Sleet01 Sleet01 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, although if we are going to try to make MHQ's UI more responsive, we could start with new UI elements...

@HammerGS HammerGS merged commit 480149d into MegaMek:master May 25, 2024
4 checks passed
HammerGS added a commit that referenced this pull request May 25, 2024
MegaMek
+ Fix 5476: Update SV armor slots to 2 or 1 for Rating E or F respectively

MegaMekLab
+ Fix ##1514: Fix Atrocious table shading render speed

MekHQ
+ PR #4106: Use tabs in customize scenario dialog
+ PR #4105: Updated Post-Scenario Logging for Prisoners
+ PR #4104: Fixed Post-Scenario Tracking System's Handling of Multiple Personnel in autoAwards
+ PR #4102: Fixed Award Tier Count Calculations in PersonViewPanel
+ PR #4093: Added Negotiation and Scrounge Skill Settings for Administrator Personnel
+ PR #4054: Added Life Paths Campaign Options Tab, Added Education Module
            Very Important to read the documentation on this feature (See Docs folder)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants