-
Notifications
You must be signed in to change notification settings - Fork 286
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
Lobby/GUI work #2409
Lobby/GUI work #2409
Conversation
Conflicts: megamek/src/megamek/client/ui/swing/ChatLounge.java megamek/src/megamek/client/ui/swing/CommonSettingsDialog.java megamek/src/megamek/client/ui/swing/GUIPreferences.java megamek/src/megamek/client/ui/swing/boardview/EntitySprite.java
This looks great. One first impression from the screen shot, I think the unit ID would better after the unit name. |
Thanks. Note that on the left side theres a toggle button for the unit ID, so it's easily turned off and on (took this from the CasualJoker vids) and the unit name can be very (very) long. I can try this though. |
Curious would this one fit into the last of UI stuff - #2183 |
CI is failing because the source compatibility level is 8 and you have some >8 Java-isms. |
This pull request fixes 3 alerts when merging 396f96d into 7eb2d7e - view on LGTM.com fixed alerts:
|
Wanted to have a look. But looks like it has conflicts.
|
Conflicts: megamek/i18n/megamek/client/messages.properties megamek/src/megamek/client/ui/swing/ChatLounge.java
Hopefully better now. Not many changes, I struggled with the mektable popup and most of the changes there are not so visible. It'll only show certain load options when a unit type is present, like fighter squadrons. Squadrons require Capital Fighters (which Im not sure is really what the rules meant to say...). Something visible is the player config dialog. To get the most out of it, activate minefields (this option now really toggles minefields in the lobby) and double blind with exlcusive deployment and open it for a bot client. |
Thanks, really looking forward to see this done. More I use it the harder it is to go back to the old lobby. |
This pull request introduces 4 alerts and fixes 6 when merging 6ea2194 into 30ee309 - view on LGTM.com new alerts:
fixed alerts:
|
This pull request introduces 5 alerts and fixes 6 when merging d0c0d6d into 69d787c - view on LGTM.com new alerts:
fixed alerts:
|
Loving the improvement but think I got a bug. Running from repo, add a unit to the lobby. Right click and select view. Nothing happens. Log has the following error.
|
This pull request introduces 2 alerts and fixes 6 when merging 5b67655 into 525c8c2 - view on LGTM.com new alerts:
fixed alerts:
|
This pull request fixes 6 alerts when merging b699070 into 525c8c2 - view on LGTM.com fixed alerts:
|
This pull request fixes 6 alerts when merging 436282b into 6d9b82a - view on LGTM.com fixed alerts:
|
This pull request fixes 6 alerts when merging 10d62a9 into 6d9b82a - view on LGTM.com fixed alerts:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got through about half the files. Didn't review the data files, since I wouldn't know what's correct and what isn't anyway. Will take a look at the rest of the files over the next few days.
megamek/src/megamek/client/ui/swing/PlanetaryConditionsDialog.java
Outdated
Show resolved
Hide resolved
megamek/src/megamek/client/ui/swing/dialog/AbstractUnitSelectorDialog.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Round 2. 98/132 files reviewed.
megamek/src/megamek/client/ui/swing/dialog/MMConfirmDialog.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All right, finished. Some questions and relatively minor change requests.
megamek/src/megamek/client/ui/swing/lobby/MekForceTreeCellFormatter.java
Outdated
Show resolved
Hide resolved
megamek/src/megamek/client/ui/swing/lobby/MekForceTreeCellFormatter.java
Outdated
Show resolved
Hide resolved
megamek/src/megamek/client/ui/swing/lobby/MekTableCellFormatter.java
Outdated
Show resolved
Hide resolved
megamek/src/megamek/client/ui/swing/lobby/sorters/ForceSorter.java
Outdated
Show resolved
Hide resolved
megamek/data/images/temp/The images in this directory can be safely deleted between games.txt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Went through about 2/3 of this PR (including all of the data), and made comments on it.
for (Force force: forces) { | ||
game.getForces().replace(force.getId(), force); | ||
} | ||
for (Entity entity: entities) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for (Entity entity: entities) { | |
for (Entity entity : entities) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not my style.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't a style bit, but code accessibility. You separate out the ":" to ensure that the symbol isn't read as part of the word and then ignored, as it makes it into a separate word.
Collection<Entity> entities = (Collection<Entity>) c.getObject(0); | ||
for (Entity entity: entities) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Collection<Entity> entities = (Collection<Entity>) c.getObject(0); | |
for (Entity entity: entities) { | |
Collection<Entity> entities = (Collection<Entity>) c.getObject(0); | |
for (Entity entity : entities) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could also probably just have the cast in the for loop call
|
||
for (Force force: forces) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for (Force force: forces) { | |
for (Force force : forces) { |
//create a final image for the entity | ||
for(int id: entityIds) { | ||
cacheImgTag(game.getEntity(id)); | ||
} | ||
for (Force force: forces) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for (Force force: forces) { | |
for (Force force : forces) { |
This pull request fixes 6 alerts when merging 3442850 into 23ccda2 - view on LGTM.com fixed alerts:
|
@NickAragua and @Windchild292 Went through the reviews. What I didnt comment I put in the code as suggested by the review. Nick's review changes are in two commits, Review Changes pt.1 and Nickaragua review changes; Windchild's review changes are in the latest commit. |
This pull request fixes 6 alerts when merging 609f3b8 into 23ccda2 - view on LGTM.com fixed alerts:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good from my end.
@Windchild292 Putting this here so we don't have to search for comments. And you commented on this again: Any other new comments? |
Interesting... the file did not update on my end, so ignore that comment. As for the other bit, I'll explain in a PM. |
Conflicts: megamek/src/megamek/client/ui/swing/BotConfigDialog.java megamek/src/megamek/client/ui/swing/ChatLounge.java
This pull request fixes 6 alerts when merging 94e0982 into c06db39 - view on LGTM.com fixed alerts:
|
OK I'm finishing this now (tentatively) to at least start the process of integrating it.
I have no clue why the Messages call in the Boardvalidator fails.
Main Changes (omitting small bug fixes in the tooltip and elsewhere):
Resolves #2384
Resolves #2385
Resolves #2340
Resolves #2327
Resolves #2322
Resolves #2306
Resolves #2277
Resolves #2428
Resolves #1996
Resolves #448
Resolves #2560
Resolves #765
Resolves #2657
Resolves #2374
I believe this also resolves #322. It does not enable a GM player to see all units during blind drop, but the team overview allows a cost/tonnage/BV comparison through all blind drop options.