Have you ever been in combat and accidentally opened up a menu, maybe even causing yourself (and potentially others) to die in the process?
Worry not friend - this add-on prevents such mishaps by hooking into the menu functions for opening certain menus and preventing them from being opened while in combat!
This add-on also closes blocked menus automatically when combat starts & allows the Escape key to close unblocked menus when open during combat even if the Main Menu is blocked from opening!
Optional Blocks for Keyboard:
Activity Finder
Alliance War
Champion
Character
Collections
Contacts
Crown Crates
Crown Market
Cursor Mode
Enter Chat (Enter or / keys while character is alive)
Gift Inventory
Group
Guilds
Help
Inventory
Journal
Last Menu (ALT Key)
Mail
Main Menu
Map
Notifications
Point-Of-View Change
Sheathe Weapon
Skills
Optional Blocks that work on Controller:
Map
Additional Options:
Account-Wide Settings - Allows the use of one settings profile account-wide, or individual settings profiles per character if desired!
Add-On Activated - When set to off the add-on is effectively disabled, allowing normal menu usage.
Allow Use When Dead - Override all blocked menus and allow normal use while dead.
The Settings Menu has Buttons to instantly toggle On or Off all available blocks!
Slash Command:
/icmbft - Force Toggles the Add-On Activated setting, allowing the deactivation of menu blocking (and re-enabling thereof) at any time!
Keybound Toggle:
Optional Keybound toggle for the Add-On Activated setting to ease toggling the add-on during combat
WITH UPDATE 0.1.3 THE SAVE SYSTEM HAS BEEN REFACTORED!
IF ANY ISSUES ARISE WITH THE ADD-ON SETTINGS/SAVING AFTER UPDATING
FROM A PREVIOUS RELEASE PLEASE FOLLOW THESE INSTRUCTIONS TO RESOLVE THEM:
1) CLOSE YOUR ESO GAME-CLIENT
2) DELETE THE SAVE FILE FOR THE ADD-ON (InCombatMenuBlock.Lua located in your UserFolder\live\SavedVariables)
3) RESTART THE ESO GAME-CLIENT
In The Works:
-Option to block Point of View Change & Main Menu during combat on Controller
Required Library: LibAddonMenu
Many thanks to:
Kamaros for the help with identifying and hooking into many of the correct functions!
Baertram for helping me to correct some rookie mistakes with the save system and mod initialization!
Mitazaki for the
Saved Variables Demo that helped me complete the Refactoring of the Save System to support Account-Wide Settings!
Sharlikran for the
post regarding ZO_SavedVars Syntax which helped with implementing the swap between Account-Wide and Per-Character Settings!
Kelnoreem for the
Hello World example plugin which helped with implementing the optional keybound toggle for the Add-On Activated Setting!