Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

poopsicle

Members
  • Joined

  • Last visited

  1. You are right thanks, it seems it automaticly declared the Alpha to 00.
  2. The arguments are at least for HorizontalLine(srcX, destX, yPos, color) so 64_000 is the color, and its a bright green. No color shows up, even if put in hex format, or just a 0 is used(black).
  3. anyone know, or wanna point out why it doesnt work? Otherwise i guess ill have to do a texture on the sheet for the bar.
  4. I am not new to java, but am to OPGL, and minecraft logic in terms of whatever mojang has decided todo... Im trying to draw a button, and on the button is a little meter. But the bar (line will not render), the following methods do not work at all for me. Regardless if im using it from within a button subclass or the guiScreen. -drawRect -drawHorizonalRect -drawVerticalRect @Override public void drawButton(Minecraft mc, int mouseX, int mouseY) { if (this.visible) { mc.getTextureManager().bindTexture(texture); this.hovered = mouseX >= this.xPosition && mouseY >= this.yPosition && mouseX < this.xPosition + this.width && mouseY < this.yPosition + this.height; GlStateManager.enableBlend(); GlStateManager.tryBlendFuncSeparate(770, 771, 1, 0); GlStateManager.blendFunc(770, 771); int baseX = this.xPosition; int baseY = this.yPosition + (this.id * 25); drawTexturedModalRect(baseX, baseY, 0, 0, 35, 22); drawHorizontalLine(baseX + 15, baseX + 7, baseY + 20, 64_000);//meter mc.getRenderItem().renderItemIntoGUI(new ItemStack(Item.getByNameOrId("minecraft:diamond_axe")), baseX, baseY + 2); this.mouseDragged(mc, mouseX, mouseY); mc.fontRendererObj.drawString("5%"+, baseX, baseY + 7, 3947580); } } P.S. bbcodes and such dont seem to want to work, i only knew the code one from the top of my head.

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.