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

Hello! I've been making a gui that implements my custom button widgets. My code is here, https://pastebin.com/wBnPA6kM. This pastebin link gives my "main" gui class that implements the widgets. I also included one of my widgets near the bottom, they are all similar and have the same issue. And images of the issue can be found here, https://imgur.com/a/sm7iIh4. As you can see in the images, my button texture actually renders but is fronted by the default minecraft button textures.  Anyways, all help is appreciated and I give all of my gratitude. If I need to give anything else, just let me know. I was hesitant to post this out of respect of your time. But, this is a forum for help, right?

 

Thanks again!??

 

EDIT: Fyi those images were taken in the same game session!

Edited by TBroski

This seems like an issue of rendering the same widget twice. If you look at the super method for renderButton, you can see that the button is already rendered with the standard textures before calling your own blit to render. Try removing the super method and replacing what's missing inside your own method.

super.render already renders the buttons, and since you want your buttons to render only on certain conditions, I think you can just remove super.render in the render method.

 

edit: whelp when i posted this ChampionAsh's message didn't load ?

Edited by kaydogz

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

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.