[SOLVED] Strange overlay bug

Started by Mortimer Kerman on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[SOLVED] Strange overlay bug
Thu, 05/13/2021 - 14:51 (edited)

 Hello, I have a problem with overlay.

For no reason, it's completly poorly cropped on the screen, so I would like it to occupy the whole screen.

Can you help me to fix that, please? 

"My overlay in editor, just a regular 32*18 pixels image"
Overlay in editor, just a regular 32*18px image
"Overlay in-game"
Overlay in-game

 

Edited by Mortimer Kerman on Thu, 05/13/2021 - 14:51
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is there a way to fix it…
Fri, 02/12/2021 - 07:03

Is there a way to fix it with my version (custom code or something?)

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I found how to do that. Just…
Thu, 05/13/2021 - 14:53

I found how to do that. Just replace these two lines at the end of the code:

					Minecraft.getMinecraft().ingameGUI.drawModalRectWithCustomSizedTexture(0, 0, 0, 0, 32, 18, event.getResolution().getScaledWidth(),
							event.getResolution().getScaledHeight());

with this:

					Minecraft.getMinecraft().ingameGUI.drawModalRectWithCustomSizedTexture(0, 0, 0, 0, 4000, 2250,
							event.getResolution().getScaledWidth(), event.getResolution().getScaledHeight());