You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm using HudRenderCallback event to render custom guis and things but I have noticed that when chat lines, messages overlay and action bar messages fade out it overlaps my custom gui. I have read the event notes and says:
Called after rendering the whole hud, which is displayed in game, in a world.
If the method is called after the hud renders, it should not be rendered on top of everything else? Am I doing anything wrong?
On the other hand, I have noticed that inside InGameHud.class there is a new thing called LayeredDrawer and all hud methods like hotbar, stats bars are added creating, I think, a ordered way to render things without overlap anything, but I'm not sure how it works...
The possible solution I have found is to inject my code into one of these methods, in particular inside of 'renderMiscOverlays' and now it renders fine..
Rendering via HudRenderCallback:
Rendering via mixin InGameHud => renderMiscOverlays at head:
Thank you very much in advance :)
The text was updated successfully, but these errors were encountered:
Hi, I'm using HudRenderCallback event to render custom guis and things but I have noticed that when chat lines, messages overlay and action bar messages fade out it overlaps my custom gui. I have read the event notes and says:
If the method is called after the hud renders, it should not be rendered on top of everything else? Am I doing anything wrong?
On the other hand, I have noticed that inside InGameHud.class there is a new thing called LayeredDrawer and all hud methods like hotbar, stats bars are added creating, I think, a ordered way to render things without overlap anything, but I'm not sure how it works...
The possible solution I have found is to inject my code into one of these methods, in particular inside of 'renderMiscOverlays' and now it renders fine..
Rendering via HudRenderCallback:
Rendering via mixin InGameHud => renderMiscOverlays at head:
Thank you very much in advance :)
The text was updated successfully, but these errors were encountered: