Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

LiquidBounce Forum

  1. Home
  2. Support
  3. Binded key in ArrayList

Binded key in ArrayList

Scheduled Pinned Locked Moved Solved Support
27 Posts 6 Posters 19.1k Views 1 Watching
  • 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.
  • wxdbieW
    wxdbieW
    wxdbie
    wrote on last edited by
    #1

    Could please tell how make ArrayList show binded key. Like here:6d76df04-a94d-464e-b6dd-6180cd285f04-изображение.png

    A 1 Reply Last reply
    0
    • wxdbieW wxdbie

      @plumer-man

      fun getModName(mod: Module): String {
              var modTag : String = ""
              var modKey : String = ""
              if (tags.get() && mod.tag != null) {
                  modTag += " "
                  modKey += " > "
      
                  if (!tagsArrayColor.get())
                      modTag += "§f"
      
                  if (!tagsStyleValue.get().equals("default", true))
                      modTag += tagsStyleValue.get().get(0).toString() + if (tagsStyleValue.get().equals("-", true) || tagsStyleValue.get().equals("|", true)) " " else ""
      
                  modTag += mod.tag
      
                  if (!tagsStyleValue.get().equals("default", true)
                      && !tagsStyleValue.get().equals("-", true)
                      && !tagsStyleValue.get().equals("|", true))
      
                      modTag += tagsStyleValue.get().get(1).toString()
                      modKey = Keyboard.getKeyName(mod.keyBind)
              }
      
              var displayName : String = mod.name + modTag + if (modKey != "NONE") " > " + modKey else ""
              if (lowerCaseValue.get())
                  displayName = displayName.toLowerCase()
      
              return displayName
          }
      
      Plumer ManP
      Plumer ManP
      Plumer Man
      wrote on last edited by Plumer Man
      #18

      If you went through your code you would see that modKey is only set to the keyboard assosiated value if a tag is present.

      0108bf60-02bb-4f84-a17c-23eb768f1b67-image.png

      wxdbieW 2 Replies Last reply
      0
      • wxdbieW wxdbie

        Could please tell how make ArrayList show binded key. Like here:6d76df04-a94d-464e-b6dd-6180cd285f04-изображение.png

        A
        A
        Alina00035
        wrote on last edited by
        #2

        @wxdbie okay but why

        wxdbieW 1 Reply Last reply
        0
        • A Alina00035

          @wxdbie okay but why

          wxdbieW
          wxdbieW
          wxdbie
          wrote on last edited by
          #3

          @stfwissue ?

          A 1 Reply Last reply
          0
          • wxdbieW wxdbie

            @stfwissue ?

            A
            A
            Alina00035
            wrote on last edited by
            #4

            @wxdbie https://github.com/CCBlueX/LiquidBounce/blob/legacy/src/main/java/net/ccbluex/liquidbounce/features/command/commands/BindsCommand.kt

            wxdbieW 1 Reply Last reply
            0
            • A Alina00035

              @wxdbie https://github.com/CCBlueX/LiquidBounce/blob/legacy/src/main/java/net/ccbluex/liquidbounce/features/command/commands/BindsCommand.kt

              wxdbieW
              wxdbieW
              wxdbie
              wrote on last edited by
              #5

              @stfwissue ty. How to remove "NONE"?:java_FuSl5Ith84.png

              A Plumer ManP 2 Replies Last reply
              0
              • wxdbieW wxdbie

                @stfwissue ty. How to remove "NONE"?:java_FuSl5Ith84.png

                A
                A
                Alina00035
                wrote on last edited by
                #6

                @wxdbie I don't know

                1 Reply Last reply
                0
                • wxdbieW wxdbie

                  @stfwissue ty. How to remove "NONE"?:java_FuSl5Ith84.png

                  Plumer ManP
                  Plumer ManP
                  Plumer Man
                  wrote on last edited by Plumer Man
                  #7

                  You code (this is what i assume you have):

                  renderString = module.getName() + " - " + module.getTag() +" > " + Keyboard.getKeyName(module.getBind())
                  

                  You could remove the "NONE" by doing this instead

                  binded = Keyboard.getKeyName(module.getBind())
                  renderString = module.getName() + " - " + module.getTag() + (binded != "NONE" ? " > "  + binded  : "" )
                  
                  A wxdbieW 3 Replies Last reply
                  0
                  • Plumer ManP Plumer Man

                    You code (this is what i assume you have):

                    renderString = module.getName() + " - " + module.getTag() +" > " + Keyboard.getKeyName(module.getBind())
                    

                    You could remove the "NONE" by doing this instead

                    binded = Keyboard.getKeyName(module.getBind())
                    renderString = module.getName() + " - " + module.getTag() + (binded != "NONE" ? " > "  + binded  : "" )
                    
                    A
                    A
                    Alina00035
                    wrote on last edited by
                    #8

                    @plumer-man Plumer Man pro gamer and coder 2022

                    1 Reply Last reply
                    0
                    • Plumer ManP Plumer Man

                      You code (this is what i assume you have):

                      renderString = module.getName() + " - " + module.getTag() +" > " + Keyboard.getKeyName(module.getBind())
                      

                      You could remove the "NONE" by doing this instead

                      binded = Keyboard.getKeyName(module.getBind())
                      renderString = module.getName() + " - " + module.getTag() + (binded != "NONE" ? " > "  + binded  : "" )
                      
                      wxdbieW
                      wxdbieW
                      wxdbie
                      wrote on last edited by
                      #9

                      @plumer-man ty < 3

                      1 Reply Last reply
                      0
                      • wxdbieW wxdbie has marked this topic as solved on
                      • wxdbieW wxdbie has marked this topic as unsolved on
                      • Plumer ManP Plumer Man

                        You code (this is what i assume you have):

                        renderString = module.getName() + " - " + module.getTag() +" > " + Keyboard.getKeyName(module.getBind())
                        

                        You could remove the "NONE" by doing this instead

                        binded = Keyboard.getKeyName(module.getBind())
                        renderString = module.getName() + " - " + module.getTag() + (binded != "NONE" ? " > "  + binded  : "" )
                        
                        wxdbieW
                        wxdbieW
                        wxdbie
                        wrote on last edited by
                        #10

                        @plumer-man, how to remove ">" from functions that are not binded key?
                        java_edHXZfM0IS.png

                        modKey = Keyboard.getKeyName(mod.keyBind)
                        
                        var displayName : String = mod.name + modTag + if (modKey != "NONE") " > " + modKey else ""
                        
                        A Plumer ManP 2 Replies Last reply
                        0
                        • wxdbieW wxdbie

                          @plumer-man, how to remove ">" from functions that are not binded key?
                          java_edHXZfM0IS.png

                          modKey = Keyboard.getKeyName(mod.keyBind)
                          
                          var displayName : String = mod.name + modTag + if (modKey != "NONE") " > " + modKey else ""
                          
                          A
                          A
                          Alina00035
                          wrote on last edited by
                          #11
                          This post is deleted!
                          wxdbieW 1 Reply Last reply
                          0
                          • A Alina00035
                            [[topic:post-is-deleted]]
                            wxdbieW
                            wxdbieW
                            wxdbie
                            wrote on last edited by
                            #12

                            @stfwissue It did not work : (

                            A 1 Reply Last reply
                            0
                            • wxdbieW wxdbie

                              @stfwissue It did not work : (

                              A
                              A
                              Alina00035
                              wrote on last edited by
                              #13

                              @wxdbie I got no idea then 😞

                              1 Reply Last reply
                              0
                              • wxdbieW wxdbie

                                @plumer-man, how to remove ">" from functions that are not binded key?
                                java_edHXZfM0IS.png

                                modKey = Keyboard.getKeyName(mod.keyBind)
                                
                                var displayName : String = mod.name + modTag + if (modKey != "NONE") " > " + modKey else ""
                                
                                Plumer ManP
                                Plumer ManP
                                Plumer Man
                                wrote on last edited by
                                #14

                                Can you send more code samples i cant see anything wronge with the code you sent

                                wxdbieW 1 Reply Last reply
                                0
                                • Plumer ManP Plumer Man

                                  Can you send more code samples i cant see anything wronge with the code you sent

                                  wxdbieW
                                  wxdbieW
                                  wxdbie
                                  wrote on last edited by
                                  #15

                                  @plumer-man

                                  fun getModName(mod: Module): String {
                                          var modTag : String = ""
                                          var modKey : String = ""
                                          if (tags.get() && mod.tag != null) {
                                              modTag += " "
                                              modKey += " > "
                                  
                                              if (!tagsArrayColor.get())
                                                  modTag += "§f"
                                  
                                              if (!tagsStyleValue.get().equals("default", true))
                                                  modTag += tagsStyleValue.get().get(0).toString() + if (tagsStyleValue.get().equals("-", true) || tagsStyleValue.get().equals("|", true)) " " else ""
                                  
                                              modTag += mod.tag
                                  
                                              if (!tagsStyleValue.get().equals("default", true)
                                                  && !tagsStyleValue.get().equals("-", true)
                                                  && !tagsStyleValue.get().equals("|", true))
                                  
                                                  modTag += tagsStyleValue.get().get(1).toString()
                                                  modKey = Keyboard.getKeyName(mod.keyBind)
                                          }
                                  
                                          var displayName : String = mod.name + modTag + if (modKey != "NONE") " > " + modKey else ""
                                          if (lowerCaseValue.get())
                                              displayName = displayName.toLowerCase()
                                  
                                          return displayName
                                      }
                                  
                                  CzechHekC Plumer ManP F 3 Replies Last reply
                                  0
                                  • wxdbieW wxdbie

                                    @plumer-man

                                    fun getModName(mod: Module): String {
                                            var modTag : String = ""
                                            var modKey : String = ""
                                            if (tags.get() && mod.tag != null) {
                                                modTag += " "
                                                modKey += " > "
                                    
                                                if (!tagsArrayColor.get())
                                                    modTag += "§f"
                                    
                                                if (!tagsStyleValue.get().equals("default", true))
                                                    modTag += tagsStyleValue.get().get(0).toString() + if (tagsStyleValue.get().equals("-", true) || tagsStyleValue.get().equals("|", true)) " " else ""
                                    
                                                modTag += mod.tag
                                    
                                                if (!tagsStyleValue.get().equals("default", true)
                                                    && !tagsStyleValue.get().equals("-", true)
                                                    && !tagsStyleValue.get().equals("|", true))
                                    
                                                    modTag += tagsStyleValue.get().get(1).toString()
                                                    modKey = Keyboard.getKeyName(mod.keyBind)
                                            }
                                    
                                            var displayName : String = mod.name + modTag + if (modKey != "NONE") " > " + modKey else ""
                                            if (lowerCaseValue.get())
                                                displayName = displayName.toLowerCase()
                                    
                                            return displayName
                                        }
                                    
                                    CzechHekC
                                    CzechHekC
                                    CzechHek
                                    wrote on last edited by
                                    #16

                                    @wxdbie I have a feeling that this isn't the ideal way of implementing such things. Not only it looks more complicated than it is, it is actually much harder to edit, fix, ...

                                    wxdbieW 1 Reply Last reply
                                    0
                                    • CzechHekC CzechHek

                                      @wxdbie I have a feeling that this isn't the ideal way of implementing such things. Not only it looks more complicated than it is, it is actually much harder to edit, fix, ...

                                      wxdbieW
                                      wxdbieW
                                      wxdbie
                                      wrote on last edited by
                                      #17

                                      @czechhek, well how do you make it easy? 😕

                                      1 Reply Last reply
                                      0
                                      • wxdbieW wxdbie

                                        @plumer-man

                                        fun getModName(mod: Module): String {
                                                var modTag : String = ""
                                                var modKey : String = ""
                                                if (tags.get() && mod.tag != null) {
                                                    modTag += " "
                                                    modKey += " > "
                                        
                                                    if (!tagsArrayColor.get())
                                                        modTag += "§f"
                                        
                                                    if (!tagsStyleValue.get().equals("default", true))
                                                        modTag += tagsStyleValue.get().get(0).toString() + if (tagsStyleValue.get().equals("-", true) || tagsStyleValue.get().equals("|", true)) " " else ""
                                        
                                                    modTag += mod.tag
                                        
                                                    if (!tagsStyleValue.get().equals("default", true)
                                                        && !tagsStyleValue.get().equals("-", true)
                                                        && !tagsStyleValue.get().equals("|", true))
                                        
                                                        modTag += tagsStyleValue.get().get(1).toString()
                                                        modKey = Keyboard.getKeyName(mod.keyBind)
                                                }
                                        
                                                var displayName : String = mod.name + modTag + if (modKey != "NONE") " > " + modKey else ""
                                                if (lowerCaseValue.get())
                                                    displayName = displayName.toLowerCase()
                                        
                                                return displayName
                                            }
                                        
                                        Plumer ManP
                                        Plumer ManP
                                        Plumer Man
                                        wrote on last edited by Plumer Man
                                        #18

                                        If you went through your code you would see that modKey is only set to the keyboard assosiated value if a tag is present.

                                        0108bf60-02bb-4f84-a17c-23eb768f1b67-image.png

                                        wxdbieW 2 Replies Last reply
                                        0
                                        • Plumer ManP Plumer Man

                                          If you went through your code you would see that modKey is only set to the keyboard assosiated value if a tag is present.

                                          0108bf60-02bb-4f84-a17c-23eb768f1b67-image.png

                                          wxdbieW
                                          wxdbieW
                                          wxdbie
                                          wrote on last edited by
                                          #19

                                          @plumer-man, uh, how right way do it? 😓

                                          1 Reply Last reply
                                          0
                                          • wxdbieW wxdbie

                                            @plumer-man

                                            fun getModName(mod: Module): String {
                                                    var modTag : String = ""
                                                    var modKey : String = ""
                                                    if (tags.get() && mod.tag != null) {
                                                        modTag += " "
                                                        modKey += " > "
                                            
                                                        if (!tagsArrayColor.get())
                                                            modTag += "§f"
                                            
                                                        if (!tagsStyleValue.get().equals("default", true))
                                                            modTag += tagsStyleValue.get().get(0).toString() + if (tagsStyleValue.get().equals("-", true) || tagsStyleValue.get().equals("|", true)) " " else ""
                                            
                                                        modTag += mod.tag
                                            
                                                        if (!tagsStyleValue.get().equals("default", true)
                                                            && !tagsStyleValue.get().equals("-", true)
                                                            && !tagsStyleValue.get().equals("|", true))
                                            
                                                            modTag += tagsStyleValue.get().get(1).toString()
                                                            modKey = Keyboard.getKeyName(mod.keyBind)
                                                    }
                                            
                                                    var displayName : String = mod.name + modTag + if (modKey != "NONE") " > " + modKey else ""
                                                    if (lowerCaseValue.get())
                                                        displayName = displayName.toLowerCase()
                                            
                                                    return displayName
                                                }
                                            
                                            F
                                            F
                                            funnycatmemes
                                            wrote on last edited by
                                            #20

                                            @wxdbie bruh learn kotlin

                                            wxdbieW 1 Reply Last reply
                                            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
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes


                                            About
                                            • Terms of Service
                                            • Privacy Policy
                                            • Status
                                            • Contact Us
                                            Downloads
                                            • Releases
                                            • Source code
                                            • License
                                            Docs
                                            • Tutorials
                                            • CustomHUD
                                            • AutoSettings
                                            • ScriptAPI
                                            Community
                                            • Forum
                                            • Guilded
                                            • YouTube
                                            • Twitter
                                            • D.Tube
                                            • Login

                                            • Login or register to search.
                                            • First post
                                              Last post
                                            0
                                            • Categories
                                            • Recent
                                            • Tags
                                            • Popular
                                            • Groups