CCBlueX Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Array list help

    Kotlin/Java
    16
    30
    1238
    Loading More Posts
    • 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.
    • T
      toriset last edited by

      Can someone give me an ArrayList like the astolfo one but red and also tell me how to install kotlin array lists etc.

      E exit scammed T 3 Replies Last reply Reply Quote 0
      • E
        Ender__Flash @toriset last edited by

        @toriset Снимок экрана от 2021-03-15 20-25-56.png AstolfoRainbow like this?

        antivacer WaterFlex Riodoro 3 Replies Last reply Reply Quote 0
        • exit scammed
          exit scammed @toriset last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • antivacer
            antivacer @Ender__Flash last edited by

            @ender__flash какой нафиг линукс
            elementary os?

            E 1 Reply Last reply Reply Quote 0
            • E
              Ender__Flash @antivacer last edited by

              @antivacer Ubuntu линукс, а в чём проблема чувак?

              antivacer 1 Reply Last reply Reply Quote 0
              • antivacer
                antivacer @Ender__Flash last edited by

                @ender__flash да просто спросил

                1 Reply Last reply Reply Quote 0
                • WaterFlex
                  WaterFlex @Ender__Flash last edited by

                  @ender__flash как такой ArrayList сделать?!

                  E 1 Reply Last reply Reply Quote 0
                  • E
                    Ender__Flash @WaterFlex last edited by

                    @waterflex Взять и сделать.

                    1 Reply Last reply Reply Quote 0
                    • T
                      toriset @toriset last edited by

                      @toriset Ye skinda but more red like this kinda
                      astolfo.png

                      1 Reply Last reply Reply Quote 0
                      • Riodoro
                        Riodoro @Ender__Flash last edited by Riodoro

                        @ender__flash can you give it to me pleeeeeeeease?

                        E Litely 2 Replies Last reply Reply Quote 0
                        • E
                          Ender__Flash @Riodoro last edited by

                          @riodoro no.

                          1 Reply Last reply Reply Quote 0
                          • Litely
                            Litely @Riodoro last edited by

                            @riodoro said in Array list help:

                            @ender__flash can you give it to me pleeeeeeeease?

                            ok

                            Litely 1 Reply Last reply Reply Quote 0
                            • Litely
                              Litely @Litely last edited by 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) }
                                  }
                              }
                              
                              ? 1 Reply Last reply Reply Quote 0
                              • Litely
                                Litely last edited by

                                included outline rect lol ez skid jajja

                                Riodoro skiddermaster412 Xiteeey L BobikHatar 4 Replies Last reply Reply Quote 0
                                • Riodoro
                                  Riodoro @Litely last edited by

                                  @idkmyname thx

                                  1 Reply Last reply Reply Quote 0
                                  • skiddermaster412
                                    skiddermaster412 Banned @Litely last edited by

                                    @idkmyname wher download 😡

                                    1 Reply Last reply Reply Quote 0
                                    • Xiteeey L
                                      Xiteeey L @Litely last edited by

                                      @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

                                      Litely 1 Reply Last reply Reply Quote 0
                                      • Litely
                                        Litely @Xiteeey L last edited by

                                        @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 L mike melony 2 Replies Last reply Reply Quote 0
                                        • Xiteeey L
                                          Xiteeey L @Litely last edited by

                                          @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 Reply Quote 0
                                          • I
                                            idk my name @Xiteeey L last edited by

                                            @xiteeey-l use crossversion retard

                                            1 Reply Last reply Reply Quote 1
                                            • First post
                                              Last post
                                            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