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

  • Default (No Skin)
  • No Skin
Collapse

LiquidBounce Forum

  1. Home
  2. Off-Topic
  3. Modern Hotbar SRC

Modern Hotbar SRC

Scheduled Pinned Locked Moved Off-Topic
6 Posts 5 Posters 543 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
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
      • T Offline
        T Offline
        Teals53
        replied to notautismatall on last edited by
        #3

        @notautismatall maybe changing your hotbar style

        MarvinM 1 Reply Last reply
        1
        • MarvinM Offline
          MarvinM Offline
          Marvin Moderator
          replied to Teals53 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
          • LitelyL Offline
            LitelyL Offline
            Litely
            replied to Marvin 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
            • T Offline
              T Offline
              Teals53
              replied to Marvin on last edited by
              #6

              @Marvin ??

              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

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