Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • 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. Kotlin/Java
  3. Array list help

Array list help

Scheduled Pinned Locked Moved Kotlin/Java
30 Posts 16 Posters 13.4k Views
  • 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.
  • RiodoroR Riodoro

    @ender__flash can you give it to me pleeeeeeeease?

    E Offline
    E Offline
    Ender__Flash
    wrote on last edited by
    #11

    @riodoro no.

    1 Reply Last reply
    0
    • RiodoroR Riodoro

      @ender__flash can you give it to me pleeeeeeeease?

      LitelyL Offline
      LitelyL Offline
      Litely
      wrote on last edited by
      #12

      @riodoro said in Array list help:

      @ender__flash can you give it to me pleeeeeeeease?

      ok

      LitelyL 1 Reply Last reply
      0
      • LitelyL Litely

        @riodoro said in Array list help:

        @ender__flash can you give it to me pleeeeeeeease?

        ok

        LitelyL Offline
        LitelyL Offline
        Litely
        wrote on last edited by Litely
        #13

        paste this in RenderUtils

        public static int SkyRainbow(int var2, float bright, float st) {
                double v1 = Math.ceil(System.currentTimeMillis() + (long) (var2 * 109)) / 5;
                return Color.getHSBColor((double) ((float) ((v1 %= 360.0) / 360.0)) < 0.5 ? -((float) (v1 / 360.0)) : (float) (v1 / 360.0), st, bright).getRGB();
            }
        

        and then paste this

        /*
         * LiquidBounce Hacked Client
         * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge.
         * https://github.com/CCBlueX/LiquidBounce/
         */
        package net.ccbluex.liquidbounce.ui.client.hud.element.elements
        
        import net.ccbluex.liquidbounce.LiquidBounce
        import net.ccbluex.liquidbounce.features.module.Module
        import net.ccbluex.liquidbounce.ui.client.hud.designer.GuiHudDesigner
        import net.ccbluex.liquidbounce.ui.client.hud.element.Border
        import net.ccbluex.liquidbounce.ui.client.hud.element.Element
        import net.ccbluex.liquidbounce.ui.client.hud.element.ElementInfo
        import net.ccbluex.liquidbounce.ui.client.hud.element.Side
        import net.ccbluex.liquidbounce.ui.client.hud.element.Side.Horizontal
        import net.ccbluex.liquidbounce.ui.client.hud.element.Side.Vertical
        import net.ccbluex.liquidbounce.ui.font.AWTFontRenderer
        import net.ccbluex.liquidbounce.ui.font.Fonts
        import net.ccbluex.liquidbounce.utils.render.AnimationUtils
        import net.ccbluex.liquidbounce.utils.render.RenderUtils
        import net.ccbluex.liquidbounce.utils.render.shader.shaders.RainbowFontShader
        import net.ccbluex.liquidbounce.utils.render.shader.shaders.RainbowShader
        import net.ccbluex.liquidbounce.value.*
        import net.minecraft.client.renderer.GlStateManager
        import java.awt.Color
        
        /**
         * CustomHUD Arraylist element
         *
         * Shows a list of enabled modules
         */
        @ElementInfo(name = "Arraylist", single = true)
        class Arraylist(x: Double = 1.0, y: Double = 2.0, scale: Float = 1F,
                        side: Side = Side(Horizontal.RIGHT, Vertical.UP)) : Element(x, y, scale, side) {
            private val rainbowX = FloatValue("Rainbow-X", -1000F, -2000F, 2000F)
            private val rainbowY = FloatValue("Rainbow-Y", -1000F, -2000F, 2000F)
            private val colorModeValue = ListValue("Text-Color", arrayOf("Custom", "Random", "Rainbow", "Astolfo"), "Custom")
            private val colorRedValue = IntegerValue("Text-R", 0, 0, 255)
            private val colorGreenValue = IntegerValue("Text-G", 111, 0, 255)
            private val colorBlueValue = IntegerValue("Text-B", 255, 0, 255)
            private val rectColorModeValue = ListValue("Rect-Color", arrayOf("Custom", "Random", "Rainbow", "Astolfo"), "Rainbow")
            private val rectColorRedValue = IntegerValue("Rect-R", 255, 0, 255)
            private val rectColorGreenValue = IntegerValue("Rect-G", 255, 0, 255)
            private val rectColorBlueValue = IntegerValue("Rect-B", 255, 0, 255)
            private val rectColorBlueAlpha = IntegerValue("Rect-Alpha", 255, 0, 255)
            private val saturationValue = FloatValue("Random-Saturation", 0.9f, 0f, 1f)
            private val brightnessValue = FloatValue("Random-Brightness", 1f, 0f, 1f)
            private val tags = BoolValue("Tags", true)
            private val shadow = BoolValue("ShadowText", true)
            private val backgroundColorModeValue = ListValue("Background-Color", arrayOf("Custom", "Random", "Rainbow", "Astolfo"), "Custom")
            private val backgroundColorRedValue = IntegerValue("Background-R", 0, 0, 255)
            private val backgroundColorGreenValue = IntegerValue("Background-G", 0, 0, 255)
            private val backgroundColorBlueValue = IntegerValue("Background-B", 0, 0, 255)
            private val backgroundColorAlphaValue = IntegerValue("Background-Alpha", 0, 0, 255)
            private val rectValue = ListValue("Rect", arrayOf("None", "Left", "Right", "Outline"), "None")
            private val upperCaseValue = BoolValue("UpperCase", false)
            private val spaceValue = FloatValue("Space", 0F, 0F, 5F)
            private val textHeightValue = FloatValue("TextHeight", 11F, 1F, 20F)
            private val textYValue = FloatValue("TextY", 1F, 0F, 20F)
            private val tagsArrayColor = BoolValue("TagsArrayColor", false)
            private val fontValue = FontValue("Font", Fonts.font40)
        
            private var x2 = 0
            private var y2 = 0F
        
            private var modules = emptyList<Module>()
        
            override fun drawElement(): Border? {
                val fontRenderer = fontValue.get()
        
                AWTFontRenderer.assumeNonVolatile = true
        
                // Slide animation - update every render
                val delta = RenderUtils.deltaTime
        
                for (module in LiquidBounce.moduleManager.modules) {
                    if (!module.array || (!module.state && module.slide == 0F)) continue
        
                    var displayString = if (!tags.get())
                        module.name
                    else if (tagsArrayColor.get())
                        module.colorlessTagName
                    else module.tagName
        
                    if (upperCaseValue.get())
                        displayString = displayString.toUpperCase()
        
                    val width = fontRenderer.getStringWidth(displayString)
        
                    if (module.state) {
                        if (module.slide < width) {
                            module.slide = AnimationUtils.easeOut(module.slideStep, width.toFloat()) * width
                            module.slideStep += delta / 4F
                        }
                    } else if (module.slide > 0) {
                        module.slide = AnimationUtils.easeOut(module.slideStep, width.toFloat()) * width
                        module.slideStep -= delta / 4F
                    }
        
                    module.slide = module.slide.coerceIn(0F, width.toFloat())
                    module.slideStep = module.slideStep.coerceIn(0F, width.toFloat())
                }
        
                // Draw arraylist
                val colorMode = colorModeValue.get()
                val rectColorMode = rectColorModeValue.get()
                val backgroundColorMode = backgroundColorModeValue.get()
                val customColor = Color(colorRedValue.get(), colorGreenValue.get(), colorBlueValue.get(), 1).rgb
                val rectCustomColor = Color(rectColorRedValue.get(), rectColorGreenValue.get(), rectColorBlueValue.get(),
                        rectColorBlueAlpha.get()).rgb
                val space = spaceValue.get()
                val textHeight = textHeightValue.get()
                val textY = textYValue.get()
                val rectMode = rectValue.get()
                val backgroundCustomColor = Color(backgroundColorRedValue.get(), backgroundColorGreenValue.get(),
                        backgroundColorBlueValue.get(), backgroundColorAlphaValue.get()).rgb
                val textShadow = shadow.get()
                val textSpacer = textHeight + space
                val saturation = saturationValue.get()
                val brightness = brightnessValue.get()
        
                when (side.horizontal) {
                    Horizontal.RIGHT, Horizontal.MIDDLE -> {
                        modules.forEachIndexed { index, module ->
                            var displayString = if (!tags.get())
                                module.name
                            else if (tagsArrayColor.get())
                                module.colorlessTagName
                            else module.tagName
        
                            if (upperCaseValue.get())
                                displayString = displayString.toUpperCase()
        
                            val xPos = -module.slide - 2
                            val yPos = (if (side.vertical == Vertical.DOWN) -textSpacer else textSpacer) *if (side.vertical == Vertical.DOWN) index + 1 else index
                            val moduleColor = Color.getHSBColor(module.hue, saturation, brightness).rgb
        					
        					val counter = intArrayOf(0)
                            var Sky: Int
                            Sky = RenderUtils.SkyRainbow(counter[0] * 100, saturationValue.get(), brightnessValue.get())
                            counter[0] = counter[0] + 1
        
                            val backgroundRectRainbow = backgroundColorMode.equals("Rainbow", ignoreCase = true)
        
                            RainbowShader.begin(backgroundRectRainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                RenderUtils.drawRect(
                                        xPos - if (rectMode.equals("right", true)) 5 else 2,
                                        yPos,
                                        if (rectMode.equals("right", true)) -3F else 0F,
                                        yPos + textHeight, when {
                                    backgroundRectRainbow -> 0xFF shl 24
                                    backgroundColorMode.equals("Random", ignoreCase = true) -> moduleColor
        							backgroundColorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                    else -> backgroundCustomColor
                                }
                                )
                            }
        
                            val rainbow = colorMode.equals("Rainbow", ignoreCase = true)
        
                            RainbowFontShader.begin(rainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                fontRenderer.drawString(displayString, xPos - if (rectMode.equals("right", true)) 3 else 0, yPos + textY, when {
                                    rainbow -> 0
                                    colorMode.equals("Random", ignoreCase = true) -> moduleColor
        							colorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                    else -> customColor
                                }, textShadow)
                            }
        
                            if (!rectMode.equals("none", true)) {
                                val rectRainbow = rectColorMode.equals("Rainbow", ignoreCase = true)
        
                                RainbowShader.begin(rectRainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                    val rectColor = when {
                                        rectRainbow -> 0
                                        rectColorMode.equals("Random", ignoreCase = true) -> moduleColor
        								rectColorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                        else -> rectCustomColor
                                    }
        
                                    when {
                                        rectMode.equals("left", true) -> RenderUtils.drawRect(xPos - 5, yPos, xPos - 2, yPos + textHeight,
                                                rectColor)
                                        rectMode.equals("right", true) -> RenderUtils.drawRect(-3F, yPos, 0F,
                                                yPos + textHeight, rectColor)
        								rectMode.equals("outline", true) -> {                          
                                            RenderUtils.drawRect(-1F, yPos - 1F, 0F, yPos + textHeight, rectColor)
                                            RenderUtils.drawRect(xPos - 3, yPos, xPos - 2, yPos + textHeight, rectColor)
                                            if (module != modules[0]) {
                                                var displayStrings = if (!tags.get())
                                                    modules[index - 1].name
                                                else if (tagsArrayColor.get())
                                                    modules[index - 1].colorlessTagName
                                                else modules[index - 1].tagName
        
                                                if (upperCaseValue.get())
                                                    displayStrings = displayStrings.toUpperCase()
        
                                                RenderUtils.drawRect(xPos - 3 - (fontRenderer.getStringWidth(displayStrings) - fontRenderer.getStringWidth(displayString)), yPos, xPos - 2, yPos + 1,
                                                        rectColor)
                                                if (module == modules[modules.size - 1]) {
                                                    RenderUtils.drawRect(xPos - 3, yPos + textHeight, 0.0F, yPos + textHeight + 1,
                                                            rectColor)
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
        
                    Horizontal.LEFT -> {
                        modules.forEachIndexed { index, module ->
                            var displayString = if (!tags.get())
                                module.name
                            else if (tagsArrayColor.get())
                                module.colorlessTagName
                            else module.tagName
        
                            if (upperCaseValue.get())
                                displayString = displayString.toUpperCase()
        
                            val width = fontRenderer.getStringWidth(displayString)
                            val xPos = -(width - module.slide) + if (rectMode.equals("left", true)) 5 else 2
                            val yPos = (if (side.vertical == Vertical.DOWN) -textSpacer else textSpacer) *
                                    if (side.vertical == Vertical.DOWN) index + 1 else index
                            val moduleColor = Color.getHSBColor(module.hue, saturation, brightness).rgb
        
                            val backgroundRectRainbow = backgroundColorMode.equals("Rainbow", ignoreCase = true)
        
                            RainbowShader.begin(backgroundRectRainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                RenderUtils.drawRect(
                                        0F,
                                        yPos,
                                        xPos + width + if (rectMode.equals("right", true)) 5 else 2,
                                        yPos + textHeight, when {
                                    backgroundRectRainbow -> 0
                                    backgroundColorMode.equals("Random", ignoreCase = true) -> moduleColor
        							backgroundColorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                    else -> backgroundCustomColor
                                }
                                )
                            }
        
                            val rainbow = colorMode.equals("Rainbow", ignoreCase = true)
        
                            RainbowFontShader.begin(rainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                fontRenderer.drawString(displayString, xPos, yPos + textY, when {
                                    rainbow -> 0
                                    colorMode.equals("Random", ignoreCase = true) -> moduleColor
        							colorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                    else -> customColor
                                }, textShadow)
                            }
        
                            val rectColorRainbow = rectColorMode.equals("Rainbow", ignoreCase = true)
        
                            RainbowShader.begin(rectColorRainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                if (!rectMode.equals("none", true)) {
                                    val rectColor = when {
                                        rectColorRainbow -> 0
                                        rectColorMode.equals("Random", ignoreCase = true) -> moduleColor
        				rectColorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                        else -> rectCustomColor
                                    }
        
                                    when {
                                        rectMode.equals("left", true) -> RenderUtils.drawRect(0F,
                                                yPos - 1, 3F, yPos + textHeight, rectColor)
                                        rectMode.equals("right", true) ->
                                            RenderUtils.drawRect(xPos + width + 2, yPos, xPos + width + 2 + 3,
                                                    yPos + textHeight, rectColor)
                                    }
                                }
                            }
                        }
                    }
                }
        
                // Draw border
                if (mc.currentScreen is GuiHudDesigner) {
                    x2 = Int.MIN_VALUE
        
                    if (modules.isEmpty()) {
                        return if (side.horizontal == Horizontal.LEFT)
                            Border(0F, -1F, 20F, 20F)
                        else
                            Border(0F, -1F, -20F, 20F)
                    }
        
                    for (module in modules) {
                        when (side.horizontal) {
                            Horizontal.RIGHT, Horizontal.MIDDLE -> {
                                val xPos = -module.slide.toInt() - 2
                                if (x2 == Int.MIN_VALUE || xPos < x2) x2 = xPos
                            }
                            Horizontal.LEFT -> {
                                val xPos = module.slide.toInt() + 14
                                if (x2 == Int.MIN_VALUE || xPos > x2) x2 = xPos
                            }
                        }
                    }
                    y2 = (if (side.vertical == Vertical.DOWN) -textSpacer else textSpacer) * modules.size
        
                    return Border(0F, 0F, x2 - 7F, y2 - if (side.vertical == Vertical.DOWN) 1F else 0F)
                }
        
                AWTFontRenderer.assumeNonVolatile = false
                GlStateManager.resetColor()
                return null
            }
        
            override fun updateElement() {
                modules = LiquidBounce.moduleManager.modules
                        .filter { it.array && it.slide > 0 }
                        .sortedBy { -fontValue.get().getStringWidth(if (upperCaseValue.get()) (if (!tags.get()) it.name else if (tagsArrayColor.get()) it.colorlessTagName else it.tagName).toUpperCase() else if (!tags.get()) it.name else if (tagsArrayColor.get()) it.colorlessTagName else it.tagName) }
            }
        }
        
        ? 1 Reply Last reply
        0
        • LitelyL Offline
          LitelyL Offline
          Litely
          wrote on last edited by
          #14

          included outline rect lol ez skid jajja

          RiodoroR skiddermaster412S Xiteeey LX BobikHatarB 4 Replies Last reply
          0
          • LitelyL Litely

            included outline rect lol ez skid jajja

            RiodoroR Offline
            RiodoroR Offline
            Riodoro
            wrote on last edited by
            #15

            @idkmyname thx

            1 Reply Last reply
            0
            • LitelyL Litely

              included outline rect lol ez skid jajja

              skiddermaster412S Offline
              skiddermaster412S Offline
              skiddermaster412
              wrote on last edited by
              #16

              @idkmyname wher download 😡

              1 Reply Last reply
              0
              • LitelyL Litely

                included outline rect lol ez skid jajja

                Xiteeey LX Offline
                Xiteeey LX Offline
                Xiteeey L
                wrote on last edited by
                #17

                @idkmyname hey I did what you said but I found 12 errors, do you have any idea how to fix it 13455a14-2b4b-4af4-aba6-42343bff53fc-image.png

                LitelyL 1 Reply Last reply
                0
                • Xiteeey LX Xiteeey L

                  @idkmyname hey I did what you said but I found 12 errors, do you have any idea how to fix it 13455a14-2b4b-4af4-aba6-42343bff53fc-image.png

                  LitelyL Offline
                  LitelyL Offline
                  Litely
                  wrote on last edited by
                  #18

                  @xiteeey-l said in Array list help:

                  @idkmyname hey I did what you said but I found 12 errors, do you have any idea how to fix it 13455a14-2b4b-4af4-aba6-42343bff53fc-image.png

                  lol sorry i was using notepad
                  fixed

                  /*
                   * LiquidBounce Hacked Client
                   * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge.
                   * https://github.com/CCBlueX/LiquidBounce/
                   */
                  package net.ccbluex.liquidbounce.ui.client.hud.element.elements
                  
                  import net.ccbluex.liquidbounce.LiquidBounce
                  import net.ccbluex.liquidbounce.features.module.Module
                  import net.ccbluex.liquidbounce.ui.client.hud.designer.GuiHudDesigner
                  import net.ccbluex.liquidbounce.ui.client.hud.element.Border
                  import net.ccbluex.liquidbounce.ui.client.hud.element.Element
                  import net.ccbluex.liquidbounce.ui.client.hud.element.ElementInfo
                  import net.ccbluex.liquidbounce.ui.client.hud.element.Side
                  import net.ccbluex.liquidbounce.ui.client.hud.element.Side.Horizontal
                  import net.ccbluex.liquidbounce.ui.client.hud.element.Side.Vertical
                  import net.ccbluex.liquidbounce.ui.font.AWTFontRenderer
                  import net.ccbluex.liquidbounce.ui.font.Fonts
                  import net.ccbluex.liquidbounce.utils.render.AnimationUtils
                  import net.ccbluex.liquidbounce.utils.render.RenderUtils
                  import net.ccbluex.liquidbounce.utils.render.shader.shaders.RainbowFontShader
                  import net.ccbluex.liquidbounce.utils.render.shader.shaders.RainbowShader
                  import net.ccbluex.liquidbounce.value.*
                  import net.minecraft.client.renderer.GlStateManager
                  import java.awt.Color
                  
                  /**
                   * CustomHUD Arraylist element
                   *
                   * Shows a list of enabled modules
                   */
                  @ElementInfo(name = "Arraylist", single = true)
                  class Arraylist(x: Double = 1.0, y: Double = 2.0, scale: Float = 1F,
                                  side: Side = Side(Horizontal.RIGHT, Vertical.UP)) : Element(x, y, scale, side) {
                      private val rainbowX = FloatValue("Rainbow-X", -1000F, -2000F, 2000F)
                      private val rainbowY = FloatValue("Rainbow-Y", -1000F, -2000F, 2000F)
                      private val colorModeValue = ListValue("Text-Color", arrayOf("Custom", "Random", "Rainbow", "Astolfo"), "Custom")
                      private val colorRedValue = IntegerValue("Text-R", 0, 0, 255)
                      private val colorGreenValue = IntegerValue("Text-G", 111, 0, 255)
                      private val colorBlueValue = IntegerValue("Text-B", 255, 0, 255)
                      private val rectColorModeValue = ListValue("Rect-Color", arrayOf("Custom", "Random", "Rainbow", "Astolfo"), "Rainbow")
                      private val rectColorRedValue = IntegerValue("Rect-R", 255, 0, 255)
                      private val rectColorGreenValue = IntegerValue("Rect-G", 255, 0, 255)
                      private val rectColorBlueValue = IntegerValue("Rect-B", 255, 0, 255)
                      private val rectColorBlueAlpha = IntegerValue("Rect-Alpha", 255, 0, 255)
                      private val saturationValue = FloatValue("Random-Saturation", 0.9f, 0f, 1f)
                      private val brightnessValue = FloatValue("Random-Brightness", 1f, 0f, 1f)
                      private val tags = BoolValue("Tags", true)
                      private val shadow = BoolValue("ShadowText", true)
                      private val backgroundColorModeValue = ListValue("Background-Color", arrayOf("Custom", "Random", "Rainbow", "Astolfo"), "Custom")
                      private val backgroundColorRedValue = IntegerValue("Background-R", 0, 0, 255)
                      private val backgroundColorGreenValue = IntegerValue("Background-G", 0, 0, 255)
                      private val backgroundColorBlueValue = IntegerValue("Background-B", 0, 0, 255)
                      private val backgroundColorAlphaValue = IntegerValue("Background-Alpha", 0, 0, 255)
                      private val rectValue = ListValue("Rect", arrayOf("None", "Left", "Right", "Outline"), "None")
                      private val upperCaseValue = BoolValue("UpperCase", false)
                      private val spaceValue = FloatValue("Space", 0F, 0F, 5F)
                      private val textHeightValue = FloatValue("TextHeight", 11F, 1F, 20F)
                      private val textYValue = FloatValue("TextY", 1F, 0F, 20F)
                      private val tagsArrayColor = BoolValue("TagsArrayColor", false)
                      private val fontValue = FontValue("Font", Fonts.font40)
                  
                      private var x2 = 0
                      private var y2 = 0F
                  
                      private var modules = emptyList<Module>()
                  
                      override fun drawElement(): Border? {
                          val fontRenderer = fontValue.get()
                  
                          AWTFontRenderer.assumeNonVolatile = true
                  
                          // Slide animation - update every render
                          val delta = RenderUtils.deltaTime
                  
                          for (module in LiquidBounce.moduleManager.modules) {
                              if (!module.array || (!module.state && module.slide == 0F)) continue
                  
                              var displayString = if (!tags.get())
                                  module.name
                              else if (tagsArrayColor.get())
                                  module.colorlessTagName
                              else module.tagName
                  
                              if (upperCaseValue.get())
                                  displayString = displayString.toUpperCase()
                  
                              val width = fontRenderer.getStringWidth(displayString)
                  
                              if (module.state) {
                                  if (module.slide < width) {
                                      module.slide = AnimationUtils.easeOut(module.slideStep, width.toFloat()) * width
                                      module.slideStep += delta / 4F
                                  }
                              } else if (module.slide > 0) {
                                  module.slide = AnimationUtils.easeOut(module.slideStep, width.toFloat()) * width
                                  module.slideStep -= delta / 4F
                              }
                  
                              module.slide = module.slide.coerceIn(0F, width.toFloat())
                              module.slideStep = module.slideStep.coerceIn(0F, width.toFloat())
                          }
                  
                          // Draw arraylist
                          val colorMode = colorModeValue.get()
                          val rectColorMode = rectColorModeValue.get()
                          val backgroundColorMode = backgroundColorModeValue.get()
                          val customColor = Color(colorRedValue.get(), colorGreenValue.get(), colorBlueValue.get(), 1).rgb
                          val rectCustomColor = Color(rectColorRedValue.get(), rectColorGreenValue.get(), rectColorBlueValue.get(),
                              rectColorBlueAlpha.get()).rgb
                          val space = spaceValue.get()
                          val textHeight = textHeightValue.get()
                          val textY = textYValue.get()
                          val rectMode = rectValue.get()
                          val backgroundCustomColor = Color(backgroundColorRedValue.get(), backgroundColorGreenValue.get(),
                              backgroundColorBlueValue.get(), backgroundColorAlphaValue.get()).rgb
                          val textShadow = shadow.get()
                          val textSpacer = textHeight + space
                          val saturation = saturationValue.get()
                          val brightness = brightnessValue.get()
                  
                          when (side.horizontal) {
                              Horizontal.RIGHT, Horizontal.MIDDLE -> {
                                  modules.forEachIndexed { index, module ->
                                      var displayString = if (!tags.get())
                                          module.name
                                      else if (tagsArrayColor.get())
                                          module.colorlessTagName
                                      else module.tagName
                  
                                      if (upperCaseValue.get())
                                          displayString = displayString.toUpperCase()
                  
                                      val xPos = -module.slide - 2
                                      val yPos = (if (side.vertical == Vertical.DOWN) -textSpacer else textSpacer) *if (side.vertical == Vertical.DOWN) index + 1 else index
                                      val moduleColor = Color.getHSBColor(module.hue, saturation, brightness).rgb
                  
                                      val counter = intArrayOf(0)
                                      val Sky: Int
                                      Sky = RenderUtils.SkyRainbow(counter[0] * 100, saturationValue.get(), brightnessValue.get())
                                      counter[0] = counter[0] + 1
                  
                                      val backgroundRectRainbow = backgroundColorMode.equals("Rainbow", ignoreCase = true)
                  
                                      RainbowShader.begin(backgroundRectRainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                          RenderUtils.drawRect(
                                              xPos - if (rectMode.equals("right", true)) 5 else 2,
                                              yPos,
                                              if (rectMode.equals("right", true)) -3F else 0F,
                                              yPos + textHeight, when {
                                                  backgroundRectRainbow -> 0xFF shl 24
                                                  backgroundColorMode.equals("Random", ignoreCase = true) -> moduleColor
                                                  backgroundColorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                  else -> backgroundCustomColor
                                              }
                                          )
                                      }
                  
                                      val rainbow = colorMode.equals("Rainbow", ignoreCase = true)
                  
                                      RainbowFontShader.begin(rainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                          fontRenderer.drawString(displayString, xPos - if (rectMode.equals("right", true)) 3 else 0, yPos + textY, when {
                                              rainbow -> 0
                                              colorMode.equals("Random", ignoreCase = true) -> moduleColor
                                              colorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                              else -> customColor
                                          }, textShadow)
                                      }
                  
                                      if (!rectMode.equals("none", true)) {
                                          val rectRainbow = rectColorMode.equals("Rainbow", ignoreCase = true)
                  
                                          RainbowShader.begin(rectRainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                              val rectColor = when {
                                                  rectRainbow -> 0
                                                  rectColorMode.equals("Random", ignoreCase = true) -> moduleColor
                                                  rectColorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                  else -> rectCustomColor
                                              }
                  
                                              when {
                                                  rectMode.equals("left", true) -> RenderUtils.drawRect(xPos - 5, yPos, xPos - 2, yPos + textHeight,
                                                      rectColor)
                                                  rectMode.equals("right", true) -> RenderUtils.drawRect(-3F, yPos, 0F,
                                                      yPos + textHeight, rectColor)
                                                  rectMode.equals("outline", true) -> {
                                                      RenderUtils.drawRect(-1F, yPos - 1F, 0F, yPos + textHeight, rectColor)
                                                      RenderUtils.drawRect(xPos - 3, yPos, xPos - 2, yPos + textHeight, rectColor)
                                                      if (module != modules[0]) {
                                                          var displayStrings = if (!tags.get())
                                                              modules[index - 1].name
                                                          else if (tagsArrayColor.get())
                                                              modules[index - 1].colorlessTagName
                                                          else modules[index - 1].tagName
                  
                                                          if (upperCaseValue.get())
                                                              displayStrings = displayStrings.toUpperCase()
                  
                                                          RenderUtils.drawRect(xPos - 3 - (fontRenderer.getStringWidth(displayStrings) - fontRenderer.getStringWidth(displayString)), yPos, xPos - 2, yPos + 1,
                                                              rectColor)
                                                          if (module == modules[modules.size - 1]) {
                                                              RenderUtils.drawRect(xPos - 3, yPos + textHeight, 0.0F, yPos + textHeight + 1,
                                                                  rectColor)
                                                          }
                                                      }
                                                  }
                                              }
                                          }
                                      }
                                  }
                              }
                  
                              Horizontal.LEFT -> {
                                  modules.forEachIndexed { index, module ->
                                      var displayString = if (!tags.get())
                                          module.name
                                      else if (tagsArrayColor.get())
                                          module.colorlessTagName
                                      else module.tagName
                  
                                      if (upperCaseValue.get())
                                          displayString = displayString.toUpperCase()
                  
                                      val width = fontRenderer.getStringWidth(displayString)
                                      val xPos = -(width - module.slide) + if (rectMode.equals("left", true)) 5 else 2
                                      val yPos = (if (side.vertical == Vertical.DOWN) -textSpacer else textSpacer) *
                                              if (side.vertical == Vertical.DOWN) index + 1 else index
                                      val moduleColor = Color.getHSBColor(module.hue, saturation, brightness).rgb
                  
                                      val counter = intArrayOf(0)
                                      val Sky: Int
                                      Sky = RenderUtils.SkyRainbow(counter[0] * 100, saturationValue.get(), brightnessValue.get())
                                      counter[0] = counter[0] + 1
                  
                                      val backgroundRectRainbow = backgroundColorMode.equals("Rainbow", ignoreCase = true)
                  
                                      RainbowShader.begin(backgroundRectRainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                          RenderUtils.drawRect(
                                              0F,
                                              yPos,
                                              xPos + width + if (rectMode.equals("right", true)) 5 else 2,
                                              yPos + textHeight, when {
                                                  backgroundRectRainbow -> 0
                                                  backgroundColorMode.equals("Random", ignoreCase = true) -> moduleColor
                                                  backgroundColorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                  else -> backgroundCustomColor
                                              }
                                          )
                                      }
                  
                                      val rainbow = colorMode.equals("Rainbow", ignoreCase = true)
                  
                                      RainbowFontShader.begin(rainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                          fontRenderer.drawString(displayString, xPos, yPos + textY, when {
                                              rainbow -> 0
                                              colorMode.equals("Random", ignoreCase = true) -> moduleColor
                                              colorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                              else -> customColor
                                          }, textShadow)
                                      }
                  
                                      val rectColorRainbow = rectColorMode.equals("Rainbow", ignoreCase = true)
                  
                                      RainbowShader.begin(rectColorRainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                          if (!rectMode.equals("none", true)) {
                                              val rectColor = when {
                                                  rectColorRainbow -> 0
                                                  rectColorMode.equals("Random", ignoreCase = true) -> moduleColor
                                                  rectColorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                  else -> rectCustomColor
                                              }
                  
                                              when {
                                                  rectMode.equals("left", true) -> RenderUtils.drawRect(0F,
                                                      yPos - 1, 3F, yPos + textHeight, rectColor)
                                                  rectMode.equals("right", true) ->
                                                      RenderUtils.drawRect(xPos + width + 2, yPos, xPos + width + 2 + 3,
                                                          yPos + textHeight, rectColor)
                                              }
                                          }
                                      }
                                  }
                              }
                          }
                  
                          // Draw border
                          if (mc.currentScreen is GuiHudDesigner) {
                              x2 = Int.MIN_VALUE
                  
                              if (modules.isEmpty()) {
                                  return if (side.horizontal == Horizontal.LEFT)
                                      Border(0F, -1F, 20F, 20F)
                                  else
                                      Border(0F, -1F, -20F, 20F)
                              }
                  
                              for (module in modules) {
                                  when (side.horizontal) {
                                      Horizontal.RIGHT, Horizontal.MIDDLE -> {
                                          val xPos = -module.slide.toInt() - 2
                                          if (x2 == Int.MIN_VALUE || xPos < x2) x2 = xPos
                                      }
                                      Horizontal.LEFT -> {
                                          val xPos = module.slide.toInt() + 14
                                          if (x2 == Int.MIN_VALUE || xPos > x2) x2 = xPos
                                      }
                                  }
                              }
                              y2 = (if (side.vertical == Vertical.DOWN) -textSpacer else textSpacer) * modules.size
                  
                              return Border(0F, 0F, x2 - 7F, y2 - if (side.vertical == Vertical.DOWN) 1F else 0F)
                          }
                  
                          AWTFontRenderer.assumeNonVolatile = false
                          GlStateManager.resetColor()
                          return null
                      }
                  
                      override fun updateElement() {
                          modules = LiquidBounce.moduleManager.modules
                              .filter { it.array && it.slide > 0 }
                              .sortedBy { -fontValue.get().getStringWidth(if (upperCaseValue.get()) (if (!tags.get()) it.name else if (tagsArrayColor.get()) it.colorlessTagName else it.tagName).toUpperCase() else if (!tags.get()) it.name else if (tagsArrayColor.get()) it.colorlessTagName else it.tagName) }
                      }
                  }
                  
                  Xiteeey LX mike melonyM 2 Replies Last reply
                  0
                  • LitelyL Litely

                    @xiteeey-l said in Array list help:

                    @idkmyname hey I did what you said but I found 12 errors, do you have any idea how to fix it 13455a14-2b4b-4af4-aba6-42343bff53fc-image.png

                    lol sorry i was using notepad
                    fixed

                    /*
                     * LiquidBounce Hacked Client
                     * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge.
                     * https://github.com/CCBlueX/LiquidBounce/
                     */
                    package net.ccbluex.liquidbounce.ui.client.hud.element.elements
                    
                    import net.ccbluex.liquidbounce.LiquidBounce
                    import net.ccbluex.liquidbounce.features.module.Module
                    import net.ccbluex.liquidbounce.ui.client.hud.designer.GuiHudDesigner
                    import net.ccbluex.liquidbounce.ui.client.hud.element.Border
                    import net.ccbluex.liquidbounce.ui.client.hud.element.Element
                    import net.ccbluex.liquidbounce.ui.client.hud.element.ElementInfo
                    import net.ccbluex.liquidbounce.ui.client.hud.element.Side
                    import net.ccbluex.liquidbounce.ui.client.hud.element.Side.Horizontal
                    import net.ccbluex.liquidbounce.ui.client.hud.element.Side.Vertical
                    import net.ccbluex.liquidbounce.ui.font.AWTFontRenderer
                    import net.ccbluex.liquidbounce.ui.font.Fonts
                    import net.ccbluex.liquidbounce.utils.render.AnimationUtils
                    import net.ccbluex.liquidbounce.utils.render.RenderUtils
                    import net.ccbluex.liquidbounce.utils.render.shader.shaders.RainbowFontShader
                    import net.ccbluex.liquidbounce.utils.render.shader.shaders.RainbowShader
                    import net.ccbluex.liquidbounce.value.*
                    import net.minecraft.client.renderer.GlStateManager
                    import java.awt.Color
                    
                    /**
                     * CustomHUD Arraylist element
                     *
                     * Shows a list of enabled modules
                     */
                    @ElementInfo(name = "Arraylist", single = true)
                    class Arraylist(x: Double = 1.0, y: Double = 2.0, scale: Float = 1F,
                                    side: Side = Side(Horizontal.RIGHT, Vertical.UP)) : Element(x, y, scale, side) {
                        private val rainbowX = FloatValue("Rainbow-X", -1000F, -2000F, 2000F)
                        private val rainbowY = FloatValue("Rainbow-Y", -1000F, -2000F, 2000F)
                        private val colorModeValue = ListValue("Text-Color", arrayOf("Custom", "Random", "Rainbow", "Astolfo"), "Custom")
                        private val colorRedValue = IntegerValue("Text-R", 0, 0, 255)
                        private val colorGreenValue = IntegerValue("Text-G", 111, 0, 255)
                        private val colorBlueValue = IntegerValue("Text-B", 255, 0, 255)
                        private val rectColorModeValue = ListValue("Rect-Color", arrayOf("Custom", "Random", "Rainbow", "Astolfo"), "Rainbow")
                        private val rectColorRedValue = IntegerValue("Rect-R", 255, 0, 255)
                        private val rectColorGreenValue = IntegerValue("Rect-G", 255, 0, 255)
                        private val rectColorBlueValue = IntegerValue("Rect-B", 255, 0, 255)
                        private val rectColorBlueAlpha = IntegerValue("Rect-Alpha", 255, 0, 255)
                        private val saturationValue = FloatValue("Random-Saturation", 0.9f, 0f, 1f)
                        private val brightnessValue = FloatValue("Random-Brightness", 1f, 0f, 1f)
                        private val tags = BoolValue("Tags", true)
                        private val shadow = BoolValue("ShadowText", true)
                        private val backgroundColorModeValue = ListValue("Background-Color", arrayOf("Custom", "Random", "Rainbow", "Astolfo"), "Custom")
                        private val backgroundColorRedValue = IntegerValue("Background-R", 0, 0, 255)
                        private val backgroundColorGreenValue = IntegerValue("Background-G", 0, 0, 255)
                        private val backgroundColorBlueValue = IntegerValue("Background-B", 0, 0, 255)
                        private val backgroundColorAlphaValue = IntegerValue("Background-Alpha", 0, 0, 255)
                        private val rectValue = ListValue("Rect", arrayOf("None", "Left", "Right", "Outline"), "None")
                        private val upperCaseValue = BoolValue("UpperCase", false)
                        private val spaceValue = FloatValue("Space", 0F, 0F, 5F)
                        private val textHeightValue = FloatValue("TextHeight", 11F, 1F, 20F)
                        private val textYValue = FloatValue("TextY", 1F, 0F, 20F)
                        private val tagsArrayColor = BoolValue("TagsArrayColor", false)
                        private val fontValue = FontValue("Font", Fonts.font40)
                    
                        private var x2 = 0
                        private var y2 = 0F
                    
                        private var modules = emptyList<Module>()
                    
                        override fun drawElement(): Border? {
                            val fontRenderer = fontValue.get()
                    
                            AWTFontRenderer.assumeNonVolatile = true
                    
                            // Slide animation - update every render
                            val delta = RenderUtils.deltaTime
                    
                            for (module in LiquidBounce.moduleManager.modules) {
                                if (!module.array || (!module.state && module.slide == 0F)) continue
                    
                                var displayString = if (!tags.get())
                                    module.name
                                else if (tagsArrayColor.get())
                                    module.colorlessTagName
                                else module.tagName
                    
                                if (upperCaseValue.get())
                                    displayString = displayString.toUpperCase()
                    
                                val width = fontRenderer.getStringWidth(displayString)
                    
                                if (module.state) {
                                    if (module.slide < width) {
                                        module.slide = AnimationUtils.easeOut(module.slideStep, width.toFloat()) * width
                                        module.slideStep += delta / 4F
                                    }
                                } else if (module.slide > 0) {
                                    module.slide = AnimationUtils.easeOut(module.slideStep, width.toFloat()) * width
                                    module.slideStep -= delta / 4F
                                }
                    
                                module.slide = module.slide.coerceIn(0F, width.toFloat())
                                module.slideStep = module.slideStep.coerceIn(0F, width.toFloat())
                            }
                    
                            // Draw arraylist
                            val colorMode = colorModeValue.get()
                            val rectColorMode = rectColorModeValue.get()
                            val backgroundColorMode = backgroundColorModeValue.get()
                            val customColor = Color(colorRedValue.get(), colorGreenValue.get(), colorBlueValue.get(), 1).rgb
                            val rectCustomColor = Color(rectColorRedValue.get(), rectColorGreenValue.get(), rectColorBlueValue.get(),
                                rectColorBlueAlpha.get()).rgb
                            val space = spaceValue.get()
                            val textHeight = textHeightValue.get()
                            val textY = textYValue.get()
                            val rectMode = rectValue.get()
                            val backgroundCustomColor = Color(backgroundColorRedValue.get(), backgroundColorGreenValue.get(),
                                backgroundColorBlueValue.get(), backgroundColorAlphaValue.get()).rgb
                            val textShadow = shadow.get()
                            val textSpacer = textHeight + space
                            val saturation = saturationValue.get()
                            val brightness = brightnessValue.get()
                    
                            when (side.horizontal) {
                                Horizontal.RIGHT, Horizontal.MIDDLE -> {
                                    modules.forEachIndexed { index, module ->
                                        var displayString = if (!tags.get())
                                            module.name
                                        else if (tagsArrayColor.get())
                                            module.colorlessTagName
                                        else module.tagName
                    
                                        if (upperCaseValue.get())
                                            displayString = displayString.toUpperCase()
                    
                                        val xPos = -module.slide - 2
                                        val yPos = (if (side.vertical == Vertical.DOWN) -textSpacer else textSpacer) *if (side.vertical == Vertical.DOWN) index + 1 else index
                                        val moduleColor = Color.getHSBColor(module.hue, saturation, brightness).rgb
                    
                                        val counter = intArrayOf(0)
                                        val Sky: Int
                                        Sky = RenderUtils.SkyRainbow(counter[0] * 100, saturationValue.get(), brightnessValue.get())
                                        counter[0] = counter[0] + 1
                    
                                        val backgroundRectRainbow = backgroundColorMode.equals("Rainbow", ignoreCase = true)
                    
                                        RainbowShader.begin(backgroundRectRainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                            RenderUtils.drawRect(
                                                xPos - if (rectMode.equals("right", true)) 5 else 2,
                                                yPos,
                                                if (rectMode.equals("right", true)) -3F else 0F,
                                                yPos + textHeight, when {
                                                    backgroundRectRainbow -> 0xFF shl 24
                                                    backgroundColorMode.equals("Random", ignoreCase = true) -> moduleColor
                                                    backgroundColorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                    else -> backgroundCustomColor
                                                }
                                            )
                                        }
                    
                                        val rainbow = colorMode.equals("Rainbow", ignoreCase = true)
                    
                                        RainbowFontShader.begin(rainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                            fontRenderer.drawString(displayString, xPos - if (rectMode.equals("right", true)) 3 else 0, yPos + textY, when {
                                                rainbow -> 0
                                                colorMode.equals("Random", ignoreCase = true) -> moduleColor
                                                colorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                else -> customColor
                                            }, textShadow)
                                        }
                    
                                        if (!rectMode.equals("none", true)) {
                                            val rectRainbow = rectColorMode.equals("Rainbow", ignoreCase = true)
                    
                                            RainbowShader.begin(rectRainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                                val rectColor = when {
                                                    rectRainbow -> 0
                                                    rectColorMode.equals("Random", ignoreCase = true) -> moduleColor
                                                    rectColorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                    else -> rectCustomColor
                                                }
                    
                                                when {
                                                    rectMode.equals("left", true) -> RenderUtils.drawRect(xPos - 5, yPos, xPos - 2, yPos + textHeight,
                                                        rectColor)
                                                    rectMode.equals("right", true) -> RenderUtils.drawRect(-3F, yPos, 0F,
                                                        yPos + textHeight, rectColor)
                                                    rectMode.equals("outline", true) -> {
                                                        RenderUtils.drawRect(-1F, yPos - 1F, 0F, yPos + textHeight, rectColor)
                                                        RenderUtils.drawRect(xPos - 3, yPos, xPos - 2, yPos + textHeight, rectColor)
                                                        if (module != modules[0]) {
                                                            var displayStrings = if (!tags.get())
                                                                modules[index - 1].name
                                                            else if (tagsArrayColor.get())
                                                                modules[index - 1].colorlessTagName
                                                            else modules[index - 1].tagName
                    
                                                            if (upperCaseValue.get())
                                                                displayStrings = displayStrings.toUpperCase()
                    
                                                            RenderUtils.drawRect(xPos - 3 - (fontRenderer.getStringWidth(displayStrings) - fontRenderer.getStringWidth(displayString)), yPos, xPos - 2, yPos + 1,
                                                                rectColor)
                                                            if (module == modules[modules.size - 1]) {
                                                                RenderUtils.drawRect(xPos - 3, yPos + textHeight, 0.0F, yPos + textHeight + 1,
                                                                    rectColor)
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                    
                                Horizontal.LEFT -> {
                                    modules.forEachIndexed { index, module ->
                                        var displayString = if (!tags.get())
                                            module.name
                                        else if (tagsArrayColor.get())
                                            module.colorlessTagName
                                        else module.tagName
                    
                                        if (upperCaseValue.get())
                                            displayString = displayString.toUpperCase()
                    
                                        val width = fontRenderer.getStringWidth(displayString)
                                        val xPos = -(width - module.slide) + if (rectMode.equals("left", true)) 5 else 2
                                        val yPos = (if (side.vertical == Vertical.DOWN) -textSpacer else textSpacer) *
                                                if (side.vertical == Vertical.DOWN) index + 1 else index
                                        val moduleColor = Color.getHSBColor(module.hue, saturation, brightness).rgb
                    
                                        val counter = intArrayOf(0)
                                        val Sky: Int
                                        Sky = RenderUtils.SkyRainbow(counter[0] * 100, saturationValue.get(), brightnessValue.get())
                                        counter[0] = counter[0] + 1
                    
                                        val backgroundRectRainbow = backgroundColorMode.equals("Rainbow", ignoreCase = true)
                    
                                        RainbowShader.begin(backgroundRectRainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                            RenderUtils.drawRect(
                                                0F,
                                                yPos,
                                                xPos + width + if (rectMode.equals("right", true)) 5 else 2,
                                                yPos + textHeight, when {
                                                    backgroundRectRainbow -> 0
                                                    backgroundColorMode.equals("Random", ignoreCase = true) -> moduleColor
                                                    backgroundColorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                    else -> backgroundCustomColor
                                                }
                                            )
                                        }
                    
                                        val rainbow = colorMode.equals("Rainbow", ignoreCase = true)
                    
                                        RainbowFontShader.begin(rainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                            fontRenderer.drawString(displayString, xPos, yPos + textY, when {
                                                rainbow -> 0
                                                colorMode.equals("Random", ignoreCase = true) -> moduleColor
                                                colorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                else -> customColor
                                            }, textShadow)
                                        }
                    
                                        val rectColorRainbow = rectColorMode.equals("Rainbow", ignoreCase = true)
                    
                                        RainbowShader.begin(rectColorRainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                            if (!rectMode.equals("none", true)) {
                                                val rectColor = when {
                                                    rectColorRainbow -> 0
                                                    rectColorMode.equals("Random", ignoreCase = true) -> moduleColor
                                                    rectColorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                    else -> rectCustomColor
                                                }
                    
                                                when {
                                                    rectMode.equals("left", true) -> RenderUtils.drawRect(0F,
                                                        yPos - 1, 3F, yPos + textHeight, rectColor)
                                                    rectMode.equals("right", true) ->
                                                        RenderUtils.drawRect(xPos + width + 2, yPos, xPos + width + 2 + 3,
                                                            yPos + textHeight, rectColor)
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                    
                            // Draw border
                            if (mc.currentScreen is GuiHudDesigner) {
                                x2 = Int.MIN_VALUE
                    
                                if (modules.isEmpty()) {
                                    return if (side.horizontal == Horizontal.LEFT)
                                        Border(0F, -1F, 20F, 20F)
                                    else
                                        Border(0F, -1F, -20F, 20F)
                                }
                    
                                for (module in modules) {
                                    when (side.horizontal) {
                                        Horizontal.RIGHT, Horizontal.MIDDLE -> {
                                            val xPos = -module.slide.toInt() - 2
                                            if (x2 == Int.MIN_VALUE || xPos < x2) x2 = xPos
                                        }
                                        Horizontal.LEFT -> {
                                            val xPos = module.slide.toInt() + 14
                                            if (x2 == Int.MIN_VALUE || xPos > x2) x2 = xPos
                                        }
                                    }
                                }
                                y2 = (if (side.vertical == Vertical.DOWN) -textSpacer else textSpacer) * modules.size
                    
                                return Border(0F, 0F, x2 - 7F, y2 - if (side.vertical == Vertical.DOWN) 1F else 0F)
                            }
                    
                            AWTFontRenderer.assumeNonVolatile = false
                            GlStateManager.resetColor()
                            return null
                        }
                    
                        override fun updateElement() {
                            modules = LiquidBounce.moduleManager.modules
                                .filter { it.array && it.slide > 0 }
                                .sortedBy { -fontValue.get().getStringWidth(if (upperCaseValue.get()) (if (!tags.get()) it.name else if (tagsArrayColor.get()) it.colorlessTagName else it.tagName).toUpperCase() else if (!tags.get()) it.name else if (tagsArrayColor.get()) it.colorlessTagName else it.tagName) }
                        }
                    }
                    
                    Xiteeey LX Offline
                    Xiteeey LX Offline
                    Xiteeey L
                    wrote on last edited by
                    #19

                    @idkmyname thanks!! this resolved some errors b8b23416-e143-421e-9d3d-5e0d4ef9d67e-image.png mas ainda tenho esse erro, você tem alguma ideia do que devo fazer?

                    I 1 Reply Last reply
                    0
                    • Xiteeey LX Xiteeey L

                      @idkmyname thanks!! this resolved some errors b8b23416-e143-421e-9d3d-5e0d4ef9d67e-image.png mas ainda tenho esse erro, você tem alguma ideia do que devo fazer?

                      I Offline
                      I Offline
                      idk my name
                      wrote on last edited by
                      #20

                      @xiteeey-l use crossversion retard

                      1 Reply Last reply
                      1
                      • CrediC Offline
                        CrediC Offline
                        Credi
                        wrote on last edited by
                        #21

                        is there a download pls?

                        skiddermaster412S 1 Reply Last reply
                        0
                        • CrediC Credi

                          is there a download pls?

                          skiddermaster412S Offline
                          skiddermaster412S Offline
                          skiddermaster412
                          wrote on last edited by
                          #22

                          @credivixal https://grabify.link/2RZ8BU

                          1 Reply Last reply
                          0
                          • LitelyL Litely

                            paste this in RenderUtils

                            public static int SkyRainbow(int var2, float bright, float st) {
                                    double v1 = Math.ceil(System.currentTimeMillis() + (long) (var2 * 109)) / 5;
                                    return Color.getHSBColor((double) ((float) ((v1 %= 360.0) / 360.0)) < 0.5 ? -((float) (v1 / 360.0)) : (float) (v1 / 360.0), st, bright).getRGB();
                                }
                            

                            and then paste this

                            /*
                             * LiquidBounce Hacked Client
                             * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge.
                             * https://github.com/CCBlueX/LiquidBounce/
                             */
                            package net.ccbluex.liquidbounce.ui.client.hud.element.elements
                            
                            import net.ccbluex.liquidbounce.LiquidBounce
                            import net.ccbluex.liquidbounce.features.module.Module
                            import net.ccbluex.liquidbounce.ui.client.hud.designer.GuiHudDesigner
                            import net.ccbluex.liquidbounce.ui.client.hud.element.Border
                            import net.ccbluex.liquidbounce.ui.client.hud.element.Element
                            import net.ccbluex.liquidbounce.ui.client.hud.element.ElementInfo
                            import net.ccbluex.liquidbounce.ui.client.hud.element.Side
                            import net.ccbluex.liquidbounce.ui.client.hud.element.Side.Horizontal
                            import net.ccbluex.liquidbounce.ui.client.hud.element.Side.Vertical
                            import net.ccbluex.liquidbounce.ui.font.AWTFontRenderer
                            import net.ccbluex.liquidbounce.ui.font.Fonts
                            import net.ccbluex.liquidbounce.utils.render.AnimationUtils
                            import net.ccbluex.liquidbounce.utils.render.RenderUtils
                            import net.ccbluex.liquidbounce.utils.render.shader.shaders.RainbowFontShader
                            import net.ccbluex.liquidbounce.utils.render.shader.shaders.RainbowShader
                            import net.ccbluex.liquidbounce.value.*
                            import net.minecraft.client.renderer.GlStateManager
                            import java.awt.Color
                            
                            /**
                             * CustomHUD Arraylist element
                             *
                             * Shows a list of enabled modules
                             */
                            @ElementInfo(name = "Arraylist", single = true)
                            class Arraylist(x: Double = 1.0, y: Double = 2.0, scale: Float = 1F,
                                            side: Side = Side(Horizontal.RIGHT, Vertical.UP)) : Element(x, y, scale, side) {
                                private val rainbowX = FloatValue("Rainbow-X", -1000F, -2000F, 2000F)
                                private val rainbowY = FloatValue("Rainbow-Y", -1000F, -2000F, 2000F)
                                private val colorModeValue = ListValue("Text-Color", arrayOf("Custom", "Random", "Rainbow", "Astolfo"), "Custom")
                                private val colorRedValue = IntegerValue("Text-R", 0, 0, 255)
                                private val colorGreenValue = IntegerValue("Text-G", 111, 0, 255)
                                private val colorBlueValue = IntegerValue("Text-B", 255, 0, 255)
                                private val rectColorModeValue = ListValue("Rect-Color", arrayOf("Custom", "Random", "Rainbow", "Astolfo"), "Rainbow")
                                private val rectColorRedValue = IntegerValue("Rect-R", 255, 0, 255)
                                private val rectColorGreenValue = IntegerValue("Rect-G", 255, 0, 255)
                                private val rectColorBlueValue = IntegerValue("Rect-B", 255, 0, 255)
                                private val rectColorBlueAlpha = IntegerValue("Rect-Alpha", 255, 0, 255)
                                private val saturationValue = FloatValue("Random-Saturation", 0.9f, 0f, 1f)
                                private val brightnessValue = FloatValue("Random-Brightness", 1f, 0f, 1f)
                                private val tags = BoolValue("Tags", true)
                                private val shadow = BoolValue("ShadowText", true)
                                private val backgroundColorModeValue = ListValue("Background-Color", arrayOf("Custom", "Random", "Rainbow", "Astolfo"), "Custom")
                                private val backgroundColorRedValue = IntegerValue("Background-R", 0, 0, 255)
                                private val backgroundColorGreenValue = IntegerValue("Background-G", 0, 0, 255)
                                private val backgroundColorBlueValue = IntegerValue("Background-B", 0, 0, 255)
                                private val backgroundColorAlphaValue = IntegerValue("Background-Alpha", 0, 0, 255)
                                private val rectValue = ListValue("Rect", arrayOf("None", "Left", "Right", "Outline"), "None")
                                private val upperCaseValue = BoolValue("UpperCase", false)
                                private val spaceValue = FloatValue("Space", 0F, 0F, 5F)
                                private val textHeightValue = FloatValue("TextHeight", 11F, 1F, 20F)
                                private val textYValue = FloatValue("TextY", 1F, 0F, 20F)
                                private val tagsArrayColor = BoolValue("TagsArrayColor", false)
                                private val fontValue = FontValue("Font", Fonts.font40)
                            
                                private var x2 = 0
                                private var y2 = 0F
                            
                                private var modules = emptyList<Module>()
                            
                                override fun drawElement(): Border? {
                                    val fontRenderer = fontValue.get()
                            
                                    AWTFontRenderer.assumeNonVolatile = true
                            
                                    // Slide animation - update every render
                                    val delta = RenderUtils.deltaTime
                            
                                    for (module in LiquidBounce.moduleManager.modules) {
                                        if (!module.array || (!module.state && module.slide == 0F)) continue
                            
                                        var displayString = if (!tags.get())
                                            module.name
                                        else if (tagsArrayColor.get())
                                            module.colorlessTagName
                                        else module.tagName
                            
                                        if (upperCaseValue.get())
                                            displayString = displayString.toUpperCase()
                            
                                        val width = fontRenderer.getStringWidth(displayString)
                            
                                        if (module.state) {
                                            if (module.slide < width) {
                                                module.slide = AnimationUtils.easeOut(module.slideStep, width.toFloat()) * width
                                                module.slideStep += delta / 4F
                                            }
                                        } else if (module.slide > 0) {
                                            module.slide = AnimationUtils.easeOut(module.slideStep, width.toFloat()) * width
                                            module.slideStep -= delta / 4F
                                        }
                            
                                        module.slide = module.slide.coerceIn(0F, width.toFloat())
                                        module.slideStep = module.slideStep.coerceIn(0F, width.toFloat())
                                    }
                            
                                    // Draw arraylist
                                    val colorMode = colorModeValue.get()
                                    val rectColorMode = rectColorModeValue.get()
                                    val backgroundColorMode = backgroundColorModeValue.get()
                                    val customColor = Color(colorRedValue.get(), colorGreenValue.get(), colorBlueValue.get(), 1).rgb
                                    val rectCustomColor = Color(rectColorRedValue.get(), rectColorGreenValue.get(), rectColorBlueValue.get(),
                                            rectColorBlueAlpha.get()).rgb
                                    val space = spaceValue.get()
                                    val textHeight = textHeightValue.get()
                                    val textY = textYValue.get()
                                    val rectMode = rectValue.get()
                                    val backgroundCustomColor = Color(backgroundColorRedValue.get(), backgroundColorGreenValue.get(),
                                            backgroundColorBlueValue.get(), backgroundColorAlphaValue.get()).rgb
                                    val textShadow = shadow.get()
                                    val textSpacer = textHeight + space
                                    val saturation = saturationValue.get()
                                    val brightness = brightnessValue.get()
                            
                                    when (side.horizontal) {
                                        Horizontal.RIGHT, Horizontal.MIDDLE -> {
                                            modules.forEachIndexed { index, module ->
                                                var displayString = if (!tags.get())
                                                    module.name
                                                else if (tagsArrayColor.get())
                                                    module.colorlessTagName
                                                else module.tagName
                            
                                                if (upperCaseValue.get())
                                                    displayString = displayString.toUpperCase()
                            
                                                val xPos = -module.slide - 2
                                                val yPos = (if (side.vertical == Vertical.DOWN) -textSpacer else textSpacer) *if (side.vertical == Vertical.DOWN) index + 1 else index
                                                val moduleColor = Color.getHSBColor(module.hue, saturation, brightness).rgb
                            					
                            					val counter = intArrayOf(0)
                                                var Sky: Int
                                                Sky = RenderUtils.SkyRainbow(counter[0] * 100, saturationValue.get(), brightnessValue.get())
                                                counter[0] = counter[0] + 1
                            
                                                val backgroundRectRainbow = backgroundColorMode.equals("Rainbow", ignoreCase = true)
                            
                                                RainbowShader.begin(backgroundRectRainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                                    RenderUtils.drawRect(
                                                            xPos - if (rectMode.equals("right", true)) 5 else 2,
                                                            yPos,
                                                            if (rectMode.equals("right", true)) -3F else 0F,
                                                            yPos + textHeight, when {
                                                        backgroundRectRainbow -> 0xFF shl 24
                                                        backgroundColorMode.equals("Random", ignoreCase = true) -> moduleColor
                            							backgroundColorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                        else -> backgroundCustomColor
                                                    }
                                                    )
                                                }
                            
                                                val rainbow = colorMode.equals("Rainbow", ignoreCase = true)
                            
                                                RainbowFontShader.begin(rainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                                    fontRenderer.drawString(displayString, xPos - if (rectMode.equals("right", true)) 3 else 0, yPos + textY, when {
                                                        rainbow -> 0
                                                        colorMode.equals("Random", ignoreCase = true) -> moduleColor
                            							colorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                        else -> customColor
                                                    }, textShadow)
                                                }
                            
                                                if (!rectMode.equals("none", true)) {
                                                    val rectRainbow = rectColorMode.equals("Rainbow", ignoreCase = true)
                            
                                                    RainbowShader.begin(rectRainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                                        val rectColor = when {
                                                            rectRainbow -> 0
                                                            rectColorMode.equals("Random", ignoreCase = true) -> moduleColor
                            								rectColorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                            else -> rectCustomColor
                                                        }
                            
                                                        when {
                                                            rectMode.equals("left", true) -> RenderUtils.drawRect(xPos - 5, yPos, xPos - 2, yPos + textHeight,
                                                                    rectColor)
                                                            rectMode.equals("right", true) -> RenderUtils.drawRect(-3F, yPos, 0F,
                                                                    yPos + textHeight, rectColor)
                            								rectMode.equals("outline", true) -> {                          
                                                                RenderUtils.drawRect(-1F, yPos - 1F, 0F, yPos + textHeight, rectColor)
                                                                RenderUtils.drawRect(xPos - 3, yPos, xPos - 2, yPos + textHeight, rectColor)
                                                                if (module != modules[0]) {
                                                                    var displayStrings = if (!tags.get())
                                                                        modules[index - 1].name
                                                                    else if (tagsArrayColor.get())
                                                                        modules[index - 1].colorlessTagName
                                                                    else modules[index - 1].tagName
                            
                                                                    if (upperCaseValue.get())
                                                                        displayStrings = displayStrings.toUpperCase()
                            
                                                                    RenderUtils.drawRect(xPos - 3 - (fontRenderer.getStringWidth(displayStrings) - fontRenderer.getStringWidth(displayString)), yPos, xPos - 2, yPos + 1,
                                                                            rectColor)
                                                                    if (module == modules[modules.size - 1]) {
                                                                        RenderUtils.drawRect(xPos - 3, yPos + textHeight, 0.0F, yPos + textHeight + 1,
                                                                                rectColor)
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                            
                                        Horizontal.LEFT -> {
                                            modules.forEachIndexed { index, module ->
                                                var displayString = if (!tags.get())
                                                    module.name
                                                else if (tagsArrayColor.get())
                                                    module.colorlessTagName
                                                else module.tagName
                            
                                                if (upperCaseValue.get())
                                                    displayString = displayString.toUpperCase()
                            
                                                val width = fontRenderer.getStringWidth(displayString)
                                                val xPos = -(width - module.slide) + if (rectMode.equals("left", true)) 5 else 2
                                                val yPos = (if (side.vertical == Vertical.DOWN) -textSpacer else textSpacer) *
                                                        if (side.vertical == Vertical.DOWN) index + 1 else index
                                                val moduleColor = Color.getHSBColor(module.hue, saturation, brightness).rgb
                            
                                                val backgroundRectRainbow = backgroundColorMode.equals("Rainbow", ignoreCase = true)
                            
                                                RainbowShader.begin(backgroundRectRainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                                    RenderUtils.drawRect(
                                                            0F,
                                                            yPos,
                                                            xPos + width + if (rectMode.equals("right", true)) 5 else 2,
                                                            yPos + textHeight, when {
                                                        backgroundRectRainbow -> 0
                                                        backgroundColorMode.equals("Random", ignoreCase = true) -> moduleColor
                            							backgroundColorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                        else -> backgroundCustomColor
                                                    }
                                                    )
                                                }
                            
                                                val rainbow = colorMode.equals("Rainbow", ignoreCase = true)
                            
                                                RainbowFontShader.begin(rainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                                    fontRenderer.drawString(displayString, xPos, yPos + textY, when {
                                                        rainbow -> 0
                                                        colorMode.equals("Random", ignoreCase = true) -> moduleColor
                            							colorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                        else -> customColor
                                                    }, textShadow)
                                                }
                            
                                                val rectColorRainbow = rectColorMode.equals("Rainbow", ignoreCase = true)
                            
                                                RainbowShader.begin(rectColorRainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                                    if (!rectMode.equals("none", true)) {
                                                        val rectColor = when {
                                                            rectColorRainbow -> 0
                                                            rectColorMode.equals("Random", ignoreCase = true) -> moduleColor
                            				rectColorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                            else -> rectCustomColor
                                                        }
                            
                                                        when {
                                                            rectMode.equals("left", true) -> RenderUtils.drawRect(0F,
                                                                    yPos - 1, 3F, yPos + textHeight, rectColor)
                                                            rectMode.equals("right", true) ->
                                                                RenderUtils.drawRect(xPos + width + 2, yPos, xPos + width + 2 + 3,
                                                                        yPos + textHeight, rectColor)
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                            
                                    // Draw border
                                    if (mc.currentScreen is GuiHudDesigner) {
                                        x2 = Int.MIN_VALUE
                            
                                        if (modules.isEmpty()) {
                                            return if (side.horizontal == Horizontal.LEFT)
                                                Border(0F, -1F, 20F, 20F)
                                            else
                                                Border(0F, -1F, -20F, 20F)
                                        }
                            
                                        for (module in modules) {
                                            when (side.horizontal) {
                                                Horizontal.RIGHT, Horizontal.MIDDLE -> {
                                                    val xPos = -module.slide.toInt() - 2
                                                    if (x2 == Int.MIN_VALUE || xPos < x2) x2 = xPos
                                                }
                                                Horizontal.LEFT -> {
                                                    val xPos = module.slide.toInt() + 14
                                                    if (x2 == Int.MIN_VALUE || xPos > x2) x2 = xPos
                                                }
                                            }
                                        }
                                        y2 = (if (side.vertical == Vertical.DOWN) -textSpacer else textSpacer) * modules.size
                            
                                        return Border(0F, 0F, x2 - 7F, y2 - if (side.vertical == Vertical.DOWN) 1F else 0F)
                                    }
                            
                                    AWTFontRenderer.assumeNonVolatile = false
                                    GlStateManager.resetColor()
                                    return null
                                }
                            
                                override fun updateElement() {
                                    modules = LiquidBounce.moduleManager.modules
                                            .filter { it.array && it.slide > 0 }
                                            .sortedBy { -fontValue.get().getStringWidth(if (upperCaseValue.get()) (if (!tags.get()) it.name else if (tagsArrayColor.get()) it.colorlessTagName else it.tagName).toUpperCase() else if (!tags.get()) it.name else if (tagsArrayColor.get()) it.colorlessTagName else it.tagName) }
                                }
                            }
                            
                            ? Offline
                            ? Offline
                            A Former User
                            wrote on last edited by
                            #23

                            @idkmyname said in Array list help:

                            paste this in RenderUtils

                            public static int SkyRainbow(int var2, float bright, float st) {
                                    double v1 = Math.ceil(System.currentTimeMillis() + (long) (var2 * 109)) / 5;
                                    return Color.getHSBColor((double) ((float) ((v1 %= 360.0) / 360.0)) < 0.5 ? -((float) (v1 / 360.0)) : (float) (v1 / 360.0), st, bright).getRGB();
                                }
                            

                            and then paste this

                            /*
                             * LiquidBounce Hacked Client
                             * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge.
                             * https://github.com/CCBlueX/LiquidBounce/
                             */
                            package net.ccbluex.liquidbounce.ui.client.hud.element.elements
                            
                            import net.ccbluex.liquidbounce.LiquidBounce
                            import net.ccbluex.liquidbounce.features.module.Module
                            import net.ccbluex.liquidbounce.ui.client.hud.designer.GuiHudDesigner
                            import net.ccbluex.liquidbounce.ui.client.hud.element.Border
                            import net.ccbluex.liquidbounce.ui.client.hud.element.Element
                            import net.ccbluex.liquidbounce.ui.client.hud.element.ElementInfo
                            import net.ccbluex.liquidbounce.ui.client.hud.element.Side
                            import net.ccbluex.liquidbounce.ui.client.hud.element.Side.Horizontal
                            import net.ccbluex.liquidbounce.ui.client.hud.element.Side.Vertical
                            import net.ccbluex.liquidbounce.ui.font.AWTFontRenderer
                            import net.ccbluex.liquidbounce.ui.font.Fonts
                            import net.ccbluex.liquidbounce.utils.render.AnimationUtils
                            import net.ccbluex.liquidbounce.utils.render.RenderUtils
                            import net.ccbluex.liquidbounce.utils.render.shader.shaders.RainbowFontShader
                            import net.ccbluex.liquidbounce.utils.render.shader.shaders.RainbowShader
                            import net.ccbluex.liquidbounce.value.*
                            import net.minecraft.client.renderer.GlStateManager
                            import java.awt.Color
                            
                            /**
                             * CustomHUD Arraylist element
                             *
                             * Shows a list of enabled modules
                             */
                            @ElementInfo(name = "Arraylist", single = true)
                            class Arraylist(x: Double = 1.0, y: Double = 2.0, scale: Float = 1F,
                                            side: Side = Side(Horizontal.RIGHT, Vertical.UP)) : Element(x, y, scale, side) {
                                private val rainbowX = FloatValue("Rainbow-X", -1000F, -2000F, 2000F)
                                private val rainbowY = FloatValue("Rainbow-Y", -1000F, -2000F, 2000F)
                                private val colorModeValue = ListValue("Text-Color", arrayOf("Custom", "Random", "Rainbow", "Astolfo"), "Custom")
                                private val colorRedValue = IntegerValue("Text-R", 0, 0, 255)
                                private val colorGreenValue = IntegerValue("Text-G", 111, 0, 255)
                                private val colorBlueValue = IntegerValue("Text-B", 255, 0, 255)
                                private val rectColorModeValue = ListValue("Rect-Color", arrayOf("Custom", "Random", "Rainbow", "Astolfo"), "Rainbow")
                                private val rectColorRedValue = IntegerValue("Rect-R", 255, 0, 255)
                                private val rectColorGreenValue = IntegerValue("Rect-G", 255, 0, 255)
                                private val rectColorBlueValue = IntegerValue("Rect-B", 255, 0, 255)
                                private val rectColorBlueAlpha = IntegerValue("Rect-Alpha", 255, 0, 255)
                                private val saturationValue = FloatValue("Random-Saturation", 0.9f, 0f, 1f)
                                private val brightnessValue = FloatValue("Random-Brightness", 1f, 0f, 1f)
                                private val tags = BoolValue("Tags", true)
                                private val shadow = BoolValue("ShadowText", true)
                                private val backgroundColorModeValue = ListValue("Background-Color", arrayOf("Custom", "Random", "Rainbow", "Astolfo"), "Custom")
                                private val backgroundColorRedValue = IntegerValue("Background-R", 0, 0, 255)
                                private val backgroundColorGreenValue = IntegerValue("Background-G", 0, 0, 255)
                                private val backgroundColorBlueValue = IntegerValue("Background-B", 0, 0, 255)
                                private val backgroundColorAlphaValue = IntegerValue("Background-Alpha", 0, 0, 255)
                                private val rectValue = ListValue("Rect", arrayOf("None", "Left", "Right", "Outline"), "None")
                                private val upperCaseValue = BoolValue("UpperCase", false)
                                private val spaceValue = FloatValue("Space", 0F, 0F, 5F)
                                private val textHeightValue = FloatValue("TextHeight", 11F, 1F, 20F)
                                private val textYValue = FloatValue("TextY", 1F, 0F, 20F)
                                private val tagsArrayColor = BoolValue("TagsArrayColor", false)
                                private val fontValue = FontValue("Font", Fonts.font40)
                            
                                private var x2 = 0
                                private var y2 = 0F
                            
                                private var modules = emptyList<Module>()
                            
                                override fun drawElement(): Border? {
                                    val fontRenderer = fontValue.get()
                            
                                    AWTFontRenderer.assumeNonVolatile = true
                            
                                    // Slide animation - update every render
                                    val delta = RenderUtils.deltaTime
                            
                                    for (module in LiquidBounce.moduleManager.modules) {
                                        if (!module.array || (!module.state && module.slide == 0F)) continue
                            
                                        var displayString = if (!tags.get())
                                            module.name
                                        else if (tagsArrayColor.get())
                                            module.colorlessTagName
                                        else module.tagName
                            
                                        if (upperCaseValue.get())
                                            displayString = displayString.toUpperCase()
                            
                                        val width = fontRenderer.getStringWidth(displayString)
                            
                                        if (module.state) {
                                            if (module.slide < width) {
                                                module.slide = AnimationUtils.easeOut(module.slideStep, width.toFloat()) * width
                                                module.slideStep += delta / 4F
                                            }
                                        } else if (module.slide > 0) {
                                            module.slide = AnimationUtils.easeOut(module.slideStep, width.toFloat()) * width
                                            module.slideStep -= delta / 4F
                                        }
                            
                                        module.slide = module.slide.coerceIn(0F, width.toFloat())
                                        module.slideStep = module.slideStep.coerceIn(0F, width.toFloat())
                                    }
                            
                                    // Draw arraylist
                                    val colorMode = colorModeValue.get()
                                    val rectColorMode = rectColorModeValue.get()
                                    val backgroundColorMode = backgroundColorModeValue.get()
                                    val customColor = Color(colorRedValue.get(), colorGreenValue.get(), colorBlueValue.get(), 1).rgb
                                    val rectCustomColor = Color(rectColorRedValue.get(), rectColorGreenValue.get(), rectColorBlueValue.get(),
                                            rectColorBlueAlpha.get()).rgb
                                    val space = spaceValue.get()
                                    val textHeight = textHeightValue.get()
                                    val textY = textYValue.get()
                                    val rectMode = rectValue.get()
                                    val backgroundCustomColor = Color(backgroundColorRedValue.get(), backgroundColorGreenValue.get(),
                                            backgroundColorBlueValue.get(), backgroundColorAlphaValue.get()).rgb
                                    val textShadow = shadow.get()
                                    val textSpacer = textHeight + space
                                    val saturation = saturationValue.get()
                                    val brightness = brightnessValue.get()
                            
                                    when (side.horizontal) {
                                        Horizontal.RIGHT, Horizontal.MIDDLE -> {
                                            modules.forEachIndexed { index, module ->
                                                var displayString = if (!tags.get())
                                                    module.name
                                                else if (tagsArrayColor.get())
                                                    module.colorlessTagName
                                                else module.tagName
                            
                                                if (upperCaseValue.get())
                                                    displayString = displayString.toUpperCase()
                            
                                                val xPos = -module.slide - 2
                                                val yPos = (if (side.vertical == Vertical.DOWN) -textSpacer else textSpacer) *if (side.vertical == Vertical.DOWN) index + 1 else index
                                                val moduleColor = Color.getHSBColor(module.hue, saturation, brightness).rgb
                            					
                            					val counter = intArrayOf(0)
                                                var Sky: Int
                                                Sky = RenderUtils.SkyRainbow(counter[0] * 100, saturationValue.get(), brightnessValue.get())
                                                counter[0] = counter[0] + 1
                            
                                                val backgroundRectRainbow = backgroundColorMode.equals("Rainbow", ignoreCase = true)
                            
                                                RainbowShader.begin(backgroundRectRainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                                    RenderUtils.drawRect(
                                                            xPos - if (rectMode.equals("right", true)) 5 else 2,
                                                            yPos,
                                                            if (rectMode.equals("right", true)) -3F else 0F,
                                                            yPos + textHeight, when {
                                                        backgroundRectRainbow -> 0xFF shl 24
                                                        backgroundColorMode.equals("Random", ignoreCase = true) -> moduleColor
                            							backgroundColorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                        else -> backgroundCustomColor
                                                    }
                                                    )
                                                }
                            
                                                val rainbow = colorMode.equals("Rainbow", ignoreCase = true)
                            
                                                RainbowFontShader.begin(rainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                                    fontRenderer.drawString(displayString, xPos - if (rectMode.equals("right", true)) 3 else 0, yPos + textY, when {
                                                        rainbow -> 0
                                                        colorMode.equals("Random", ignoreCase = true) -> moduleColor
                            							colorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                        else -> customColor
                                                    }, textShadow)
                                                }
                            
                                                if (!rectMode.equals("none", true)) {
                                                    val rectRainbow = rectColorMode.equals("Rainbow", ignoreCase = true)
                            
                                                    RainbowShader.begin(rectRainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                                        val rectColor = when {
                                                            rectRainbow -> 0
                                                            rectColorMode.equals("Random", ignoreCase = true) -> moduleColor
                            								rectColorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                            else -> rectCustomColor
                                                        }
                            
                                                        when {
                                                            rectMode.equals("left", true) -> RenderUtils.drawRect(xPos - 5, yPos, xPos - 2, yPos + textHeight,
                                                                    rectColor)
                                                            rectMode.equals("right", true) -> RenderUtils.drawRect(-3F, yPos, 0F,
                                                                    yPos + textHeight, rectColor)
                            								rectMode.equals("outline", true) -> {                          
                                                                RenderUtils.drawRect(-1F, yPos - 1F, 0F, yPos + textHeight, rectColor)
                                                                RenderUtils.drawRect(xPos - 3, yPos, xPos - 2, yPos + textHeight, rectColor)
                                                                if (module != modules[0]) {
                                                                    var displayStrings = if (!tags.get())
                                                                        modules[index - 1].name
                                                                    else if (tagsArrayColor.get())
                                                                        modules[index - 1].colorlessTagName
                                                                    else modules[index - 1].tagName
                            
                                                                    if (upperCaseValue.get())
                                                                        displayStrings = displayStrings.toUpperCase()
                            
                                                                    RenderUtils.drawRect(xPos - 3 - (fontRenderer.getStringWidth(displayStrings) - fontRenderer.getStringWidth(displayString)), yPos, xPos - 2, yPos + 1,
                                                                            rectColor)
                                                                    if (module == modules[modules.size - 1]) {
                                                                        RenderUtils.drawRect(xPos - 3, yPos + textHeight, 0.0F, yPos + textHeight + 1,
                                                                                rectColor)
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                            
                                        Horizontal.LEFT -> {
                                            modules.forEachIndexed { index, module ->
                                                var displayString = if (!tags.get())
                                                    module.name
                                                else if (tagsArrayColor.get())
                                                    module.colorlessTagName
                                                else module.tagName
                            
                                                if (upperCaseValue.get())
                                                    displayString = displayString.toUpperCase()
                            
                                                val width = fontRenderer.getStringWidth(displayString)
                                                val xPos = -(width - module.slide) + if (rectMode.equals("left", true)) 5 else 2
                                                val yPos = (if (side.vertical == Vertical.DOWN) -textSpacer else textSpacer) *
                                                        if (side.vertical == Vertical.DOWN) index + 1 else index
                                                val moduleColor = Color.getHSBColor(module.hue, saturation, brightness).rgb
                            
                                                val backgroundRectRainbow = backgroundColorMode.equals("Rainbow", ignoreCase = true)
                            
                                                RainbowShader.begin(backgroundRectRainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                                    RenderUtils.drawRect(
                                                            0F,
                                                            yPos,
                                                            xPos + width + if (rectMode.equals("right", true)) 5 else 2,
                                                            yPos + textHeight, when {
                                                        backgroundRectRainbow -> 0
                                                        backgroundColorMode.equals("Random", ignoreCase = true) -> moduleColor
                            							backgroundColorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                        else -> backgroundCustomColor
                                                    }
                                                    )
                                                }
                            
                                                val rainbow = colorMode.equals("Rainbow", ignoreCase = true)
                            
                                                RainbowFontShader.begin(rainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                                    fontRenderer.drawString(displayString, xPos, yPos + textY, when {
                                                        rainbow -> 0
                                                        colorMode.equals("Random", ignoreCase = true) -> moduleColor
                            							colorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                        else -> customColor
                                                    }, textShadow)
                                                }
                            
                                                val rectColorRainbow = rectColorMode.equals("Rainbow", ignoreCase = true)
                            
                                                RainbowShader.begin(rectColorRainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                                    if (!rectMode.equals("none", true)) {
                                                        val rectColor = when {
                                                            rectColorRainbow -> 0
                                                            rectColorMode.equals("Random", ignoreCase = true) -> moduleColor
                            				rectColorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                            else -> rectCustomColor
                                                        }
                            
                                                        when {
                                                            rectMode.equals("left", true) -> RenderUtils.drawRect(0F,
                                                                    yPos - 1, 3F, yPos + textHeight, rectColor)
                                                            rectMode.equals("right", true) ->
                                                                RenderUtils.drawRect(xPos + width + 2, yPos, xPos + width + 2 + 3,
                                                                        yPos + textHeight, rectColor)
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                            
                                    // Draw border
                                    if (mc.currentScreen is GuiHudDesigner) {
                                        x2 = Int.MIN_VALUE
                            
                                        if (modules.isEmpty()) {
                                            return if (side.horizontal == Horizontal.LEFT)
                                                Border(0F, -1F, 20F, 20F)
                                            else
                                                Border(0F, -1F, -20F, 20F)
                                        }
                            
                                        for (module in modules) {
                                            when (side.horizontal) {
                                                Horizontal.RIGHT, Horizontal.MIDDLE -> {
                                                    val xPos = -module.slide.toInt() - 2
                                                    if (x2 == Int.MIN_VALUE || xPos < x2) x2 = xPos
                                                }
                                                Horizontal.LEFT -> {
                                                    val xPos = module.slide.toInt() + 14
                                                    if (x2 == Int.MIN_VALUE || xPos > x2) x2 = xPos
                                                }
                                            }
                                        }
                                        y2 = (if (side.vertical == Vertical.DOWN) -textSpacer else textSpacer) * modules.size
                            
                                        return Border(0F, 0F, x2 - 7F, y2 - if (side.vertical == Vertical.DOWN) 1F else 0F)
                                    }
                            
                                    AWTFontRenderer.assumeNonVolatile = false
                                    GlStateManager.resetColor()
                                    return null
                                }
                            
                                override fun updateElement() {
                                    modules = LiquidBounce.moduleManager.modules
                                            .filter { it.array && it.slide > 0 }
                                            .sortedBy { -fontValue.get().getStringWidth(if (upperCaseValue.get()) (if (!tags.get()) it.name else if (tagsArrayColor.get()) it.colorlessTagName else it.tagName).toUpperCase() else if (!tags.get()) it.name else if (tagsArrayColor.get()) it.colorlessTagName else it.tagName) }
                                }
                            }
                            

                            omg aquabounce src leaked???

                            CrediC LitelyL 2 Replies Last reply
                            0
                            • ? A Former User

                              @idkmyname said in Array list help:

                              paste this in RenderUtils

                              public static int SkyRainbow(int var2, float bright, float st) {
                                      double v1 = Math.ceil(System.currentTimeMillis() + (long) (var2 * 109)) / 5;
                                      return Color.getHSBColor((double) ((float) ((v1 %= 360.0) / 360.0)) < 0.5 ? -((float) (v1 / 360.0)) : (float) (v1 / 360.0), st, bright).getRGB();
                                  }
                              

                              and then paste this

                              /*
                               * LiquidBounce Hacked Client
                               * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge.
                               * https://github.com/CCBlueX/LiquidBounce/
                               */
                              package net.ccbluex.liquidbounce.ui.client.hud.element.elements
                              
                              import net.ccbluex.liquidbounce.LiquidBounce
                              import net.ccbluex.liquidbounce.features.module.Module
                              import net.ccbluex.liquidbounce.ui.client.hud.designer.GuiHudDesigner
                              import net.ccbluex.liquidbounce.ui.client.hud.element.Border
                              import net.ccbluex.liquidbounce.ui.client.hud.element.Element
                              import net.ccbluex.liquidbounce.ui.client.hud.element.ElementInfo
                              import net.ccbluex.liquidbounce.ui.client.hud.element.Side
                              import net.ccbluex.liquidbounce.ui.client.hud.element.Side.Horizontal
                              import net.ccbluex.liquidbounce.ui.client.hud.element.Side.Vertical
                              import net.ccbluex.liquidbounce.ui.font.AWTFontRenderer
                              import net.ccbluex.liquidbounce.ui.font.Fonts
                              import net.ccbluex.liquidbounce.utils.render.AnimationUtils
                              import net.ccbluex.liquidbounce.utils.render.RenderUtils
                              import net.ccbluex.liquidbounce.utils.render.shader.shaders.RainbowFontShader
                              import net.ccbluex.liquidbounce.utils.render.shader.shaders.RainbowShader
                              import net.ccbluex.liquidbounce.value.*
                              import net.minecraft.client.renderer.GlStateManager
                              import java.awt.Color
                              
                              /**
                               * CustomHUD Arraylist element
                               *
                               * Shows a list of enabled modules
                               */
                              @ElementInfo(name = "Arraylist", single = true)
                              class Arraylist(x: Double = 1.0, y: Double = 2.0, scale: Float = 1F,
                                              side: Side = Side(Horizontal.RIGHT, Vertical.UP)) : Element(x, y, scale, side) {
                                  private val rainbowX = FloatValue("Rainbow-X", -1000F, -2000F, 2000F)
                                  private val rainbowY = FloatValue("Rainbow-Y", -1000F, -2000F, 2000F)
                                  private val colorModeValue = ListValue("Text-Color", arrayOf("Custom", "Random", "Rainbow", "Astolfo"), "Custom")
                                  private val colorRedValue = IntegerValue("Text-R", 0, 0, 255)
                                  private val colorGreenValue = IntegerValue("Text-G", 111, 0, 255)
                                  private val colorBlueValue = IntegerValue("Text-B", 255, 0, 255)
                                  private val rectColorModeValue = ListValue("Rect-Color", arrayOf("Custom", "Random", "Rainbow", "Astolfo"), "Rainbow")
                                  private val rectColorRedValue = IntegerValue("Rect-R", 255, 0, 255)
                                  private val rectColorGreenValue = IntegerValue("Rect-G", 255, 0, 255)
                                  private val rectColorBlueValue = IntegerValue("Rect-B", 255, 0, 255)
                                  private val rectColorBlueAlpha = IntegerValue("Rect-Alpha", 255, 0, 255)
                                  private val saturationValue = FloatValue("Random-Saturation", 0.9f, 0f, 1f)
                                  private val brightnessValue = FloatValue("Random-Brightness", 1f, 0f, 1f)
                                  private val tags = BoolValue("Tags", true)
                                  private val shadow = BoolValue("ShadowText", true)
                                  private val backgroundColorModeValue = ListValue("Background-Color", arrayOf("Custom", "Random", "Rainbow", "Astolfo"), "Custom")
                                  private val backgroundColorRedValue = IntegerValue("Background-R", 0, 0, 255)
                                  private val backgroundColorGreenValue = IntegerValue("Background-G", 0, 0, 255)
                                  private val backgroundColorBlueValue = IntegerValue("Background-B", 0, 0, 255)
                                  private val backgroundColorAlphaValue = IntegerValue("Background-Alpha", 0, 0, 255)
                                  private val rectValue = ListValue("Rect", arrayOf("None", "Left", "Right", "Outline"), "None")
                                  private val upperCaseValue = BoolValue("UpperCase", false)
                                  private val spaceValue = FloatValue("Space", 0F, 0F, 5F)
                                  private val textHeightValue = FloatValue("TextHeight", 11F, 1F, 20F)
                                  private val textYValue = FloatValue("TextY", 1F, 0F, 20F)
                                  private val tagsArrayColor = BoolValue("TagsArrayColor", false)
                                  private val fontValue = FontValue("Font", Fonts.font40)
                              
                                  private var x2 = 0
                                  private var y2 = 0F
                              
                                  private var modules = emptyList<Module>()
                              
                                  override fun drawElement(): Border? {
                                      val fontRenderer = fontValue.get()
                              
                                      AWTFontRenderer.assumeNonVolatile = true
                              
                                      // Slide animation - update every render
                                      val delta = RenderUtils.deltaTime
                              
                                      for (module in LiquidBounce.moduleManager.modules) {
                                          if (!module.array || (!module.state && module.slide == 0F)) continue
                              
                                          var displayString = if (!tags.get())
                                              module.name
                                          else if (tagsArrayColor.get())
                                              module.colorlessTagName
                                          else module.tagName
                              
                                          if (upperCaseValue.get())
                                              displayString = displayString.toUpperCase()
                              
                                          val width = fontRenderer.getStringWidth(displayString)
                              
                                          if (module.state) {
                                              if (module.slide < width) {
                                                  module.slide = AnimationUtils.easeOut(module.slideStep, width.toFloat()) * width
                                                  module.slideStep += delta / 4F
                                              }
                                          } else if (module.slide > 0) {
                                              module.slide = AnimationUtils.easeOut(module.slideStep, width.toFloat()) * width
                                              module.slideStep -= delta / 4F
                                          }
                              
                                          module.slide = module.slide.coerceIn(0F, width.toFloat())
                                          module.slideStep = module.slideStep.coerceIn(0F, width.toFloat())
                                      }
                              
                                      // Draw arraylist
                                      val colorMode = colorModeValue.get()
                                      val rectColorMode = rectColorModeValue.get()
                                      val backgroundColorMode = backgroundColorModeValue.get()
                                      val customColor = Color(colorRedValue.get(), colorGreenValue.get(), colorBlueValue.get(), 1).rgb
                                      val rectCustomColor = Color(rectColorRedValue.get(), rectColorGreenValue.get(), rectColorBlueValue.get(),
                                              rectColorBlueAlpha.get()).rgb
                                      val space = spaceValue.get()
                                      val textHeight = textHeightValue.get()
                                      val textY = textYValue.get()
                                      val rectMode = rectValue.get()
                                      val backgroundCustomColor = Color(backgroundColorRedValue.get(), backgroundColorGreenValue.get(),
                                              backgroundColorBlueValue.get(), backgroundColorAlphaValue.get()).rgb
                                      val textShadow = shadow.get()
                                      val textSpacer = textHeight + space
                                      val saturation = saturationValue.get()
                                      val brightness = brightnessValue.get()
                              
                                      when (side.horizontal) {
                                          Horizontal.RIGHT, Horizontal.MIDDLE -> {
                                              modules.forEachIndexed { index, module ->
                                                  var displayString = if (!tags.get())
                                                      module.name
                                                  else if (tagsArrayColor.get())
                                                      module.colorlessTagName
                                                  else module.tagName
                              
                                                  if (upperCaseValue.get())
                                                      displayString = displayString.toUpperCase()
                              
                                                  val xPos = -module.slide - 2
                                                  val yPos = (if (side.vertical == Vertical.DOWN) -textSpacer else textSpacer) *if (side.vertical == Vertical.DOWN) index + 1 else index
                                                  val moduleColor = Color.getHSBColor(module.hue, saturation, brightness).rgb
                              					
                              					val counter = intArrayOf(0)
                                                  var Sky: Int
                                                  Sky = RenderUtils.SkyRainbow(counter[0] * 100, saturationValue.get(), brightnessValue.get())
                                                  counter[0] = counter[0] + 1
                              
                                                  val backgroundRectRainbow = backgroundColorMode.equals("Rainbow", ignoreCase = true)
                              
                                                  RainbowShader.begin(backgroundRectRainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                                      RenderUtils.drawRect(
                                                              xPos - if (rectMode.equals("right", true)) 5 else 2,
                                                              yPos,
                                                              if (rectMode.equals("right", true)) -3F else 0F,
                                                              yPos + textHeight, when {
                                                          backgroundRectRainbow -> 0xFF shl 24
                                                          backgroundColorMode.equals("Random", ignoreCase = true) -> moduleColor
                              							backgroundColorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                          else -> backgroundCustomColor
                                                      }
                                                      )
                                                  }
                              
                                                  val rainbow = colorMode.equals("Rainbow", ignoreCase = true)
                              
                                                  RainbowFontShader.begin(rainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                                      fontRenderer.drawString(displayString, xPos - if (rectMode.equals("right", true)) 3 else 0, yPos + textY, when {
                                                          rainbow -> 0
                                                          colorMode.equals("Random", ignoreCase = true) -> moduleColor
                              							colorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                          else -> customColor
                                                      }, textShadow)
                                                  }
                              
                                                  if (!rectMode.equals("none", true)) {
                                                      val rectRainbow = rectColorMode.equals("Rainbow", ignoreCase = true)
                              
                                                      RainbowShader.begin(rectRainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                                          val rectColor = when {
                                                              rectRainbow -> 0
                                                              rectColorMode.equals("Random", ignoreCase = true) -> moduleColor
                              								rectColorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                              else -> rectCustomColor
                                                          }
                              
                                                          when {
                                                              rectMode.equals("left", true) -> RenderUtils.drawRect(xPos - 5, yPos, xPos - 2, yPos + textHeight,
                                                                      rectColor)
                                                              rectMode.equals("right", true) -> RenderUtils.drawRect(-3F, yPos, 0F,
                                                                      yPos + textHeight, rectColor)
                              								rectMode.equals("outline", true) -> {                          
                                                                  RenderUtils.drawRect(-1F, yPos - 1F, 0F, yPos + textHeight, rectColor)
                                                                  RenderUtils.drawRect(xPos - 3, yPos, xPos - 2, yPos + textHeight, rectColor)
                                                                  if (module != modules[0]) {
                                                                      var displayStrings = if (!tags.get())
                                                                          modules[index - 1].name
                                                                      else if (tagsArrayColor.get())
                                                                          modules[index - 1].colorlessTagName
                                                                      else modules[index - 1].tagName
                              
                                                                      if (upperCaseValue.get())
                                                                          displayStrings = displayStrings.toUpperCase()
                              
                                                                      RenderUtils.drawRect(xPos - 3 - (fontRenderer.getStringWidth(displayStrings) - fontRenderer.getStringWidth(displayString)), yPos, xPos - 2, yPos + 1,
                                                                              rectColor)
                                                                      if (module == modules[modules.size - 1]) {
                                                                          RenderUtils.drawRect(xPos - 3, yPos + textHeight, 0.0F, yPos + textHeight + 1,
                                                                                  rectColor)
                                                                      }
                                                                  }
                                                              }
                                                          }
                                                      }
                                                  }
                                              }
                                          }
                              
                                          Horizontal.LEFT -> {
                                              modules.forEachIndexed { index, module ->
                                                  var displayString = if (!tags.get())
                                                      module.name
                                                  else if (tagsArrayColor.get())
                                                      module.colorlessTagName
                                                  else module.tagName
                              
                                                  if (upperCaseValue.get())
                                                      displayString = displayString.toUpperCase()
                              
                                                  val width = fontRenderer.getStringWidth(displayString)
                                                  val xPos = -(width - module.slide) + if (rectMode.equals("left", true)) 5 else 2
                                                  val yPos = (if (side.vertical == Vertical.DOWN) -textSpacer else textSpacer) *
                                                          if (side.vertical == Vertical.DOWN) index + 1 else index
                                                  val moduleColor = Color.getHSBColor(module.hue, saturation, brightness).rgb
                              
                                                  val backgroundRectRainbow = backgroundColorMode.equals("Rainbow", ignoreCase = true)
                              
                                                  RainbowShader.begin(backgroundRectRainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                                      RenderUtils.drawRect(
                                                              0F,
                                                              yPos,
                                                              xPos + width + if (rectMode.equals("right", true)) 5 else 2,
                                                              yPos + textHeight, when {
                                                          backgroundRectRainbow -> 0
                                                          backgroundColorMode.equals("Random", ignoreCase = true) -> moduleColor
                              							backgroundColorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                          else -> backgroundCustomColor
                                                      }
                                                      )
                                                  }
                              
                                                  val rainbow = colorMode.equals("Rainbow", ignoreCase = true)
                              
                                                  RainbowFontShader.begin(rainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                                      fontRenderer.drawString(displayString, xPos, yPos + textY, when {
                                                          rainbow -> 0
                                                          colorMode.equals("Random", ignoreCase = true) -> moduleColor
                              							colorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                          else -> customColor
                                                      }, textShadow)
                                                  }
                              
                                                  val rectColorRainbow = rectColorMode.equals("Rainbow", ignoreCase = true)
                              
                                                  RainbowShader.begin(rectColorRainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                                      if (!rectMode.equals("none", true)) {
                                                          val rectColor = when {
                                                              rectColorRainbow -> 0
                                                              rectColorMode.equals("Random", ignoreCase = true) -> moduleColor
                              				rectColorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                              else -> rectCustomColor
                                                          }
                              
                                                          when {
                                                              rectMode.equals("left", true) -> RenderUtils.drawRect(0F,
                                                                      yPos - 1, 3F, yPos + textHeight, rectColor)
                                                              rectMode.equals("right", true) ->
                                                                  RenderUtils.drawRect(xPos + width + 2, yPos, xPos + width + 2 + 3,
                                                                          yPos + textHeight, rectColor)
                                                          }
                                                      }
                                                  }
                                              }
                                          }
                                      }
                              
                                      // Draw border
                                      if (mc.currentScreen is GuiHudDesigner) {
                                          x2 = Int.MIN_VALUE
                              
                                          if (modules.isEmpty()) {
                                              return if (side.horizontal == Horizontal.LEFT)
                                                  Border(0F, -1F, 20F, 20F)
                                              else
                                                  Border(0F, -1F, -20F, 20F)
                                          }
                              
                                          for (module in modules) {
                                              when (side.horizontal) {
                                                  Horizontal.RIGHT, Horizontal.MIDDLE -> {
                                                      val xPos = -module.slide.toInt() - 2
                                                      if (x2 == Int.MIN_VALUE || xPos < x2) x2 = xPos
                                                  }
                                                  Horizontal.LEFT -> {
                                                      val xPos = module.slide.toInt() + 14
                                                      if (x2 == Int.MIN_VALUE || xPos > x2) x2 = xPos
                                                  }
                                              }
                                          }
                                          y2 = (if (side.vertical == Vertical.DOWN) -textSpacer else textSpacer) * modules.size
                              
                                          return Border(0F, 0F, x2 - 7F, y2 - if (side.vertical == Vertical.DOWN) 1F else 0F)
                                      }
                              
                                      AWTFontRenderer.assumeNonVolatile = false
                                      GlStateManager.resetColor()
                                      return null
                                  }
                              
                                  override fun updateElement() {
                                      modules = LiquidBounce.moduleManager.modules
                                              .filter { it.array && it.slide > 0 }
                                              .sortedBy { -fontValue.get().getStringWidth(if (upperCaseValue.get()) (if (!tags.get()) it.name else if (tagsArrayColor.get()) it.colorlessTagName else it.tagName).toUpperCase() else if (!tags.get()) it.name else if (tagsArrayColor.get()) it.colorlessTagName else it.tagName) }
                                  }
                              }
                              

                              omg aquabounce src leaked???

                              CrediC Offline
                              CrediC Offline
                              Credi
                              wrote on last edited by
                              #24

                              @chocopiexd where do i put that?

                              ? 1 Reply Last reply
                              0
                              • CrediC Credi

                                @chocopiexd where do i put that?

                                ? Offline
                                ? Offline
                                A Former User
                                wrote on last edited by
                                #25

                                @credivixal said in Array list help:

                                @chocopiexd where do i put that?

                                put that in your mom

                                1 Reply Last reply
                                0
                                • ? A Former User

                                  @idkmyname said in Array list help:

                                  paste this in RenderUtils

                                  public static int SkyRainbow(int var2, float bright, float st) {
                                          double v1 = Math.ceil(System.currentTimeMillis() + (long) (var2 * 109)) / 5;
                                          return Color.getHSBColor((double) ((float) ((v1 %= 360.0) / 360.0)) < 0.5 ? -((float) (v1 / 360.0)) : (float) (v1 / 360.0), st, bright).getRGB();
                                      }
                                  

                                  and then paste this

                                  /*
                                   * LiquidBounce Hacked Client
                                   * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge.
                                   * https://github.com/CCBlueX/LiquidBounce/
                                   */
                                  package net.ccbluex.liquidbounce.ui.client.hud.element.elements
                                  
                                  import net.ccbluex.liquidbounce.LiquidBounce
                                  import net.ccbluex.liquidbounce.features.module.Module
                                  import net.ccbluex.liquidbounce.ui.client.hud.designer.GuiHudDesigner
                                  import net.ccbluex.liquidbounce.ui.client.hud.element.Border
                                  import net.ccbluex.liquidbounce.ui.client.hud.element.Element
                                  import net.ccbluex.liquidbounce.ui.client.hud.element.ElementInfo
                                  import net.ccbluex.liquidbounce.ui.client.hud.element.Side
                                  import net.ccbluex.liquidbounce.ui.client.hud.element.Side.Horizontal
                                  import net.ccbluex.liquidbounce.ui.client.hud.element.Side.Vertical
                                  import net.ccbluex.liquidbounce.ui.font.AWTFontRenderer
                                  import net.ccbluex.liquidbounce.ui.font.Fonts
                                  import net.ccbluex.liquidbounce.utils.render.AnimationUtils
                                  import net.ccbluex.liquidbounce.utils.render.RenderUtils
                                  import net.ccbluex.liquidbounce.utils.render.shader.shaders.RainbowFontShader
                                  import net.ccbluex.liquidbounce.utils.render.shader.shaders.RainbowShader
                                  import net.ccbluex.liquidbounce.value.*
                                  import net.minecraft.client.renderer.GlStateManager
                                  import java.awt.Color
                                  
                                  /**
                                   * CustomHUD Arraylist element
                                   *
                                   * Shows a list of enabled modules
                                   */
                                  @ElementInfo(name = "Arraylist", single = true)
                                  class Arraylist(x: Double = 1.0, y: Double = 2.0, scale: Float = 1F,
                                                  side: Side = Side(Horizontal.RIGHT, Vertical.UP)) : Element(x, y, scale, side) {
                                      private val rainbowX = FloatValue("Rainbow-X", -1000F, -2000F, 2000F)
                                      private val rainbowY = FloatValue("Rainbow-Y", -1000F, -2000F, 2000F)
                                      private val colorModeValue = ListValue("Text-Color", arrayOf("Custom", "Random", "Rainbow", "Astolfo"), "Custom")
                                      private val colorRedValue = IntegerValue("Text-R", 0, 0, 255)
                                      private val colorGreenValue = IntegerValue("Text-G", 111, 0, 255)
                                      private val colorBlueValue = IntegerValue("Text-B", 255, 0, 255)
                                      private val rectColorModeValue = ListValue("Rect-Color", arrayOf("Custom", "Random", "Rainbow", "Astolfo"), "Rainbow")
                                      private val rectColorRedValue = IntegerValue("Rect-R", 255, 0, 255)
                                      private val rectColorGreenValue = IntegerValue("Rect-G", 255, 0, 255)
                                      private val rectColorBlueValue = IntegerValue("Rect-B", 255, 0, 255)
                                      private val rectColorBlueAlpha = IntegerValue("Rect-Alpha", 255, 0, 255)
                                      private val saturationValue = FloatValue("Random-Saturation", 0.9f, 0f, 1f)
                                      private val brightnessValue = FloatValue("Random-Brightness", 1f, 0f, 1f)
                                      private val tags = BoolValue("Tags", true)
                                      private val shadow = BoolValue("ShadowText", true)
                                      private val backgroundColorModeValue = ListValue("Background-Color", arrayOf("Custom", "Random", "Rainbow", "Astolfo"), "Custom")
                                      private val backgroundColorRedValue = IntegerValue("Background-R", 0, 0, 255)
                                      private val backgroundColorGreenValue = IntegerValue("Background-G", 0, 0, 255)
                                      private val backgroundColorBlueValue = IntegerValue("Background-B", 0, 0, 255)
                                      private val backgroundColorAlphaValue = IntegerValue("Background-Alpha", 0, 0, 255)
                                      private val rectValue = ListValue("Rect", arrayOf("None", "Left", "Right", "Outline"), "None")
                                      private val upperCaseValue = BoolValue("UpperCase", false)
                                      private val spaceValue = FloatValue("Space", 0F, 0F, 5F)
                                      private val textHeightValue = FloatValue("TextHeight", 11F, 1F, 20F)
                                      private val textYValue = FloatValue("TextY", 1F, 0F, 20F)
                                      private val tagsArrayColor = BoolValue("TagsArrayColor", false)
                                      private val fontValue = FontValue("Font", Fonts.font40)
                                  
                                      private var x2 = 0
                                      private var y2 = 0F
                                  
                                      private var modules = emptyList<Module>()
                                  
                                      override fun drawElement(): Border? {
                                          val fontRenderer = fontValue.get()
                                  
                                          AWTFontRenderer.assumeNonVolatile = true
                                  
                                          // Slide animation - update every render
                                          val delta = RenderUtils.deltaTime
                                  
                                          for (module in LiquidBounce.moduleManager.modules) {
                                              if (!module.array || (!module.state && module.slide == 0F)) continue
                                  
                                              var displayString = if (!tags.get())
                                                  module.name
                                              else if (tagsArrayColor.get())
                                                  module.colorlessTagName
                                              else module.tagName
                                  
                                              if (upperCaseValue.get())
                                                  displayString = displayString.toUpperCase()
                                  
                                              val width = fontRenderer.getStringWidth(displayString)
                                  
                                              if (module.state) {
                                                  if (module.slide < width) {
                                                      module.slide = AnimationUtils.easeOut(module.slideStep, width.toFloat()) * width
                                                      module.slideStep += delta / 4F
                                                  }
                                              } else if (module.slide > 0) {
                                                  module.slide = AnimationUtils.easeOut(module.slideStep, width.toFloat()) * width
                                                  module.slideStep -= delta / 4F
                                              }
                                  
                                              module.slide = module.slide.coerceIn(0F, width.toFloat())
                                              module.slideStep = module.slideStep.coerceIn(0F, width.toFloat())
                                          }
                                  
                                          // Draw arraylist
                                          val colorMode = colorModeValue.get()
                                          val rectColorMode = rectColorModeValue.get()
                                          val backgroundColorMode = backgroundColorModeValue.get()
                                          val customColor = Color(colorRedValue.get(), colorGreenValue.get(), colorBlueValue.get(), 1).rgb
                                          val rectCustomColor = Color(rectColorRedValue.get(), rectColorGreenValue.get(), rectColorBlueValue.get(),
                                                  rectColorBlueAlpha.get()).rgb
                                          val space = spaceValue.get()
                                          val textHeight = textHeightValue.get()
                                          val textY = textYValue.get()
                                          val rectMode = rectValue.get()
                                          val backgroundCustomColor = Color(backgroundColorRedValue.get(), backgroundColorGreenValue.get(),
                                                  backgroundColorBlueValue.get(), backgroundColorAlphaValue.get()).rgb
                                          val textShadow = shadow.get()
                                          val textSpacer = textHeight + space
                                          val saturation = saturationValue.get()
                                          val brightness = brightnessValue.get()
                                  
                                          when (side.horizontal) {
                                              Horizontal.RIGHT, Horizontal.MIDDLE -> {
                                                  modules.forEachIndexed { index, module ->
                                                      var displayString = if (!tags.get())
                                                          module.name
                                                      else if (tagsArrayColor.get())
                                                          module.colorlessTagName
                                                      else module.tagName
                                  
                                                      if (upperCaseValue.get())
                                                          displayString = displayString.toUpperCase()
                                  
                                                      val xPos = -module.slide - 2
                                                      val yPos = (if (side.vertical == Vertical.DOWN) -textSpacer else textSpacer) *if (side.vertical == Vertical.DOWN) index + 1 else index
                                                      val moduleColor = Color.getHSBColor(module.hue, saturation, brightness).rgb
                                  					
                                  					val counter = intArrayOf(0)
                                                      var Sky: Int
                                                      Sky = RenderUtils.SkyRainbow(counter[0] * 100, saturationValue.get(), brightnessValue.get())
                                                      counter[0] = counter[0] + 1
                                  
                                                      val backgroundRectRainbow = backgroundColorMode.equals("Rainbow", ignoreCase = true)
                                  
                                                      RainbowShader.begin(backgroundRectRainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                                          RenderUtils.drawRect(
                                                                  xPos - if (rectMode.equals("right", true)) 5 else 2,
                                                                  yPos,
                                                                  if (rectMode.equals("right", true)) -3F else 0F,
                                                                  yPos + textHeight, when {
                                                              backgroundRectRainbow -> 0xFF shl 24
                                                              backgroundColorMode.equals("Random", ignoreCase = true) -> moduleColor
                                  							backgroundColorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                              else -> backgroundCustomColor
                                                          }
                                                          )
                                                      }
                                  
                                                      val rainbow = colorMode.equals("Rainbow", ignoreCase = true)
                                  
                                                      RainbowFontShader.begin(rainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                                          fontRenderer.drawString(displayString, xPos - if (rectMode.equals("right", true)) 3 else 0, yPos + textY, when {
                                                              rainbow -> 0
                                                              colorMode.equals("Random", ignoreCase = true) -> moduleColor
                                  							colorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                              else -> customColor
                                                          }, textShadow)
                                                      }
                                  
                                                      if (!rectMode.equals("none", true)) {
                                                          val rectRainbow = rectColorMode.equals("Rainbow", ignoreCase = true)
                                  
                                                          RainbowShader.begin(rectRainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                                              val rectColor = when {
                                                                  rectRainbow -> 0
                                                                  rectColorMode.equals("Random", ignoreCase = true) -> moduleColor
                                  								rectColorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                                  else -> rectCustomColor
                                                              }
                                  
                                                              when {
                                                                  rectMode.equals("left", true) -> RenderUtils.drawRect(xPos - 5, yPos, xPos - 2, yPos + textHeight,
                                                                          rectColor)
                                                                  rectMode.equals("right", true) -> RenderUtils.drawRect(-3F, yPos, 0F,
                                                                          yPos + textHeight, rectColor)
                                  								rectMode.equals("outline", true) -> {                          
                                                                      RenderUtils.drawRect(-1F, yPos - 1F, 0F, yPos + textHeight, rectColor)
                                                                      RenderUtils.drawRect(xPos - 3, yPos, xPos - 2, yPos + textHeight, rectColor)
                                                                      if (module != modules[0]) {
                                                                          var displayStrings = if (!tags.get())
                                                                              modules[index - 1].name
                                                                          else if (tagsArrayColor.get())
                                                                              modules[index - 1].colorlessTagName
                                                                          else modules[index - 1].tagName
                                  
                                                                          if (upperCaseValue.get())
                                                                              displayStrings = displayStrings.toUpperCase()
                                  
                                                                          RenderUtils.drawRect(xPos - 3 - (fontRenderer.getStringWidth(displayStrings) - fontRenderer.getStringWidth(displayString)), yPos, xPos - 2, yPos + 1,
                                                                                  rectColor)
                                                                          if (module == modules[modules.size - 1]) {
                                                                              RenderUtils.drawRect(xPos - 3, yPos + textHeight, 0.0F, yPos + textHeight + 1,
                                                                                      rectColor)
                                                                          }
                                                                      }
                                                                  }
                                                              }
                                                          }
                                                      }
                                                  }
                                              }
                                  
                                              Horizontal.LEFT -> {
                                                  modules.forEachIndexed { index, module ->
                                                      var displayString = if (!tags.get())
                                                          module.name
                                                      else if (tagsArrayColor.get())
                                                          module.colorlessTagName
                                                      else module.tagName
                                  
                                                      if (upperCaseValue.get())
                                                          displayString = displayString.toUpperCase()
                                  
                                                      val width = fontRenderer.getStringWidth(displayString)
                                                      val xPos = -(width - module.slide) + if (rectMode.equals("left", true)) 5 else 2
                                                      val yPos = (if (side.vertical == Vertical.DOWN) -textSpacer else textSpacer) *
                                                              if (side.vertical == Vertical.DOWN) index + 1 else index
                                                      val moduleColor = Color.getHSBColor(module.hue, saturation, brightness).rgb
                                  
                                                      val backgroundRectRainbow = backgroundColorMode.equals("Rainbow", ignoreCase = true)
                                  
                                                      RainbowShader.begin(backgroundRectRainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                                          RenderUtils.drawRect(
                                                                  0F,
                                                                  yPos,
                                                                  xPos + width + if (rectMode.equals("right", true)) 5 else 2,
                                                                  yPos + textHeight, when {
                                                              backgroundRectRainbow -> 0
                                                              backgroundColorMode.equals("Random", ignoreCase = true) -> moduleColor
                                  							backgroundColorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                              else -> backgroundCustomColor
                                                          }
                                                          )
                                                      }
                                  
                                                      val rainbow = colorMode.equals("Rainbow", ignoreCase = true)
                                  
                                                      RainbowFontShader.begin(rainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                                          fontRenderer.drawString(displayString, xPos, yPos + textY, when {
                                                              rainbow -> 0
                                                              colorMode.equals("Random", ignoreCase = true) -> moduleColor
                                  							colorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                              else -> customColor
                                                          }, textShadow)
                                                      }
                                  
                                                      val rectColorRainbow = rectColorMode.equals("Rainbow", ignoreCase = true)
                                  
                                                      RainbowShader.begin(rectColorRainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                                          if (!rectMode.equals("none", true)) {
                                                              val rectColor = when {
                                                                  rectColorRainbow -> 0
                                                                  rectColorMode.equals("Random", ignoreCase = true) -> moduleColor
                                  				rectColorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                                  else -> rectCustomColor
                                                              }
                                  
                                                              when {
                                                                  rectMode.equals("left", true) -> RenderUtils.drawRect(0F,
                                                                          yPos - 1, 3F, yPos + textHeight, rectColor)
                                                                  rectMode.equals("right", true) ->
                                                                      RenderUtils.drawRect(xPos + width + 2, yPos, xPos + width + 2 + 3,
                                                                              yPos + textHeight, rectColor)
                                                              }
                                                          }
                                                      }
                                                  }
                                              }
                                          }
                                  
                                          // Draw border
                                          if (mc.currentScreen is GuiHudDesigner) {
                                              x2 = Int.MIN_VALUE
                                  
                                              if (modules.isEmpty()) {
                                                  return if (side.horizontal == Horizontal.LEFT)
                                                      Border(0F, -1F, 20F, 20F)
                                                  else
                                                      Border(0F, -1F, -20F, 20F)
                                              }
                                  
                                              for (module in modules) {
                                                  when (side.horizontal) {
                                                      Horizontal.RIGHT, Horizontal.MIDDLE -> {
                                                          val xPos = -module.slide.toInt() - 2
                                                          if (x2 == Int.MIN_VALUE || xPos < x2) x2 = xPos
                                                      }
                                                      Horizontal.LEFT -> {
                                                          val xPos = module.slide.toInt() + 14
                                                          if (x2 == Int.MIN_VALUE || xPos > x2) x2 = xPos
                                                      }
                                                  }
                                              }
                                              y2 = (if (side.vertical == Vertical.DOWN) -textSpacer else textSpacer) * modules.size
                                  
                                              return Border(0F, 0F, x2 - 7F, y2 - if (side.vertical == Vertical.DOWN) 1F else 0F)
                                          }
                                  
                                          AWTFontRenderer.assumeNonVolatile = false
                                          GlStateManager.resetColor()
                                          return null
                                      }
                                  
                                      override fun updateElement() {
                                          modules = LiquidBounce.moduleManager.modules
                                                  .filter { it.array && it.slide > 0 }
                                                  .sortedBy { -fontValue.get().getStringWidth(if (upperCaseValue.get()) (if (!tags.get()) it.name else if (tagsArrayColor.get()) it.colorlessTagName else it.tagName).toUpperCase() else if (!tags.get()) it.name else if (tagsArrayColor.get()) it.colorlessTagName else it.tagName) }
                                      }
                                  }
                                  

                                  omg aquabounce src leaked???

                                  LitelyL Offline
                                  LitelyL Offline
                                  Litely
                                  wrote on last edited by
                                  #26

                                  @chocopiexd where

                                  1 Reply Last reply
                                  0
                                  • CrediC Offline
                                    CrediC Offline
                                    Credi
                                    wrote on last edited by
                                    #27

                                    where do i find RenderUtils

                                    Q 1 Reply Last reply
                                    0
                                    • CrediC Credi

                                      where do i find RenderUtils

                                      Q Offline
                                      Q Offline
                                      quadro
                                      wrote on last edited by
                                      #28

                                      @credivixal duckduckgo

                                      1 Reply Last reply
                                      0
                                      • LitelyL Litely

                                        included outline rect lol ez skid jajja

                                        BobikHatarB Offline
                                        BobikHatarB Offline
                                        BobikHatar
                                        wrote on last edited by BobikHatar
                                        #29

                                        @litely https://media.discordapp.net/attachments/861172073899884544/876010985540960286/Action_14-08-2021_10-52-51.gif

                                        1 Reply Last reply
                                        0
                                        • LitelyL Litely

                                          @xiteeey-l said in Array list help:

                                          @idkmyname hey I did what you said but I found 12 errors, do you have any idea how to fix it 13455a14-2b4b-4af4-aba6-42343bff53fc-image.png

                                          lol sorry i was using notepad
                                          fixed

                                          /*
                                           * LiquidBounce Hacked Client
                                           * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge.
                                           * https://github.com/CCBlueX/LiquidBounce/
                                           */
                                          package net.ccbluex.liquidbounce.ui.client.hud.element.elements
                                          
                                          import net.ccbluex.liquidbounce.LiquidBounce
                                          import net.ccbluex.liquidbounce.features.module.Module
                                          import net.ccbluex.liquidbounce.ui.client.hud.designer.GuiHudDesigner
                                          import net.ccbluex.liquidbounce.ui.client.hud.element.Border
                                          import net.ccbluex.liquidbounce.ui.client.hud.element.Element
                                          import net.ccbluex.liquidbounce.ui.client.hud.element.ElementInfo
                                          import net.ccbluex.liquidbounce.ui.client.hud.element.Side
                                          import net.ccbluex.liquidbounce.ui.client.hud.element.Side.Horizontal
                                          import net.ccbluex.liquidbounce.ui.client.hud.element.Side.Vertical
                                          import net.ccbluex.liquidbounce.ui.font.AWTFontRenderer
                                          import net.ccbluex.liquidbounce.ui.font.Fonts
                                          import net.ccbluex.liquidbounce.utils.render.AnimationUtils
                                          import net.ccbluex.liquidbounce.utils.render.RenderUtils
                                          import net.ccbluex.liquidbounce.utils.render.shader.shaders.RainbowFontShader
                                          import net.ccbluex.liquidbounce.utils.render.shader.shaders.RainbowShader
                                          import net.ccbluex.liquidbounce.value.*
                                          import net.minecraft.client.renderer.GlStateManager
                                          import java.awt.Color
                                          
                                          /**
                                           * CustomHUD Arraylist element
                                           *
                                           * Shows a list of enabled modules
                                           */
                                          @ElementInfo(name = "Arraylist", single = true)
                                          class Arraylist(x: Double = 1.0, y: Double = 2.0, scale: Float = 1F,
                                                          side: Side = Side(Horizontal.RIGHT, Vertical.UP)) : Element(x, y, scale, side) {
                                              private val rainbowX = FloatValue("Rainbow-X", -1000F, -2000F, 2000F)
                                              private val rainbowY = FloatValue("Rainbow-Y", -1000F, -2000F, 2000F)
                                              private val colorModeValue = ListValue("Text-Color", arrayOf("Custom", "Random", "Rainbow", "Astolfo"), "Custom")
                                              private val colorRedValue = IntegerValue("Text-R", 0, 0, 255)
                                              private val colorGreenValue = IntegerValue("Text-G", 111, 0, 255)
                                              private val colorBlueValue = IntegerValue("Text-B", 255, 0, 255)
                                              private val rectColorModeValue = ListValue("Rect-Color", arrayOf("Custom", "Random", "Rainbow", "Astolfo"), "Rainbow")
                                              private val rectColorRedValue = IntegerValue("Rect-R", 255, 0, 255)
                                              private val rectColorGreenValue = IntegerValue("Rect-G", 255, 0, 255)
                                              private val rectColorBlueValue = IntegerValue("Rect-B", 255, 0, 255)
                                              private val rectColorBlueAlpha = IntegerValue("Rect-Alpha", 255, 0, 255)
                                              private val saturationValue = FloatValue("Random-Saturation", 0.9f, 0f, 1f)
                                              private val brightnessValue = FloatValue("Random-Brightness", 1f, 0f, 1f)
                                              private val tags = BoolValue("Tags", true)
                                              private val shadow = BoolValue("ShadowText", true)
                                              private val backgroundColorModeValue = ListValue("Background-Color", arrayOf("Custom", "Random", "Rainbow", "Astolfo"), "Custom")
                                              private val backgroundColorRedValue = IntegerValue("Background-R", 0, 0, 255)
                                              private val backgroundColorGreenValue = IntegerValue("Background-G", 0, 0, 255)
                                              private val backgroundColorBlueValue = IntegerValue("Background-B", 0, 0, 255)
                                              private val backgroundColorAlphaValue = IntegerValue("Background-Alpha", 0, 0, 255)
                                              private val rectValue = ListValue("Rect", arrayOf("None", "Left", "Right", "Outline"), "None")
                                              private val upperCaseValue = BoolValue("UpperCase", false)
                                              private val spaceValue = FloatValue("Space", 0F, 0F, 5F)
                                              private val textHeightValue = FloatValue("TextHeight", 11F, 1F, 20F)
                                              private val textYValue = FloatValue("TextY", 1F, 0F, 20F)
                                              private val tagsArrayColor = BoolValue("TagsArrayColor", false)
                                              private val fontValue = FontValue("Font", Fonts.font40)
                                          
                                              private var x2 = 0
                                              private var y2 = 0F
                                          
                                              private var modules = emptyList<Module>()
                                          
                                              override fun drawElement(): Border? {
                                                  val fontRenderer = fontValue.get()
                                          
                                                  AWTFontRenderer.assumeNonVolatile = true
                                          
                                                  // Slide animation - update every render
                                                  val delta = RenderUtils.deltaTime
                                          
                                                  for (module in LiquidBounce.moduleManager.modules) {
                                                      if (!module.array || (!module.state && module.slide == 0F)) continue
                                          
                                                      var displayString = if (!tags.get())
                                                          module.name
                                                      else if (tagsArrayColor.get())
                                                          module.colorlessTagName
                                                      else module.tagName
                                          
                                                      if (upperCaseValue.get())
                                                          displayString = displayString.toUpperCase()
                                          
                                                      val width = fontRenderer.getStringWidth(displayString)
                                          
                                                      if (module.state) {
                                                          if (module.slide < width) {
                                                              module.slide = AnimationUtils.easeOut(module.slideStep, width.toFloat()) * width
                                                              module.slideStep += delta / 4F
                                                          }
                                                      } else if (module.slide > 0) {
                                                          module.slide = AnimationUtils.easeOut(module.slideStep, width.toFloat()) * width
                                                          module.slideStep -= delta / 4F
                                                      }
                                          
                                                      module.slide = module.slide.coerceIn(0F, width.toFloat())
                                                      module.slideStep = module.slideStep.coerceIn(0F, width.toFloat())
                                                  }
                                          
                                                  // Draw arraylist
                                                  val colorMode = colorModeValue.get()
                                                  val rectColorMode = rectColorModeValue.get()
                                                  val backgroundColorMode = backgroundColorModeValue.get()
                                                  val customColor = Color(colorRedValue.get(), colorGreenValue.get(), colorBlueValue.get(), 1).rgb
                                                  val rectCustomColor = Color(rectColorRedValue.get(), rectColorGreenValue.get(), rectColorBlueValue.get(),
                                                      rectColorBlueAlpha.get()).rgb
                                                  val space = spaceValue.get()
                                                  val textHeight = textHeightValue.get()
                                                  val textY = textYValue.get()
                                                  val rectMode = rectValue.get()
                                                  val backgroundCustomColor = Color(backgroundColorRedValue.get(), backgroundColorGreenValue.get(),
                                                      backgroundColorBlueValue.get(), backgroundColorAlphaValue.get()).rgb
                                                  val textShadow = shadow.get()
                                                  val textSpacer = textHeight + space
                                                  val saturation = saturationValue.get()
                                                  val brightness = brightnessValue.get()
                                          
                                                  when (side.horizontal) {
                                                      Horizontal.RIGHT, Horizontal.MIDDLE -> {
                                                          modules.forEachIndexed { index, module ->
                                                              var displayString = if (!tags.get())
                                                                  module.name
                                                              else if (tagsArrayColor.get())
                                                                  module.colorlessTagName
                                                              else module.tagName
                                          
                                                              if (upperCaseValue.get())
                                                                  displayString = displayString.toUpperCase()
                                          
                                                              val xPos = -module.slide - 2
                                                              val yPos = (if (side.vertical == Vertical.DOWN) -textSpacer else textSpacer) *if (side.vertical == Vertical.DOWN) index + 1 else index
                                                              val moduleColor = Color.getHSBColor(module.hue, saturation, brightness).rgb
                                          
                                                              val counter = intArrayOf(0)
                                                              val Sky: Int
                                                              Sky = RenderUtils.SkyRainbow(counter[0] * 100, saturationValue.get(), brightnessValue.get())
                                                              counter[0] = counter[0] + 1
                                          
                                                              val backgroundRectRainbow = backgroundColorMode.equals("Rainbow", ignoreCase = true)
                                          
                                                              RainbowShader.begin(backgroundRectRainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                                                  RenderUtils.drawRect(
                                                                      xPos - if (rectMode.equals("right", true)) 5 else 2,
                                                                      yPos,
                                                                      if (rectMode.equals("right", true)) -3F else 0F,
                                                                      yPos + textHeight, when {
                                                                          backgroundRectRainbow -> 0xFF shl 24
                                                                          backgroundColorMode.equals("Random", ignoreCase = true) -> moduleColor
                                                                          backgroundColorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                                          else -> backgroundCustomColor
                                                                      }
                                                                  )
                                                              }
                                          
                                                              val rainbow = colorMode.equals("Rainbow", ignoreCase = true)
                                          
                                                              RainbowFontShader.begin(rainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                                                  fontRenderer.drawString(displayString, xPos - if (rectMode.equals("right", true)) 3 else 0, yPos + textY, when {
                                                                      rainbow -> 0
                                                                      colorMode.equals("Random", ignoreCase = true) -> moduleColor
                                                                      colorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                                      else -> customColor
                                                                  }, textShadow)
                                                              }
                                          
                                                              if (!rectMode.equals("none", true)) {
                                                                  val rectRainbow = rectColorMode.equals("Rainbow", ignoreCase = true)
                                          
                                                                  RainbowShader.begin(rectRainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                                                      val rectColor = when {
                                                                          rectRainbow -> 0
                                                                          rectColorMode.equals("Random", ignoreCase = true) -> moduleColor
                                                                          rectColorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                                          else -> rectCustomColor
                                                                      }
                                          
                                                                      when {
                                                                          rectMode.equals("left", true) -> RenderUtils.drawRect(xPos - 5, yPos, xPos - 2, yPos + textHeight,
                                                                              rectColor)
                                                                          rectMode.equals("right", true) -> RenderUtils.drawRect(-3F, yPos, 0F,
                                                                              yPos + textHeight, rectColor)
                                                                          rectMode.equals("outline", true) -> {
                                                                              RenderUtils.drawRect(-1F, yPos - 1F, 0F, yPos + textHeight, rectColor)
                                                                              RenderUtils.drawRect(xPos - 3, yPos, xPos - 2, yPos + textHeight, rectColor)
                                                                              if (module != modules[0]) {
                                                                                  var displayStrings = if (!tags.get())
                                                                                      modules[index - 1].name
                                                                                  else if (tagsArrayColor.get())
                                                                                      modules[index - 1].colorlessTagName
                                                                                  else modules[index - 1].tagName
                                          
                                                                                  if (upperCaseValue.get())
                                                                                      displayStrings = displayStrings.toUpperCase()
                                          
                                                                                  RenderUtils.drawRect(xPos - 3 - (fontRenderer.getStringWidth(displayStrings) - fontRenderer.getStringWidth(displayString)), yPos, xPos - 2, yPos + 1,
                                                                                      rectColor)
                                                                                  if (module == modules[modules.size - 1]) {
                                                                                      RenderUtils.drawRect(xPos - 3, yPos + textHeight, 0.0F, yPos + textHeight + 1,
                                                                                          rectColor)
                                                                                  }
                                                                              }
                                                                          }
                                                                      }
                                                                  }
                                                              }
                                                          }
                                                      }
                                          
                                                      Horizontal.LEFT -> {
                                                          modules.forEachIndexed { index, module ->
                                                              var displayString = if (!tags.get())
                                                                  module.name
                                                              else if (tagsArrayColor.get())
                                                                  module.colorlessTagName
                                                              else module.tagName
                                          
                                                              if (upperCaseValue.get())
                                                                  displayString = displayString.toUpperCase()
                                          
                                                              val width = fontRenderer.getStringWidth(displayString)
                                                              val xPos = -(width - module.slide) + if (rectMode.equals("left", true)) 5 else 2
                                                              val yPos = (if (side.vertical == Vertical.DOWN) -textSpacer else textSpacer) *
                                                                      if (side.vertical == Vertical.DOWN) index + 1 else index
                                                              val moduleColor = Color.getHSBColor(module.hue, saturation, brightness).rgb
                                          
                                                              val counter = intArrayOf(0)
                                                              val Sky: Int
                                                              Sky = RenderUtils.SkyRainbow(counter[0] * 100, saturationValue.get(), brightnessValue.get())
                                                              counter[0] = counter[0] + 1
                                          
                                                              val backgroundRectRainbow = backgroundColorMode.equals("Rainbow", ignoreCase = true)
                                          
                                                              RainbowShader.begin(backgroundRectRainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                                                  RenderUtils.drawRect(
                                                                      0F,
                                                                      yPos,
                                                                      xPos + width + if (rectMode.equals("right", true)) 5 else 2,
                                                                      yPos + textHeight, when {
                                                                          backgroundRectRainbow -> 0
                                                                          backgroundColorMode.equals("Random", ignoreCase = true) -> moduleColor
                                                                          backgroundColorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                                          else -> backgroundCustomColor
                                                                      }
                                                                  )
                                                              }
                                          
                                                              val rainbow = colorMode.equals("Rainbow", ignoreCase = true)
                                          
                                                              RainbowFontShader.begin(rainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                                                  fontRenderer.drawString(displayString, xPos, yPos + textY, when {
                                                                      rainbow -> 0
                                                                      colorMode.equals("Random", ignoreCase = true) -> moduleColor
                                                                      colorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                                      else -> customColor
                                                                  }, textShadow)
                                                              }
                                          
                                                              val rectColorRainbow = rectColorMode.equals("Rainbow", ignoreCase = true)
                                          
                                                              RainbowShader.begin(rectColorRainbow, if (rainbowX.get() == 0.0F) 0.0F else 1.0F / rainbowX.get(), if (rainbowY.get() == 0.0F) 0.0F else 1.0F / rainbowY.get(), System.currentTimeMillis() % 10000 / 10000F).use {
                                                                  if (!rectMode.equals("none", true)) {
                                                                      val rectColor = when {
                                                                          rectColorRainbow -> 0
                                                                          rectColorMode.equals("Random", ignoreCase = true) -> moduleColor
                                                                          rectColorMode.equals("Astolfo", ignoreCase = true) -> Sky
                                                                          else -> rectCustomColor
                                                                      }
                                          
                                                                      when {
                                                                          rectMode.equals("left", true) -> RenderUtils.drawRect(0F,
                                                                              yPos - 1, 3F, yPos + textHeight, rectColor)
                                                                          rectMode.equals("right", true) ->
                                                                              RenderUtils.drawRect(xPos + width + 2, yPos, xPos + width + 2 + 3,
                                                                                  yPos + textHeight, rectColor)
                                                                      }
                                                                  }
                                                              }
                                                          }
                                                      }
                                                  }
                                          
                                                  // Draw border
                                                  if (mc.currentScreen is GuiHudDesigner) {
                                                      x2 = Int.MIN_VALUE
                                          
                                                      if (modules.isEmpty()) {
                                                          return if (side.horizontal == Horizontal.LEFT)
                                                              Border(0F, -1F, 20F, 20F)
                                                          else
                                                              Border(0F, -1F, -20F, 20F)
                                                      }
                                          
                                                      for (module in modules) {
                                                          when (side.horizontal) {
                                                              Horizontal.RIGHT, Horizontal.MIDDLE -> {
                                                                  val xPos = -module.slide.toInt() - 2
                                                                  if (x2 == Int.MIN_VALUE || xPos < x2) x2 = xPos
                                                              }
                                                              Horizontal.LEFT -> {
                                                                  val xPos = module.slide.toInt() + 14
                                                                  if (x2 == Int.MIN_VALUE || xPos > x2) x2 = xPos
                                                              }
                                                          }
                                                      }
                                                      y2 = (if (side.vertical == Vertical.DOWN) -textSpacer else textSpacer) * modules.size
                                          
                                                      return Border(0F, 0F, x2 - 7F, y2 - if (side.vertical == Vertical.DOWN) 1F else 0F)
                                                  }
                                          
                                                  AWTFontRenderer.assumeNonVolatile = false
                                                  GlStateManager.resetColor()
                                                  return null
                                              }
                                          
                                              override fun updateElement() {
                                                  modules = LiquidBounce.moduleManager.modules
                                                      .filter { it.array && it.slide > 0 }
                                                      .sortedBy { -fontValue.get().getStringWidth(if (upperCaseValue.get()) (if (!tags.get()) it.name else if (tagsArrayColor.get()) it.colorlessTagName else it.tagName).toUpperCase() else if (!tags.get()) it.name else if (tagsArrayColor.get()) it.colorlessTagName else it.tagName) }
                                              }
                                          }
                                          
                                          mike melonyM Offline
                                          mike melonyM Offline
                                          mike melony
                                          wrote on last edited by
                                          #30

                                          @litely said in Array list help:

                                          Animation

                                          could u give Animationside for arraylist?

                                          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
                                          • Users
                                          • Groups