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. Off-Topic
  3. Modern Hotbar SRC

Modern Hotbar SRC

Scheduled Pinned Locked Moved Off-Topic
6 Posts 5 Posters 1.9k 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.
  • ClaceMeatC Offline
    ClaceMeatC Offline
    ClaceMeat
    wrote on last edited by ClaceMeat
    #1

    Hello,

    Today's publication I a modern hotbar for all skids among you.
    There are 2 modes - 1x wide & 1x compact.

    In both modes, no strings have been added, instead this is conceivable.

    Tutorial:

    1. Opens the class "GuiIngame.java"
      (Eclipse: CTRL + SHIFT + R / IntelliJ: CTRL + N)

    2. Navigates to the "func_180479_a" function
      (for those with better mappings it should be possible to consult the mappings (.xml file))

    width Hotbar

    Code:
    
    ScaledResolution s = new ScaledResolution(Wrapper.mc, Wrapper.mc.displayWidth, Wrapper.mc.displayHeight);
    RenderUtils.drawOldRect(0, s.getScaledHeight() - 23, s.getScaledWidth(), s.getScaledHeight(), new Color(0, 0, 0, 180).hashCode());
    
    if (Wrapper.mc.thePlayer.inventory.currentItem == 0) {
        RenderUtils.drawOldRect((s.getScaledWidth() / 2) - 91 + Wrapper.mc.thePlayer.inventory.currentItem * 20, s.getScaledHeight() - 23, (s.getScaledWidth() / 2) + 91 - 20 * 8, s.getScaledHeight(), -1);
    } else {
        RenderUtils.drawOldRect((s.getScaledWidth() / 2) - 91 + Wrapper.mc.thePlayer.inventory.currentItem * 20, s.getScaledHeight() - 23, (s.getScaledWidth() / 2) + 91 - 20 * (8 - Wrapper.mc.thePlayer.inventory.currentItem), s.getScaledHeight(), -1);
    }
    
    EntityPlayer var3 = (EntityPlayer) this.mc.func_175606_aa();
    RenderHelper.enableGUIStandardItemLighting();
    
    for (int var6 = 0; var6 < 9; ++var6) {
        int var7 = p_180479_1_.getScaledWidth() / 2 - 90 + var6 * 20 + 2;
        int var8 = p_180479_1_.getScaledHeight() - 16 - 3;
        this.func_175184_a(var6, var7, var8, p_180479_2_, var3);
    }
    
    RenderHelper.disableStandardItemLighting();
    GlStateManager.disableRescaleNormal();
    GlStateManager.disableBlend();
    
    

    Smal Hotbar

    ScaledResolution s = new ScaledResolution(Wrapper.mc, Wrapper.mc.displayWidth, Wrapper.mc.displayHeight);
    RenderUtils.drawOldRect((s.getScaledWidth() / 2) - 91, s.getScaledHeight() - 23, (s.getScaledWidth() / 2) + 91, s.getScaledHeight(), new Color(0, 0, 0, 180).hashCode());
    
    if (Wrapper.mc.thePlayer.inventory.currentItem == 0) {
        RenderUtils.drawOldRect((s.getScaledWidth() / 2) - 91 + Wrapper.mc.thePlayer.inventory.currentItem * 20, s.getScaledHeight() - 23, (s.getScaledWidth() / 2) + 91 - 20 * 8, s.getScaledHeight(), -1);
    } else {
        RenderUtils.drawOldRect((s.getScaledWidth() / 2) - 91 + Wrapper.mc.thePlayer.inventory.currentItem * 20, s.getScaledHeight() - 23, (s.getScaledWidth() / 2) + 91 - 20 * (8 - Wrapper.mc.thePlayer.inventory.currentItem), s.getScaledHeight(), -1);
    }
    
    EntityPlayer var3 = (EntityPlayer) this.mc.func_175606_aa();
    RenderHelper.enableGUIStandardItemLighting();
    
    for (int var6 = 0; var6 < 9; ++var6) {
        int var7 = p_180479_1_.getScaledWidth() / 2 - 90 + var6 * 20 + 2;
        int var8 = p_180479_1_.getScaledHeight() - 16 - 3;
        this.func_175184_a(var6, var7, var8, p_180479_2_, var3);
    }
    
    RenderHelper.disableStandardItemLighting();
    GlStateManager.disableRescaleNormal();
    GlStateManager.disableBlend();
    

    3.Replaces the code with the code from the respective spoiler
    (save the original code; would recommend a SettingsManager to be able to switch between designs if necessary)

    1. Starts the client and checks that everything is working properly.
      (Hot swap possible with existing session, but without guarantee)
    1 Reply Last reply
    0
    • notautismatallN Offline
      notautismatallN Offline
      notautismatall
      wrote on last edited by
      #2

      What does it do?

      T 1 Reply Last reply
      0
      • notautismatallN notautismatall

        What does it do?

        T Offline
        T Offline
        Teals53
        wrote on last edited by
        #3

        @notautismatall maybe changing your hotbar style

        MarvinM 1 Reply Last reply
        1
        • T Teals53

          @notautismatall maybe changing your hotbar style

          MarvinM Offline
          MarvinM Offline
          Marvin
          Moderator
          wrote on last edited by
          #4

          @Teals53 said in Modern Hotbar SRC:

          @notautismatall maybe changing your hotbar style

          no shit sherlock, but they probably wanted a screenshot of what exactly the hotbar will look like

          LitelyL T 2 Replies Last reply
          0
          • MarvinM Marvin

            @Teals53 said in Modern Hotbar SRC:

            @notautismatall maybe changing your hotbar style

            no shit sherlock, but they probably wanted a screenshot of what exactly the hotbar will look like

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

            no shit sherlock, but they probably wanted a screenshot of what exactly the hotbar will look like

            1 Reply Last reply
            0
            • MarvinM Marvin

              @Teals53 said in Modern Hotbar SRC:

              @notautismatall maybe changing your hotbar style

              no shit sherlock, but they probably wanted a screenshot of what exactly the hotbar will look like

              T Offline
              T Offline
              Teals53
              wrote on last edited by
              #6

              @Marvin ??

              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