TripleA Logo TripleA Forum
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags
    • Register
    • Login

    Make Movement/Selection Help menu more readable (+Hotkeys discussion, Zoom Level display)

    Scheduled Pinned Locked Moved Feature Requests & Ideas
    26 Posts 4 Posters 6.9k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B Offline
      butterw
      last edited by

      The screenshot of the modified version posted previously has been updated.

      I've gone with zones instead of territories because it is shorter and also more correct.

      1 Reply Last reply Reply Quote 0
      • B Offline
        butterw @butterw
        last edited by butterw

        **Display Zoom Level on screen when shortcuts to change it are used

        The zoom level info could briefly replace the zone/territory info in the status bar when the hotkey is pressed (it changes as you zoom out).

        An overlay such as the one used to display "Edit Mode" would be the most visually appealing solution.

        1 Reply Last reply Reply Quote 0
        • LaFayetteL Offline
          LaFayette Admin
          last edited by

          I have not read through all of the comments, my apologies. My general thoughts:

          • walls of text are bad, this kind of help wall of text is not terribly useful
          • UX better practice is to have a physical control that is visible and have a hover text (or other) to indicate the hotkey to activate that control without having to use the mouse. An analogy is a keyboard, you can discover keys once by looking at them, but once you know where they are you can type without searching for the key.
          • the help menus for hotkeys etc is notoriously difficult to maintain and gets out of date.

          Bottom line, having a single cheat sheet for hotkeys would be good, putting in a table would make it more legible. It would be good for this to be handled in a more centralized and automated manner in the code so we didn't have the point of maintenance to keep it all in sync. Furthermore, there is a high priority bug where in multiplayer the window focus is routinely lost and it makes the hotkeys seemingly no longer function (until you click the map), which makes the hotkeys kinda misleading/useless as they seem like they do not work.

          With all that said, the strategy should perhaps be:

          • handle hotkeys in a unified manner in the code
          • have this hook into the help menu automatically
          • update the help menu to display in a nicer format
          • consolidate all of the hotkey help menu stuff into a single window
          • advertise the hotkey bug existence more thoroughly pending a fix
          B 1 Reply Last reply Reply Quote 1
          • B Offline
            butterw @LaFayette
            last edited by butterw

            **Move All Hotkeys to a single source code file

            @lafayette said in Make Movement/Selection Help menu more readable:

            Bottom line, having a single cheat sheet for hotkeys would be good, putting in a table would make it more legible. It would be good for this to be handled in a more centralized and automated manner in the code so we didn't have the point of maintenance to keep it all in sync.
            With all that said, the strategy should perhaps be:

            • handle hotkeys in a unified manner in the code
            • have this hook into the help menu automatically
            • update the help menu to display in a nicer format
            • In my view, releasing a version with "Movement/Selection Help" not up to date is not acceptable . A fix is needed for v2.6. I am submitting a Pull Request for this, it also makes the text a lot more readable.

            Longer term a more streamlined approach should be put in place:

            • From a development perspective, putting all current shortcuts as constants in a single code file is very simple to do and has many advantages:
            • Developpers would know what all the current hotkeys are (+ their history) and could change them easily.
            • Advanced Users could change hotkeys by recompiling with a custom shortcut file.
            • The current hotkeys could be displayed automatically in a table, which would guarantee up-to-date info for users.
            • Eventually all hotkeys may become user configurable in the GUI or a config file.
            1 Reply Last reply Reply Quote 1
            • B Offline
              butterw @Cernel
              last edited by butterw

              **make Alt-Click Selection user configurable

              @cernel said in Make Movement/Selection Help menu more readable:

              • I would remove ALT-click and ALT-Right click because the act of selecting ten at once is too arbitrary to be a basic function (so why not 5 or 20 or whatever number).

              EDIT: This hotkey doesn't seem very useful currently. So it should either be improved or scrapped.

              • Ctrl and Shift should be enough as hotkey modifiers.
              • Alt is used for menu mnemonics on Windows.

              how it could be improved:
              Make the number of units selected/deselected with Alt-Click user configurable in Engine Settings:

              • Default value would be 10 like currently.
              • 0 would deactivate the feature.
              • A very high value would make it equivalent to CTRL-Click.
              TheDogT 1 Reply Last reply Reply Quote 0
              • TheDogT Offline
                TheDog @butterw
                last edited by

                @butterw
                Those of us with a mouse that can push the scroll wheel left and right, this already works in TripleA to scroll the map left and right.

                https://forums.triplea-game.org/tags/thedog
                https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

                B 1 Reply Last reply Reply Quote 1
                • B Offline
                  butterw @TheDog
                  last edited by butterw

                  @thedog Assuming you didn't have to do any special configuration to achieve this, it is likely the reason why the horizontal scroll binding is Shift+Mouse Wheel.

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    butterw
                    last edited by butterw

                    Current Keyboard Shortcuts
                    
                    Dialogs
                    - Dismiss (ESCAPE)
                    - Focused Button, typically OK (ENTER/SPACE) 
                    
                    Menu accelerators (With menu accelerator key: CTRL, META on Mac)  
                    - "Save" (CTRL+S)
                    - "Leave Game" (CTRL+Q, Mac: META+L)  This is equivalent to clicking close Window or (Alt+F4).
                    - "Post PBEM/PBF Gamesave" (CTRL+M) ? 
                    - "Find Territory"    (CTRL+F)
                    - "Enable Edit Mode"  (CTRL+E) enable/disable Edit Mode
                    - "Politics Panel"    (CTRL+W)
                    - "Battle Calculator" (CTRL+B)
                    - "Show history"      (CTRL+H, Mac: Meta+Y)
                    - "Show current game" (CTRL+G) exit History Mode
                    - "Lock Map"          (CTRL+L)
                    
                    RightSidebar Tabs
                    - "Actions"       (CTRL+C) >> should be labelled "Command" ?
                    - "Players",      (CTRL+P)
                    - "Resources"     (CTRL+R)
                    - "Objectives"    (CTRL+O)
                    - "Territory"     (CTRL+T)
                    
                    Territory Tab
                    - "Battle Calculator"   (Ctrl+B)
                    - "Add Attackers"       (Ctrl-A)
                    - "Add Defenders"       (Ctrl-D)
                    
                    - ActionButton "Done", Ends the current phase (CTRL+Enter)
                    
                    BattleDisplay - Confirm Casualties (SPACE)
                    Can be disabled with "View > Settings > Game > Space Bar confirms casualties" set to false (the confirm casualty button then has to always be clicked.)
                    
                    
                    UnitScroller (during Move Phase)     
                    - skipCurrentUnits                (S) 
                    - centerOnNextMovableUnit       (PERIOD '.') 
                    - centerOnPreviousMovableUnit   (COMMA  ',')
                    - highlightMovableUnits           (F) 
                    - undo Move of highlighted units  (U) 
                    
                    ZoomKeyboardShortcuts
                    - Zoom+ (Ctrl+ EQUALS '=')
                    - Zoom- (Ctrl+ MINUS  '-')
                    >> Numpad +/- should be added for zoom.
                    
                    KeyboardMapScroll
                    - ArrowKeys: RIGHT, LEFT, UP, DOWN
                    - to Scroll faster (hold CTRL)
                    >> A left-hand alternative to arrow keys should be available (WASD has been removed)
                    
                    Alt + _Mnemonics: Menu commands.
                    F10: Opens the File Menu
                    
                    Additions in 2.5.3 test build:
                    - Ctrl+X: Toggle Sidebar
                    LaFayetteL C 2 Replies Last reply Reply Quote 1
                    • LaFayetteL Offline
                      LaFayette Admin @butterw
                      last edited by

                      @butterw Are those unit scroller command current relative to the latest 2.6?

                      Missing "ctrl+enter" to activate done button. Also, there are additional tab accelerators AFAIK (which is why ctrl+A is inconsistent). I've certainly considered to re-assign & drop some of these.

                      B 1 Reply Last reply Reply Quote 0
                      • B Offline
                        butterw @LaFayette
                        last edited by

                        @lafayette said in Make Movement/Selection Help menu more readable (+Hotkeys discussion, Zoom Level display):

                        @butterw Are those unit scroller command current relative to the latest 2.6?

                        Missing "ctrl+enter" to activate done button. Also, there are additional tab accelerators AFAIK (which is why ctrl+A is inconsistent). I've certainly considered to re-assign & drop some of these.

                        Yes this is based on the latest v2.6 code. Every hotkey I found is listed ("Done" button is included). They are defined through a number of different methods in the code and in many different files, so if anything is missing please point it out.
                        Some non-menu hotkeys use both CTRL and Meta as base key.

                        For consistency Action tab needs to be changed to CTRL+A or could be displayed as "Command" Tab to keep CTRL+C ?

                        SHIFT, Function keys, numerals could be used to expland hotkeys if desired.

                        1 Reply Last reply Reply Quote 0
                        • C Offline
                          Cernel Moderators Lobby Moderators @butterw
                          last edited by Cernel

                          @butterw There is this long time problem for live play that the space-bar is frequently used during chatting, with the result of inadvertedly confirming or even choosing prompts that suddenly appear while writing in the chat.

                          The most typical example are confirming (more like accepting, since the program initially selects them) casualties (which can be avoided by opting-off (in Engine Preferences)) and accepting (political or other) actions (for which I believe there is no solution).

                          May all occurrences of "Space" be changed to "Ctrl+Space"?

                          B 1 Reply Last reply Reply Quote 1
                          • B Offline
                            butterw @Cernel
                            last edited by butterw

                            @cernel I'll look into it. Likely space is associated by default with dialogs on the OS (Windows), so I'm not sure there is a simple solution to this.

                            For sure, if there is a choice dialogs should present the most favorable option by default, and require a conscious action by the player to go against it.
                            Many pop-ups are just an information notification, so using space is adequate to go through those. The info should be added to the history log so that the content of any message can be checked if something was missed.

                            B 1 Reply Last reply Reply Quote 1
                            • B Offline
                              butterw @butterw
                              last edited by butterw

                              @Cernel, I've removed the OK button from this information dialog, the consequence is that the only way to close is the X, Esc or Alt-F4 on Windows.
                              Dialogs are modal, meaning they steal the focus, and you have to close them before you can go on with the game.
                              Enter/Return/Space is the default behavior associated with buttons on Windows, so any dialog showing buttons will have these hotkeys by default. Overriding default behavior is not impossible but would require a lot of work as there are many different dialog types used in the game.
                              You should list precisely the dialogs which cause issue.
                              When a confirmation button is not really useful, it may be possible to change some to information/notification windows like the following screenshot.

                              alt text

                              The same dialog @100%dpi (without Font Size correction on my system):
                              alt text

                              C 1 Reply Last reply Reply Quote 0
                              • C Offline
                                Cernel Moderators Lobby Moderators @butterw
                                last edited by

                                @butterw Really just the "Yes/No" prompt when someone makes a user or political action requiring your acceptance is an issue (as you are writing in chat and inadvertedly accept).

                                All occurrences of that I believe are strictly related to the presence of this "option name" in the game (XML) file:
                                actionAccept


                                The most frequent, however, is likely accepting casualties as the defender, but that is already avoidable by having "Space bar confirms Casualties" set to "false" in "Engine Preferences".

                                B 1 Reply Last reply Reply Quote 1
                                • B Offline
                                  butterw @Cernel
                                  last edited by butterw

                                  @cernel said in Make Movement/Selection Help menu more readable (+Hotkeys discussion, Zoom Level display):

                                  @butterw Really just the "Yes/No" prompt when someone makes a user or political action requiring your acceptance is an issue (as you are writing in chat and inadvertedly accept).

                                  All occurrences of that I believe are strictly related to the presence of this "option name" in the game (XML) file:
                                  actionAccept

                                  Next time you play a game where this is a potential issue, could you please post a screenshot of the window or post the dialog title and/or part of the message, so I can look up where it takes place in the code.
                                  I haven't played a game using politics for a long while, but I do remember thinking the ui could use some improvements.
                                  The immediate solution could be to remove the keyboard focus from the buttons in these dialogs (there would be no hotkeys to validate the default action).

                                  The most frequent, however, is likely accepting casualties as the defender, but that is already avoidable by having "Space bar confirms Casualties" set to "false" in "Engine Preferences".

                                  In the case of casualties, the issue is typically that the default selection is in some way sub-optimal, but this isn't easy to get right.

                                  1 Reply Last reply Reply Quote 0
                                  • LaFayetteL Offline
                                    LaFayette Admin
                                    last edited by

                                    I'm not sure if this problem can be fully solved. By default 'space' activates the UI component that has focus. The dialogs must be modal and by default they have one of their buttons in focus. Removing that default focus is a major blow to as it is really rare when you are typing away and accidentally confirm, but I acknowledge that can be very impactful when that happens.

                                    There might be a clever solution here like detecting if the focus is in the chat and if a user is typing and try to "re-steal" the focus back to the chat if a modal is to appear. A double confirmation could do it too maybe, kind of like how the purchase screen is set up. Unless we can do something programmatically, it's tricky to set up and retain an efficient UX, forcing players to use the mouse slows games down. Game speed is critical, many players do not play because games take too long to play given how much game you actually play per unit time (game play is inefficient). Efficient game play has been and will continue to be a very high priority to help increase the player base.

                                    B 1 Reply Last reply Reply Quote 0
                                    • B Offline
                                      butterw @LaFayette
                                      last edited by

                                      @lafayette
                                      From my testing JOptionPane.showOptionDialog does allow to have a dialog choice with no default button.

                                      LaFayetteL 1 Reply Last reply Reply Quote 0
                                      • LaFayetteL Offline
                                        LaFayette Admin @butterw
                                        last edited by

                                        @butterw Cool, hard decision how to proceed. Removal of common hotkeys that allows for greater game play efficiency vs mitigating a rare but impactful mis-click due to chat. Maybe there is another option here..

                                        1 Reply Last reply Reply Quote 0

                                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                        With your input, this post could be even better 💗

                                        Register Login
                                        • 1
                                        • 2
                                        • 1 / 2
                                        • First post
                                          Last post
                                        Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums