Topic category: Troubleshooting, bugs, and solutions
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.