Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • 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 5.6k 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 Offline
    wxdbieW Offline
    wxdbie
    wrote on last edited by
    #1

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

    Ali00035A 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 Offline
      Plumer ManP Offline
      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

        Ali00035A Offline
        Ali00035A Offline
        Ali00035
        wrote on last edited by
        #2

        @wxdbie okay but why

        wxdbieW 1 Reply Last reply
        0
        • Ali00035A Ali00035

          @wxdbie okay but why

          wxdbieW Offline
          wxdbieW Offline
          wxdbie
          wrote on last edited by
          #3

          @stfwissue ?

          Ali00035A 1 Reply Last reply
          0
          • wxdbieW wxdbie

            @stfwissue ?

            Ali00035A Offline
            Ali00035A Offline
            Ali00035
            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
            • Ali00035A Ali00035

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

              wxdbieW Offline
              wxdbieW Offline
              wxdbie
              wrote on last edited by
              #5

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

              Ali00035A Plumer ManP 2 Replies Last reply
              0
              • wxdbieW wxdbie

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

                Ali00035A Offline
                Ali00035A Offline
                Ali00035
                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 Offline
                  Plumer ManP Offline
                  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  : "" )
                  
                  Ali00035A 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  : "" )
                    
                    Ali00035A Offline
                    Ali00035A Offline
                    Ali00035
                    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 Offline
                      wxdbieW Offline
                      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 Offline
                        wxdbieW Offline
                        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 ""
                        
                        Ali00035A 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 ""
                          
                          Ali00035A Offline
                          Ali00035A Offline
                          Ali00035
                          wrote on last edited by
                          #11
                          This post is deleted!
                          wxdbieW 1 Reply Last reply
                          0
                          • Ali00035A Ali00035

                            This post is deleted!

                            wxdbieW Offline
                            wxdbieW Offline
                            wxdbie
                            wrote on last edited by
                            #12

                            @stfwissue It did not work : (

                            Ali00035A 1 Reply Last reply
                            0
                            • wxdbieW wxdbie

                              @stfwissue It did not work : (

                              Ali00035A Offline
                              Ali00035A Offline
                              Ali00035
                              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 Offline
                                Plumer ManP Offline
                                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 Offline
                                  wxdbieW Offline
                                  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 Offline
                                    CzechHekC Offline
                                    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 Offline
                                      wxdbieW Offline
                                      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 Offline
                                        Plumer ManP Offline
                                        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 Offline
                                          wxdbieW Offline
                                          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 Offline
                                            F Offline
                                            funnycatmemes
                                            wrote on last edited by
                                            #20

                                            @wxdbie bruh learn kotlin

                                            wxdbieW 1 Reply Last reply
                                            0
                                            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
                                            • Users
                                            • Groups