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

    Proposal: Always-shown "Purchased Units" panel

    Scheduled Pinned Locked Moved Feature Requests & Ideas
    93 Posts 11 Posters 40.3k Views 9 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.
    • LaFayetteL Online
      LaFayette Admin
      last edited by

      My 2 cents/comments:

      • tab solves problem of visibility to all players
      • I do not think players want to see it all the time. It's a pretty discrete action when I'm playing and am like "oh, what did I purchase??" Having the tab be always visible of course solves this, but the purchase is not necessarily that salient where I want to actually see it all the time.

      In terms of 'hiding' the display, I would not go for a menu option. IMO menu options are more for options that are 'set-and-forget'. The purchase panel perhaps would get in the way, so you'd want to hide it in case you want to review the units that have moved or find one to undo. My thinking for 'hiding' the panel would be a sliding panel 'JSplitPane'. This would be something available perhaps on the edge of the map and slide out horizontally. If displayed, it would reduce the amount of map visible, clicking the slider hides/reveals it, and dragging would increase/decrease it's size (a bit similar to how the download maps window has a download progress area in a split pane, though the panel would be available instead as a brand new tab on the edge of the map). IMO I suspect going with a classic new tab is probably the easiest route for now.

      C 1 Reply Last reply Reply Quote 2
      • C Offline
        Cernel Moderators @LaFayette
        last edited by

        @LaFayette said in Proposal: Always-shown "Purchased Units" panel:

        In terms of 'hiding' the display, I would not go for a menu option. IMO menu options are more for options that are 'set-and-forget'.

        Also this should not be a menu option if the default would be having it, as many people (I would bet the majority of users) will just not see they have this option (you may have a map with huge unit pictures and many units, for which this option may be bad). It may be reasonable if the default would be not having it, but this way I think most people will not realize they can enable this feature.

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

          @Alexei-Svitkine I hear you on how tabs are not ideal on Mac. We over-use tabs as well IMO in general, the players vs economy tabs showing (almost) the same data has bothered me for some time.

          The unit scroller ate up a lot of space, we used to be able to view a solid 5-10 moves in the move tab, we're down to 3-6 or so now. Dropping all the way down to 1 or 2 seems to be past a tipping point.

          I think the kind of slider I was talking about is maybe called a 'fly-out tab'.

          I think we may need to be creative to place all the components properly. I'm thinking a bottom-bar of some sort would be the way to go. We could have the unit scroller in the center of that, a mini-map in the lower right, and fly-out tabs for the different view options. That of course is not feasible for a short-term solution.

          Maybe we could put the unit scroller and purchase panel in a tabbed panel of itself, so a user could flip between the two. That's my best idea for you.

          2.0 is hopefully around the corner, a naive solution of adding a new tab might be justified so we can get the feature landed in some form, even if not fully ideal, the tabbed panel for unit scroller and purchase IMO is not a bad option. In part the Mac tabs are 'bad' because there are too many and you have to click through to find the right ones. Having just the two tabs for 'unit scroller' vs 'purchases' would always be visible and pretty easy to toggle back and forth. We'd have to come up with a better tab label then 'unit scroller', but it could be a viable option/compromise.

          1 Reply Last reply Reply Quote 0
          • Alexei SvitkineA Offline
            Alexei Svitkine
            last edited by Alexei Svitkine

            @LaFayette That's not a bad idea, although there is a bit of complexity involved. First, the unit scroller is only shown on the unit movement screen, whereas the intention of this panel is to be shown during all phases after purchase. So if we have a new set of tabs, then we'd want to only have an active unit scroller during a certain phase, and inactive otherwise. We also need to have logic of when to show this tabbed pane at all - for example, we could show it only if there are tabs to show, and not show otherwise. Or we can show always and just keep tabs empty/disabled when in the wrong phase. And we may want to persist the user's preference about their last active tab there, so that it will be remembered.

            Anyways, stepping back a bit, let me summarize the options:

            • Panel is unconditionally shown after purchase, with no way to hide.
            • An option in the View menu is added to hide/show the panel.
            • It's instead a normal Tab along other tabs. This doesn't allow it to always be shown without user action.
            • There's a split pane component, which allows easily minimizing the panel.
            • There's a new tabbed pane at the bottom right corner with tabs for Unit Scroller and Purchased Units.
            • A combination of the previous two ideas could be to have the new tabbed pane be insider a split pane, so it could be hidden altogether.

            There's also additional open questions:

            • Does it work well on all maps, especially with a lot of units? I welcome suggestions on which to test - or when we get a prerelease build out with this change, people can try it out too.
            • How does it work with large unit icons? Something to also try out once we have a prerelease build with it.

            Finally, I believe that everyone is in agreement that it would be good to have this be visible for opponents moves. This can be supported with any of the UI options.

            C 1 Reply Last reply Reply Quote 2
            • Alexei SvitkineA Offline
              Alexei Svitkine
              last edited by

              We have a prerelease to try with this feature implemented:
              https://github.com/triplea-game/triplea/releases/tag/2.0.16238

              To enable this, set "Show Beta Features" to "True" under "Engine Settings" -> "Testing".

              Please try it out and play with it and let me know how it feels. Thanks!

              C 1 Reply Last reply Reply Quote 1
              • C Offline
                Cernel Moderators @Alexei Svitkine
                last edited by

                @Alexei-Svitkine said in Proposal: Always-shown "Purchased Units" panel:

                We have a prerelease to try with this feature implemented:
                https://github.com/triplea-game/triplea/releases/tag/2.0.16238

                To enable this, set "Show Beta Features" to "True" under "Engine Settings" -> "Testing".

                Please try it out and play with it and let me know how it feels. Thanks!

                This feature is not working for me. In all games I tested it, it just shows an empty "Purchased Units" thing at the bottor of the action tab.

                Also, if the "Purchased Units" is showing any unplaced units that you have, not only those that you purchased, it should be called otherwise (I get that in all the standard games you can only have unplaced units if you purchased them, but, even in this case, strictly speaking any units that you didn't start with is purchased, no matter if also placed). It also feels weird and wrong to me to see an empty "Purchased Units" thing at the bottom of the action tab, while you are in the placement phase.

                Alexei SvitkineA 1 Reply Last reply Reply Quote 0
                • Alexei SvitkineA Offline
                  Alexei Svitkine @Cernel
                  last edited by

                  @Cernel Can you provide a screenshot? Which maps?

                  C 1 Reply Last reply Reply Quote 0
                  • C Offline
                    Cernel Moderators @Alexei Svitkine
                    last edited by

                    @Alexei-Svitkine Any games I tried that is available in download list. The situation is just as I pictured.
                    20191015_01.png
                    (I purchased 3 infantries and 3 armours)

                    Alexei SvitkineA 1 Reply Last reply Reply Quote 1
                    • C Offline
                      Cernel Moderators
                      last edited by Cernel

                      Thinking over it, I see "unplaced units" as a resource you have, thus conceptually similar to displaying resources. This is so especially if you consider that in a game like WW2v3 Chinese will get directly infantry; so, for such a player, receiving infantry units to place is substantially like for everyone else collecting production units (PUs).
                      Or you can even have games in which you always and only "collect" new units (like Risk, or likely most games in which you have only 1 unit type), for example (albeit unavailable):
                      https://github.com/triplea-maps/conquest_of_the_world/archive/master.zip
                      Thus you could have all unplaced units you have displayed in the bottom bar, next to the resources you have, but with a divide in between (not to confuse resources stock with unplaced units stock). However, this would present the challenge that usually the bottom bar is thinner than what would be needed to fully display the units (for example, in the TripleA assets the normal flags are 32 pixels high, while the units are 48 pixels high).

                      1 Reply Last reply Reply Quote 0
                      • C Offline
                        Cernel Moderators @Alexei Svitkine
                        last edited by

                        @Alexei-Svitkine said in Proposal: Always-shown "Purchased Units" panel:

                        There's also additional open questions:

                        • Does it work well on all maps, especially with a lot of units? I welcome suggestions on which to test - or when we get a prerelease build out with this change, people can try it out too.
                        • How does it work with large unit icons? Something to also try out once we have a prerelease build with it.

                        I already suggested this, did you try it?

                        @Cernel said in Proposal: Always-shown "Purchased Units" panel:

                        p.s.: You can use this map (not available in download list) to test with a unit much bigger than the usual 48x48 pixels.
                        https://github.com/triplea-maps/conquest_of_the_world

                        It shouldn't be an issue here, as you don't purchase, but place right when you get the units (I assume you know Risk), but it may give you an idea, or should I say I've no idea how this feature would display, as all the space is already filled with only 1 move.

                        20191015_02.png

                        Anyways, I suppose you can test by changing (modding) the game as to not destroying unplaced units, then just skipping placement, if I'm guessing correctly that by "purchased units" you actually mean "unplaced units".

                        Alexei SvitkineA 1 Reply Last reply Reply Quote 1
                        • Alexei SvitkineA Offline
                          Alexei Svitkine @Cernel
                          last edited by

                          @Cernel said in Proposal: Always-shown "Purchased Units" panel:

                          @Alexei-Svitkine Any games I tried that is available in download list. The situation is just as I pictured.
                          20191015_01.png
                          (I purchased 3 infantries and 3 armours)

                          That's very strange. It's not supposed to be empty. What version of Java are you using?

                          After enabling beta features, did you restart triplea?

                          C 1 Reply Last reply Reply Quote 0
                          • C Offline
                            Cernel Moderators @Alexei Svitkine
                            last edited by

                            @Alexei-Svitkine said in Proposal: Always-shown "Purchased Units" panel:

                            What version of Java are you using?

                            It says 11.0.4.

                            After enabling beta features, did you restart triplea?

                            I had it already enabled.

                            1 Reply Last reply Reply Quote 0
                            • Alexei SvitkineA Offline
                              Alexei Svitkine
                              last edited by Alexei Svitkine

                              Hmm, very strange. I wonder if it's some platform-specific difference.

                              Has anyone else had a chance to test it? Does it work for other people on Windows?

                              EDIT: Hmm, I had a chance to try it on Windows and am seeing the same thing. Ugh.

                              C 1 Reply Last reply Reply Quote 0
                              • C Offline
                                Cernel Moderators @Alexei Svitkine
                                last edited by

                                @Alexei-Svitkine Yeah, I immediately guessed it was because I'm on Windows and you are on Macintosh, but, then, I've been a little dubious since nobody else said anything or anyways confirmed the bug.

                                1 Reply Last reply Reply Quote 0
                                • Alexei SvitkineA Offline
                                  Alexei Svitkine
                                  last edited by

                                  Actually, looks like I can reproduce the issue on Mac if I change the look and feel to Subspace, which is what TripleA uses on Windows. So I should be able to debug.

                                  1 Reply Last reply Reply Quote 0
                                  • Alexei SvitkineA Offline
                                    Alexei Svitkine
                                    last edited by

                                    I figured out what's wrong and will be sending a fix. Stay tuned - I'll post an update when we have a prerelease build with the fix.

                                    1 Reply Last reply Reply Quote 0
                                    • Alexei SvitkineA Offline
                                      Alexei Svitkine @Cernel
                                      last edited by

                                      @Cernel said in Proposal: Always-shown "Purchased Units" panel:

                                      @Alexei-Svitkine said in Proposal: Always-shown "Purchased Units" panel:

                                      • How does it work with large unit icons? Something to also try out once we have a prerelease build with it.

                                      I already suggested this, did you try it?

                                      I didn't before, but I did now. The panel doesn't show up because as you say, there's no purchase. (I did get an exception with the UnitScroller on it, but this seems unrelated to my change.)

                                      C 1 Reply Last reply Reply Quote 0
                                      • C Offline
                                        Cernel Moderators @Alexei Svitkine
                                        last edited by

                                        @Alexei-Svitkine Well, anyways what I said is that I believe it should not be called "Purchased Units". Like you could have a game that gives you whatever units based on something, also already having some at start game, that you'll place at some point. The matter is not that the units may be purchased, but that you have them still unplaced.

                                        Alexei SvitkineA 1 Reply Last reply Reply Quote 0
                                        • Alexei SvitkineA Offline
                                          Alexei Svitkine @Cernel
                                          last edited by Alexei Svitkine

                                          @Cernel said in Proposal: Always-shown "Purchased Units" panel:

                                          @Alexei-Svitkine Well, anyways what I said is that I believe it should not be called "Purchased Units". Like you could have a game that gives you whatever units based on something, also already having some at start game, that you'll place at some point. The matter is not that the units may be purchased, but that you have them still unplaced.

                                          Sorry I didn't reply to this. I agree that naming it something different like "Units to Place" would be better - and China on WW2v3 is a good example of this. Feedback noted and will keep it in mind when I iterate on the UI.

                                          Still hoping to get the first UI out for people to try before I go about changing it.

                                          C 1 Reply Last reply Reply Quote 0
                                          • C Offline
                                            Cernel Moderators @Alexei Svitkine
                                            last edited by

                                            @Alexei-Svitkine I think it can be just "To Place", as not like you can place something else but units (besides, also PUs (the main "resource" in the game) are nominally "units", as the meaning is "Production Units").

                                            Alternatives to "To Place" may be "Unplaced", "Under Production", "Mobilizing", "Held" ("heldUnits" is the xml way of calling units in a player's inventory).

                                            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
                                            • 3
                                            • 4
                                            • 5
                                            • 2 / 5
                                            • First post
                                              Last post
                                            Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums