• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Login
FAForever Forums
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Login

Seleciton Cost v.9 Forgotten Edition [UI][Abandoned]

Scheduled Pinned Locked Moved Modding & Tools
uimodeternal-modpack
13 Posts 3 Posters 1.4k Views
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.
  • E
    Eternal-
    last edited by Eternal- 2 Jul 2022, 07:09 22 Jan 2021, 19:03

    123.png
    Current - Version v.9 Forgotten Edition
    What`s new:

    • New design of UI elements
    • Fixed income/expense of selected units
    • Added auto-hide for reclaim view by hotkey
    • Added auto-hide for selected unit info
    • Connected both UI elements to resource panel (Now they will move and hide with resource panel)

    Seleciton Cost v.9 Forgotten Edition

    Example:
    selectioncost.gif

    1 Reply Last reply Reply Quote 5
    • E
      Eternal-
      last edited by Eternal- 7 Feb 2021, 09:58

      Version v.7
      What`s new:

      • New design of UI elements
      • Fixed income/expense of selected units
      • Added auto-hide for reclaim view by hotkey
      • Added auto-hide for selected unit info
      • Connected both UI elements to resource panel (Now they will move and hide with resource panel)

      Search in vaults "Selection Cost"
      or
      Selection Cost


      Layer 1.png
      Layer 2.png


      Layer 1.png
      Layer 2.png
      Layer 3.png
      Layer 6.png

      1 Reply Last reply Reply Quote 0
      • A
        arma473
        last edited by 7 Feb 2021, 18:38

        I found a way to enable it only for observers/replays. I don't actually want it while I'm playing a game, but it's very useful when I'm watching replays. Other people might be interested in this so I will share the code here.

        in your mod's gamemain.lua, at around line 80, there is this line of code:

        CreateSelectionUI()
        

        I added an if-then statement around it:

        if isReplay or (GetFocusArmy() == -1) then
        	CreateSelectionUI()
        end
        

        I'm curious if ANYONE looks at selection cost while they're playing, or if they only look at it while they're watching a replay.

        A 1 Reply Last reply 7 Feb 2021, 18:42 Reply Quote 0
        • A
          arma473 @arma473
          last edited by 7 Feb 2021, 18:42

          Separately, I would really like it if I could scale up the size of the selection cost display. I would want it about 3x bigger for my 4k display. I don't know how to do that or I would just implement it myself.

          E 1 Reply Last reply 8 Feb 2021, 06:12 Reply Quote 0
          • E
            Eternal- @arma473
            last edited by Eternal- 2 Aug 2021, 06:14 8 Feb 2021, 06:12

            @arma473 sure you can do it by yourself. Open the gamemain.lua and find the createselectionui() and add the string "LayoutHelpers.SetDimensions(statsFrame, width, heigth) after " statsFrame:SetTexture(....)"
            And you can increase the font size in lines CreateText(...12...) where is a number is a size of font. I'm from phone atm and can't write the whole code. But I will do it late


            Or do you use implemented ui scaling? Maybe I will do adapt it to scaling by settings

            1 Reply Last reply Reply Quote 0
            • A
              archsimkat
              last edited by 8 Feb 2021, 06:22

              Fyi, connecting both UI elements to resource panel means that you cannot see reclaim from observer view unless you go to a player view.

              E 1 Reply Last reply 8 Feb 2021, 06:38 Reply Quote 0
              • E
                Eternal- @archsimkat
                last edited by 8 Feb 2021, 06:38

                @archsimkat yea, my mistake. I will add advanced check if the current game is replay, then it will work from obs

                1 Reply Last reply Reply Quote 0
                • E
                  Eternal-
                  last edited by Eternal- 2 Aug 2021, 11:46 8 Feb 2021, 11:45

                  Any suggestions?

                  81a012f9-b855-484a-9bd1-a07cc9ee18b5-image.png

                  0d020551-3e1f-4452-8afb-f228104c400a-image.png

                  1f322eb6-8a54-4b68-be0a-85bb7eb7ae86-image.png

                  c0e9e998-a574-41d8-afaf-a6e02b46bc21-image.png

                  1 Reply Last reply Reply Quote 0
                  • E
                    Eternal-
                    last edited by Eternal- 2 Oct 2021, 18:00 10 Feb 2021, 17:00

                    This post is deleted!
                    1 Reply Last reply Reply Quote 1
                    • E
                      Eternal-
                      last edited by Eternal- 25 Feb 2021, 15:37

                      Version v.8
                      What`s new:

                      • New design of UI elements
                      • Reclaim texture changeable with current skin
                      • Red color for total reclaim and dark green for title if no mass on screen

                      Mistake:

                      • Selection cost frame can`t change skin

                      Not included in this update:

                      • Settings for replay

                      Search in vaults "Selection Cost"
                      or
                      Selection Cost

                      selectioncost.gif

                      1 Reply Last reply Reply Quote 0
                      • E
                        Eternal-
                        last edited by Eternal- 14 Nov 2021, 08:52

                        concept ui of v9
                        will be adaptive and resizable based on length of stroke
                        selectionCostt.png

                        1 Reply Last reply Reply Quote 3
                        • E
                          Eternal-
                          last edited by Eternal- 28 Jan 2022, 17:37

                          Seleciton Cost v.9 Forgotten Edition

                          1 Reply Last reply Reply Quote 1
                          • E
                            Eternal-
                            last edited by 7 Nov 2022, 15:36

                            Uploaded 9 version with new patch compatibility

                            1 Reply Last reply Reply Quote 0
                            • JipJ Jip referenced this topic on 7 Nov 2022, 17:01
                            • First post
                              Last post