-
-
Notifications
You must be signed in to change notification settings - Fork 387
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
Add return to main menu and play map buttons to the editor #9512
base: master
Are you sure you want to change the base?
Conversation
WIP. Need correct placing of button and design of new dialog
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.
Clang-Tidy
found issue(s) with the introduced code (1/1)
Looks nice. But would it look better if Load Map and Save Map where next to each other in the same row or column? Not that it really matters. |
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.
Hi, @zenseii, I left several suggestions. Could you please take a look when you have time?
Hi, @Mr-Bajs. I wanted to mimic as much as possible how the original buttons were placed but I'm really impartial to it. I guess Main Menu should be where it is and quit should be lower right, the rest is the same for me. |
Swapping places save map and play map might look better. But since also the same menu ingame would also benefit with a Main Menu button. You layout keeps the menus more similar to each other maybe thats better, atleast until or if the in game menu gets an update with a main menu button. |
@Districh-ru. I noticed that when the Play Map button is used and you arrive at the scenario info dialog, if you then press cancel the screen will flash as if a fadeout was triggered. Are fade out's somehow cued? I'm not entirely sure where to look to solve this. |
@zenseii, I've fixed this issue - added a check when rendering the Select Scenario dialog that also resets the need of fade effect. |
I'd also prefer to swap PLAY MAP and SAVE MAP so there the upper row will be for the map manipulations (new/load/save) and the lower row for the quit from Editor (to new game/main menu/OS). |
I am marking this pull request as high priority as it is a must for the upcoming release. |
Hi, @zenseii ! New menu looks great! 👍 👍 👍 It would be nice to add an info hint on right click for the new "Play Map" button too. I'm also slightly confused by the term "Invalid map" in this window: It's a nice touch to warn a player, that he cannot play unsaved map, but in my personal opinion we shouldn't call this map as "invalid" as it misleads to the fact, that something is wrong with the map itself. Maybe it's better to point that user cannot play an unsaved map. I also prefer Save and Load buttons to be placed on current different levels, as players can accidentally press wrong button and spoil his map. 👍 |
Hi, @Branikolog, @Districh-ru and @Mr-Bajs. The placement of the buttons will need to be figured out. As I said, it's not very important for me how it is, as long as we arrive at a conclusion. My reasoning was only that the New map, Save map and load map are now placed similarly to were they were before. I suppose we could swap places with Main menu and Quit to make it even more similar. @Branikolog, the dialog was added very quickly and I'm open to suggestions. The reason it not only says that the player has to save the map is because the message also pops up if the map can't be played, like if there are zero heroes placed that can be played by a human player. This is the same criteria we have for showing maps in the map select dialog, but again, I'm open to suggestions for a dialog text that fits this better. We could say "Unplayable map" because any map that has changes that aren't saved is unplayable currently, as @Districh-ru we can make it so that a save map can be shown in this case. |
Current button placement is fine for me.
In my opinion there should be two separate cases, when the saved map cannot be played, because of incorrect game conditions (Invalid is ok then) and when the changes just haven't been saved yet. |
I've made the necessary changes to this PR and will push them once the PR #9525 has been completed since it requires almost all of the changes there. |
Hello everyone, The button layout could be done this way:
What do you think of "LAUNCH MAP" to replace "PLAY MAP"? Related issue: #2109 (for button layout in pairs). |
Hi, @LeHerosInconnu. I tested using LAUNCH MAP and it doesn't fit and it will be quite a while until we can adjust the size of all of these buttons and there's a point to having them all the same size. There's also the point that all the other buttons either have 3- or 4-letter words (SAVE,LOAD,MAIN,MENU,QUIT, MAP,NEW), and "PLAY" fits in with that. As for the button placements, as I said before I don't have any preferences. @Branikolog and @Districh-ru , you've already decided what you prefer. That leaves the final decision up to @ihhub. EDIT: I suppose we haven't considered "TRY MAP", though its meaning is similar to test map: START MAP actually fits and though it breaks the 3/4-letter rule, if we implement RESTART MAP in the adventure map file dialog, then these two could be considered counterparts and probably have the same placings: |
Hello @zenseii, Yes, "START MAP" would be more appropriate. |
I'm Ok with both "Play" or "Start". |
I had to add an extra button to keep symmetry of the dialog. The button can easily be changed to "test map" or similar.
Fix #8720