Project Zomboid

Project Zomboid

140 ratings
Interface Reflexes
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
508.580 KB
Oct 27, 2022 @ 7:51am
Dec 10, 2024 @ 3:50am
27 Change Notes ( view )

Subscribe to download
Interface Reflexes

Description
I am on an indefinite hiatus from Project Zomboid. Feel free to use my code for future mods, and feel free to update my mods for B42. Please do not reuse their exact names or mod id's to avoid confusion and bugs for B41 players. I can only guarantee my mods worked when used alone before B42 dropped. I will no longer be retesting them when people have conflicts. Thanks for the support over the years.

Immediately close your inventory, chat, server info, debug console, and countless other windows whenever you aim your weapon OR move! Multiplayer friendly. Individual players choose their own triggers (aiming, movement, button shortcuts, or all of the above) via individual settings available via Mod Options (so make sure you grab that, as this mod requires it). Works on keyboard and gamepad.

Have you ever been hanging out in a bedroom, minding your own business, looting some bodies, checking your faction page, looking at your safehouse details, and somehow also fishing for dinner when suddenly three zombies appear, and you find yourself lost in a maze of menus? And so there you are, smashing keys or competitively clicking or pressing B and Y a lot while hoping your gamepad hasn't lost focus on the stuff you need to close? And then in the chaos you just can't get rid of all these menus fast enough, and you hear your character scream and die as you try to remember whether the back button or something else closes inventory on a gamepad? (Hint: It's something else.)

Well, with this mod, your days of being devoured while trying to close your menus can be OVER, my friend!

Simply AIM (with a keyboard or a gamepad!!!) or MOVE, and you can immediately clear your screen of everything that stops you from simply enjoying the carnage around you!

Note that you must install Mod Options and enable Can Close Menus By Aiming in the Mods tab of the Options menu in order to activate this mod's aiming shortcut (keyboard and gamepad shortcuts are available by default, but keyboard shortcuts cannot close text input boxes, such as the input box for the Chat window). I have made the decision to turn this OFF by default after much consideration of how this mod impacts random players on servers that choose to integrate it. All new users of this mod will therefore need to enable that setting manually in the aforementioned Mods menu before they can aim to close menus (Mod Options will save your settings; you will not need to do this every time you play).

Originally, this setting was enabled by default; I decided to change that in an attempt to address the fact that when servers add my mod, it affects many people who do not know this mod exists (let alone what it does), and several people often get confused in a bad way because they are unaware of why their inventory closes whenever they aim (after possibly playing for years and becoming accustomed to playing with their inventory open at all times). Hopefully, this mod will no longer stress people who are unaware that their servers have added it. Note that this mod's options in the Mods menu only becomes available after either joining a game or enabling this mod in the initial main menu of Project Zomboid.

Don't want to close things by aiming? That's okay. Keyboard and gamepad button shortcuts are also available. This mod's shortcuts can close:

the context menu, the fishing menu, the crafting menu,
the mechanics menu, the inventory menu, the loot menu,
the info panel (health, etc.), the debug menu, the debug console,
the chat box, the server info box, the user panel,
the safehouse menus, the faction menus, and the safe zone menu

Gamepad users can also repeatedly press B (or Circle) if aiming is not available, or if using buttons to close your menus is preferred. Required repetitions can be set in Mod Options.

Keyboard users can do this by pressing the RIGHT shift key (not the left one). This can be changed in Key Bindings.

Why I Made This Mod:

When I started playing Zomboid as a controller player, I was immediately disappointed by two things:

(1) There are 2-3 windows that open automatically upon joining server that cannot be accessed or closed via controller, and take up screen space. They are Server Info, Chat, and the debug console (if you're in -debug mode).

(2) When you want to close things quickly, spamming Circle (standard Back) won't save you, because Inventory closes on Y, not Circle.

This mod fixes both of these problems. No longer get caught trying to close menus with the right buttons when the zombies are coming! Just aim and voila, these annoying windows will get out of your way.

Bonus Features:

There are a couple of bonus features in this mod that do not pertain directly to closing windows, but they do pertain to using your interface, specifically your inventory and loot interface, more efficiently (hence my decision to include them as part of this mod).

First, I added the ability to activate the double-click effect on items in your inventory or loot by pressing Start (a.k.a. Options, among other names) on your gamepad. Need to equip that bat ASAP, but you play on a controller? Just press Start! Voila!

In addition to "double-clicking" with your Start button, you may activate Hide Laggy Crafting Tooltip in Mod Options to completely hide the tooltip that appears when you inspect inventory items that can be broken down for crafting resources, such as when you rip clothing. People may want to hide this because it induces a great deal of menu lag when a lot of mods are running. Fix Inventory Tooltip Lag by Olipro has recently made it possible to eliminate this crafting tooltip lag entirely; if you actually like the tooltip, I highly recommend that mod! It is completely compatible with this one.

Important Details:

You can press Semicolon (;) to reopen the windows that launch on spawn (e.g., server chat) if you need them. You can also repeatedly press A (or Cross) on gamepad.

Server defaults are ONLY used for the Use Server Defaults toggle in the player's Mod Options (while in game). Unfortunately, Mod Options does not currently allow me to preload your server defaults into the player's menu without causing problems for other modders.

Unfortunately, when you close the debug console, the caret that indicates you can type inside of it will remain in its current animation state even though the keyboard leaves the focus on the debug console. I have not been able to figure out why this happens or how to stop it, but this should not affect normal play anyway.

You can entirely customize which menus disappear when you activate these shortcuts using Mod Options. Enjoy!

Like this mod? Feel free to explore my other mods on the Steam Workshop!

[ko-fi.com]

Workshop ID: 2880580885
Mod ID: InterfaceReflexes
68 Comments
Blessed Mother Dec 21, 2024 @ 3:42pm 
42? :) Such a good mod.
Burryaga  [author] Dec 5, 2024 @ 11:54am 
Sorry about the double update, all. Something that seemed like it was working proved to have complications. Those complications seem to be resolved now, so I will push the fix again tomorrow morning to avoid annoying European players who run this mod with extra restarts.
Burryaga  [author] Nov 7, 2024 @ 12:30am 
If I have to redo this mod for B42, I'll probably rename it. Would be nice to see them implement this as a clean native feature, but I am not super optimistic. I just hope I don't need to manually write gamepad support for half of their new UI when it drops. 😭
Anach Aug 4, 2024 @ 10:33pm 
I came looking for this mod, after nearly dying from having my inventory in the way. You have no idea how long it took me to find, as I couldn't remember the name of the mod. :D
Qx Jun 13, 2024 @ 8:42am 
I love how the mod's creator and some guy are chilling the comments lol. great mod btw
Burryaga  [author] Apr 19, 2024 @ 9:14am 
Enjoy! May the mod keep you and your friends alive.
thrakkkk Apr 19, 2024 @ 7:58am 
It works great, thank you. When I started playing Zomboid a month ago I would get ambushed and want to close the damn windows but it was always a struggle. Eventually I learned the click an empty space method while you have windows set to collapse but the eternal struggle with PZ and menus is real, especially at lower resolutions.

I'm learning some 3d modelling. You might see my work in the shop one day soon. It's nice being able to fix body mods that clip through clothes and are detached from hair models.
Burryaga  [author] Apr 19, 2024 @ 7:27am 
That update is live. Enjoy the new feature.
Burryaga  [author] Apr 19, 2024 @ 4:08am 
The movement based shortcut is live! Enjoy!
Burryaga  [author] Apr 18, 2024 @ 3:46pm 
Absolutely, just letting you know. :)

For gamepad players, walking feels identical to aiming, so not-clicking to close has always been how it worked since birth of mod for me. We walk with one stick, aim with the other. Moving the right stick at all is all we need to do to close stuff. Only real difference is that collapsing has no value to us because opening inventory again with a mouseover is not a thing. We must reopen with buttons.