[SOLVED] Strange overlay bug

Started by Mortimer Kerman on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 years ago
Joined Aug 2020
Points:
636

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 21
[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
Active 2 years ago
Joined Aug 2020
Points:
636

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 21
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?)

Active 2 years ago
Joined Aug 2020
Points:
636

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 21
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());