• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

LiquidBounce Forum

[Kotlin]ArrayList Border

Scheduled Pinned Locked Moved Scripts
30 Posts 11 Posters 2.0k 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.
  • GkingG Offline
    GkingG Offline
    Gking
    wrote on last edited by
    #1
                                 RenderUtils.drawRect(-1F, module.higt - 1F, 0F,
                                                module.higt + textHeight, rectColor)
                                        RenderUtils.drawRect(xPos - 3, module.higt, xPos - 2, module.higt + 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)), module.higt, xPos - 2, module.higt + 1,
                                                    rectColor) 
                                            if (module == modules[modules.size - 1]) {
                                                RenderUtils.drawRect(xPos - 3, module.higt + textHeight, 0.0F, module.higt + textHeight + 1,
                                                        rectColor)
                                            }
                                        }
    

    You can use this to make a Border in Arraylist.kt

    I 3 Replies Last reply
    2
  • I Offline
    I Offline
    idk my name
    replied to Gking on last edited by
    #2

    @gking undefined: module.higt

    GkingG 1 Reply Last reply
    0
  • I Offline
    I Offline
    idk my name
    replied to Gking on last edited by
    #3

    @gking upd: had a look into liquidsense's src and higt is 0-2 in Module.kt

    1 Reply Last reply
    0
  • GkingG Offline
    GkingG Offline
    Gking
    replied to idk my name on last edited by
    #4

    @idk-my-name just change it to "yPos"

    I 1 Reply Last reply
    0
  • I Offline
    I Offline
    idk my name
    replied to Gking on last edited by
    #5

    @gking ok wait hotswapping game

    1 Reply Last reply
    0
  • I Offline
    I Offline
    idk my name
    wrote on last edited by idk my name
    #6

    ok unknown-4.png

    O 1 Reply Last reply
    0
  • O Offline
    O Offline
    ohno
    replied to idk my name on last edited by
    #7

    @idk-my-name same effect.
    @Gking fix this code lmao

    1 Reply Last reply
    0
  • GkingG Offline
    GkingG Offline
    Gking
    wrote on last edited by
    #8

    it will be like this(![OOIB$U5WDX}9SMFR(3W~1V.png image url

    O 1 Reply Last reply
    0
  • O Offline
    O Offline
    ohno
    replied to Gking on last edited by
    #9

    @gking nope, it does not work for me.

    GkingG 1 Reply Last reply
    0
  • GkingG Offline
    GkingG Offline
    Gking
    replied to ohno on last edited by
    #10
    @ohno                                     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) 
                                            }
                                        }
    

    what about this one

    Ushgfyhjg fdxdfgfdsgU O some oneS 3 Replies Last reply
    0
  • Ushgfyhjg fdxdfgfdsgU Offline
    Ushgfyhjg fdxdfgfdsgU Offline
    Ushgfyhjg fdxdfgfdsg
    replied to Gking on last edited by
    #11
    This post is deleted!
    GkingG 1 Reply Last reply
    0
  • GkingG Offline
    GkingG Offline
    Gking
    replied to Ushgfyhjg fdxdfgfdsg on last edited by
    #12

    @ushgfyhjg-fdxdfgfdsg no,because I made something private in it

    1 Reply Last reply
    0
  • O Offline
    O Offline
    ohno
    replied to Gking on last edited by
    #13

    @gking Thank you!

    Ushgfyhjg fdxdfgfdsgU 1 Reply Last reply
    0
  • I Offline
    I Offline
    idk my name
    replied to Gking on last edited by
    #14

    @gking thx!

    1 Reply Last reply
    0
  • Ushgfyhjg fdxdfgfdsgU Offline
    Ushgfyhjg fdxdfgfdsgU Offline
    Ushgfyhjg fdxdfgfdsg
    replied to ohno on last edited by Ushgfyhjg fdxdfgfdsg
    #15
    This post is deleted!
    O 1 Reply Last reply
    0
  • O Offline
    O Offline
    ohno
    replied to Ushgfyhjg fdxdfgfdsg on last edited by
    #16

    @ushgfyhjg-fdxdfgfdsg https://forums.ccbluex.net/topic/1186/tut-how-to-make-border-in-arraylist-modifying-lb-s-src

    1 Reply Last reply
    0
  • some oneS Offline
    some oneS Offline
    some one
    replied to Gking on last edited by
    #17

    @gking help me, something wrong aec76af8-b6d5-4980-9a0d-4b25562ef767-image.png

    O 1 Reply Last reply
    0
  • O Offline
    O Offline
    ohno
    replied to some one on last edited by
    #18

    @some-one eblan....

    some oneS 1 Reply Last reply
    0
  • some oneS Offline
    some oneS Offline
    some one
    replied to ohno on last edited by
    #19

    @ohno what should I do?

    1 Reply Last reply
    0
  • M Offline
    M Offline
    MelonS
    wrote on last edited by
    #20

    那应该怎么去使用这个呢.

    1 Reply Last reply
    0

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

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups