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.

Featured Replies

Posted

Hey! I finally managed to create and understand a GUI. Currently I'm trying to create buttons for it. I would really like to have custom ones. That means button with custom background/icon or an clickable item. Currently I'm thinking of achieving the first one by rendering another texture over the button and changing it on mousePressed, however that isn't doable with the item if it has transparency. Is there some easier way to do it?

Check vanilla's GuiButton and how it works. Basicly it checks if your mouse cursor is over the button boundaries and changes hover texture if so. You can just extend GuiButton or FML's GuiButtonExt (which is by the way little bit better than Vanilla one) and bind your own texture.

  • Author

Ok so I've got a problem. How can I render my texture OVER the button? Whatever I tried rendered the texture below the button so I couldn't see it.

The texture is the button. So, just render your texture as the button. No over or under is needed here. If mouse is in button boundary, then render the textured rectangle with your highlighted texture, otherwise use a non-hightlighted texture for the button.

Guest
This topic is now closed to further replies.

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.