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.

yourname99

Members
  • Joined

  • Last visited

Everything posted by yourname99

  1. When I make a GUI I begin mostly by just copying one of the minecraft GUI's (for example dispenser.png). After that I gray out everything that I don't need so that I have a nearly blank GUI. Then I add everything that will later be static directly with the image editing program on the GUI. Every other stuff I place somethere in the unused transparent area of the picture and place them later right with rectangles. For finding out pixel coordinates and sizes for rectangles I use something like the measurement tools in photoshop. Everything else I do in code. An easy way to place things like the rectangles right in the GUI is this: this.drawTexturedModalRect(x, y, 7, 134, 54, 18); if (Keyboard.isKeyDown(Keyboard.KEY_UP)) { y--; System.out.println("y = " + y); } if (Keyboard.isKeyDown(Keyboard.KEY_DOWN)) { y++; System.out.println("y = " + y); } if (Keyboard.isKeyDown(Keyboard.KEY_LEFT)) { x--; System.out.println("x = " + x); } if (Keyboard.isKeyDown(Keyboard.KEY_RIGHT)) { x++; System.out.println("x = " + x); } With this you can adjust everything ingame with the arrow keys and then read later the right coordinates out of the console. I also prefer to make the text in code. So you can easily change things dynamically for things such as the localization.

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.