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.
  • 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
                        • F funnycatmemes

                          @wxdbie bruh learn kotlin

                          wxdbieW
                          wxdbieW
                          wxdbie
                          wrote on last edited by
                          #21

                          @funnycatmemes learning

                          F 1 Reply Last reply
                          0
                          • wxdbieW wxdbie

                            @funnycatmemes learning

                            F
                            F
                            freerobuxgen2022
                            wrote on last edited by
                            #22

                            @wxdbie learn more

                            wxdbieW 1 Reply Last reply
                            0
                            • F freerobuxgen2022

                              @wxdbie learn more

                              wxdbieW
                              wxdbieW
                              wxdbie
                              wrote on last edited by
                              #23

                              @freerobuxgen2022, i try

                              1 Reply 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
                                #24

                                @plumer-man, thank you, I was able < 3

                                A Plumer ManP 2 Replies Last reply
                                0
                                • wxdbieW wxdbie has marked this topic as solved on
                                • wxdbieW wxdbie

                                  @plumer-man, thank you, I was able < 3

                                  A
                                  A
                                  Alina00035
                                  wrote on last edited by
                                  #25

                                  @wxdbie nice

                                  wxdbieW 1 Reply Last reply
                                  0
                                  • A Alina00035

                                    @wxdbie nice

                                    wxdbieW
                                    wxdbieW
                                    wxdbie
                                    wrote on last edited by
                                    #26

                                    @stfwissue 😊

                                    1 Reply Last reply
                                    0
                                    • wxdbieW wxdbie

                                      @plumer-man, thank you, I was able < 3

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

                                      good job

                                      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