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

Tabbed UI Improvements #1679

Merged
merged 2 commits into from
Jan 5, 2025
Merged

Tabbed UI Improvements #1679

merged 2 commits into from
Jan 5, 2025

Conversation

pavelbraginskiy
Copy link
Member

@pavelbraginskiy pavelbraginskiy commented Jan 4, 2025

Minor improvement to the new Tabs UI.

First, when tabs are restored, equipment not allocated to a location is no longer lost, making that feature more reliable.

Second, new ways to open a new tab:

image

The old + button can now be right-clicked to select a unit type:

image

The new ⌸ button will load a unit from cache, and can be right clicked to load a unit from a file:
image

Copy link

codecov bot commented Jan 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 2.13%. Comparing base (a2abcdd) to head (b4ceda1).
Report is 16 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##             master   #1679      +/-   ##
===========================================
- Coverage      2.14%   2.13%   -0.01%     
  Complexity      209     209              
===========================================
  Files           270     270              
  Lines         31247   31350     +103     
  Branches       5328    5337       +9     
===========================================
  Hits            670     670              
- Misses        30420   30523     +103     
  Partials        157     157              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pavelbraginskiy pavelbraginskiy changed the title New ways to open a new tab Tabbed UI Improvements Jan 5, 2025
var line = sc.nextLine().split(Pattern.quote(MtfFile.SIZE));
var type = EquipmentType.get(line[0]);
var mounted = Mounted.createMounted(loadedUnit, type);
if (line.length > 1) {

Check warning

Code scanning / CodeQL

Expression always evaluates to the same value Warning

Expression always evaluates to the same value.
Copy link
Member

@HammerGS HammerGS left a comment

Choose a reason for hiding this comment

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

Tested and seems to work.

@HammerGS HammerGS merged commit f3c8de9 into MegaMek:master Jan 5, 2025
6 checks passed
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