[WORKAROUND]Custom overlay isn't hidden by F1 key

Started by Catnip on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 18:46, 7. Oct 2024
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[WORKAROUND]Custom overlay isn't hidden by F1 key
Mon, 10/07/2024 - 18:47 (edited)

I haven't done extensive testing, and I haven't updated to the newest version, so this might not be relevant then, but:

On version 2024.2 for a NeoForge 1.20.6 mod, I have a custom overlay with a somewhat complex display condition, it displays at all of the correct times, but it ignores the F1 key to hide overlays. I am unsure if this is intentional or not, so I wanted to ask about it.

Also, for anyone else who wants their overlay to respect the F1 key, my solution was to create a custom player persistant logic variable that defaults to true, but changes between true and false when a custom keybinding is pressed, and the keybinding defaults to the F1 key to simulate it being part of the vanila overlay hiding system. I also expanded on the custom overlay's condition to hide it when the variable is false.

Edited by Catnip on Mon, 10/07/2024 - 18:47