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

                  @wxdbie bruh learn kotlin

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

                  @funnycatmemes learning

                  F 1 Reply Last reply
                  0
                  • wxdbieW wxdbie

                    @funnycatmemes learning

                    F Offline
                    F Offline
                    freerobuxgen2022
                    wrote on last edited by
                    #22

                    @wxdbie learn more

                    wxdbieW 1 Reply Last reply
                    0
                    • F freerobuxgen2022

                      @wxdbie learn more

                      wxdbieW Offline
                      wxdbieW Offline
                      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 Offline
                        wxdbieW Offline
                        wxdbie
                        wrote on last edited by
                        #24

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

                        Ali00035A 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

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

                          @wxdbie nice

                          wxdbieW 1 Reply Last reply
                          0
                          • Ali00035A Ali00035

                            @wxdbie nice

                            wxdbieW Offline
                            wxdbieW Offline
                            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 Offline
                              Plumer ManP Offline
                              Plumer Man
                              wrote on last edited by
                              #27

                              good job

                              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