Navigation

    TripleA Logo

    TripleA Forum

    • Register
    • Login
    • Search
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags

    Mini (Me) Map options

    Feature Requests & Ideas
    6
    25
    7118
    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.
    • Hepps
      Hepps Moderators last edited by redrum

      0_1530796506645_Implemented.png

      Created this thread to not hijack the LME thread.

      Further to our discussion...

      Would it be possible to be able to set the frame colour and fill for the view box on the mini map?

      eg.

      0_1528500297689_smallMap prototype2.png

      0_1528500315804_Mini Map frame sample.png

      (and yes I used lime green in my example just for you)

      Example
      smallMap.territory.saturation=0.5
      smallMap.unit.size=4
      smallMap.viewer.borderColor=000000
      smallMap.viewer.fillColor=191919
      smallMap.viewer.fillAlpha=0.5

      0_1531360936433_f809a738-8ccb-4aee-82cc-140189a2c74c-image.png

      PRs:
      https://github.com/triplea-game/triplea/pull/3453
      https://github.com/triplea-game/triplea/pull/3540

      redrum 1 Reply Last reply Reply Quote 0
      • redrum
        redrum Admin @Hepps last edited by

        @hepps As you wish...

        0_1528502217629_9d929de8-e7be-4159-91b3-7c40f428b5b8-image.png

        Hepps 1 Reply Last reply Reply Quote 0
        • Hepps
          Hepps Moderators @redrum last edited by

          @redrum could the mini map tell me when I am pushing my men into a suicide attack?

          Then cut me off from drinking further?

          😂

          redrum 1 Reply Last reply Reply Quote 1
          • redrum
            redrum Admin @Hepps last edited by redrum

            @hepps Well I could use the logic from the AI to probably indicate if it would disagree with your attack and put a notification on the minimap.

            Hepps 1 Reply Last reply Reply Quote 1
            • Hepps
              Hepps Moderators @redrum last edited by Hepps

              @redrum "You're too drunk! Please stop playing now!"

              redrum 1 Reply Last reply Reply Quote 1
              • redrum
                redrum Admin @Hepps last edited by redrum

                @hepps So potentially small map properties:
                smallMap.territory.alpha=0.5 # 0.0-1.0 (transparent to opaque)
                smallMap.unit.size=4 # size of unit squares
                smallMap.viewer.borderColor=C0C0C0
                smallMap.viewer.fillColor=C0C0C0
                smallMap.viewer.fillAlpha=0.5 # 0.0-1.0 (transparent to opaque)

                Thoughts? Any additions?

                Hepps C 2 Replies Last reply Reply Quote 1
                • Hepps
                  Hepps Moderators @redrum last edited by

                  @redrum My next one was the dot size... but I see that is in there already.

                  Still looking at it.

                  redrum 1 Reply Last reply Reply Quote 0
                  • redrum
                    redrum Admin @Hepps last edited by redrum

                    @hepps Here's TWW small map changing like all of them:
                    0_1528506214390_2e2dba49-e332-4ff7-b305-2dcf2aaef5fb-image.png

                    Original:
                    0_1528506318980_bc39d7ad-b05d-4afc-9636-c3353ed944e4-image.png

                    Hepps 1 Reply Last reply Reply Quote 1
                    • Hepps
                      Hepps Moderators @redrum last edited by

                      @redrum For TWW reducing the unit dot size is great!

                      1 Reply Last reply Reply Quote 0
                      • C
                        Cernel Moderators @redrum last edited by

                        @redrum Why not only allowing for the smallMap to be either above or under the ownership colours? I'm not sure what the transparency setting is making transparent.

                        C 1 Reply Last reply Reply Quote 0
                        • redrum
                          redrum Admin last edited by redrum

                          smallMap.territory.alpha=0.5
                          smallMap.unit.size=2
                          smallMap.viewer.borderColor=C0C0C0
                          smallMap.viewer.fillColor=C0C0C0
                          smallMap.viewer.fillAlpha=0.5

                          0_1528510969395_393d3bfc-3a80-496f-9920-63df370e28e8-image.png

                          redrum 1 Reply Last reply Reply Quote 1
                          • redrum
                            redrum Admin @redrum last edited by

                            PR: https://github.com/triplea-game/triplea/pull/3453

                            ron-murhammer created this issue in triplea-game/triplea

                            closed Add small map properties #3453

                            alkexr 1 Reply Last reply Reply Quote 1
                            • alkexr
                              alkexr @redrum last edited by

                              @redrum How can I test this feature? I've found the relevant branch, but there are no releases. Does it mean that I have to compile the code? And how do I do that? Is it complicated? Should I just wait a few days until it is merged with master?

                              redrum 1 Reply Last reply Reply Quote 0
                              • redrum
                                redrum Admin @alkexr last edited by

                                @alkexr Yeah, until the PR is merged into master, it doesn't build a release. Most people just wait til the PR is merged then grab the latest pre-release from github. You can also pull the source code down and run it which isn't too difficult. Here are the minimum steps to run the source:

                                1. Make sure you have git and gradle (build framework) installed
                                2. Pull down the triplea repo: https://github.com/triplea-game/triplea
                                3. Open up the command line, navigate to the base directory of the project, and run these commands:
                                ./gradlew test
                                ./gradlew check
                                ./gradlew run
                                

                                If you don't like the command line then you can instead use an IDE (eclipse, intellij, etc), import the project into that, install the gradle plugin, and run from your IDE (more developer setup here: https://github.com/triplea-game/triplea/tree/master/docs/dev).

                                redrum 1 Reply Last reply Reply Quote 0
                                • redrum
                                  redrum Admin @redrum last edited by

                                  PR merged. This can now be tested in the latest pre-release: https://github.com/triplea-game/triplea/releases/tag/1.9.0.0.10351

                                  1 Reply Last reply Reply Quote 2
                                  • RoiEX
                                    RoiEX Admin last edited by

                                    @redrum I just wanted to point out just compiling and running the code is easier than you described.
                                    It's sufficient to just download the zip of the specific branch and run ./gradlew run (or .\gradlew run on Windows) in a folder this zip has been unzipped to.
                                    The gradle wrapper will automatically install gradle if its doesn't already exist, and run the code afterwards.

                                    redrum 1 Reply Last reply Reply Quote 3
                                    • redrum
                                      redrum Admin @RoiEX last edited by

                                      @roiex Ah, didn't realize the wrapper would pull down gradle. Thanks for the follow up.

                                      1 Reply Last reply Reply Quote 0
                                      • RoiEX
                                        RoiEX Admin last edited by

                                        @redrum No Problem ^^
                                        It's basically all the wrapper does.
                                        If a valid installation is found, the gradle installation is being invoked and all the argument are being passed over

                                        1 Reply Last reply Reply Quote 0
                                        • Hepps
                                          Hepps Moderators last edited by

                                          Just awesome!!! I just reworked the TWW minimap.... thing is way better than it ever was.

                                          0_1528745373606_New Mini map.png

                                          1 Reply Last reply Reply Quote 3
                                          • redrum
                                            redrum Admin last edited by redrum

                                            So some bad news on this feature. The fill alpha for territories is causing problems because territories when conquered are drawn over the previous one. This causes conquered territories to become a blend of the previous owner color and the new owner color when alpha is set to less than 1 (some amount of transparency). So instead of alpha parameter, I'm going to have to switch this to just have territories being filled with a slightly lighter version of their set color. This should achieve a similar effect except won't capture any of the underlying smallMap image texture if there is one. Moving forward please use "saturation" instead of "alpha".

                                            smallMap.territory.saturation=0.5
                                            
                                            Frostion 1 Reply Last reply Reply Quote 1
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post
                                            Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums