Download
(5 Kb)
Download
Updated: 06/06/21 08:56 PM
Pictures
File Info
Compatibility:
Blackwood (7.0.5)
Flames of Ambition (6.3.5)
Markarth (6.2.5)
Updated:06/06/21 08:56 PM
Created:02/22/21 04:24 PM
Monthly downloads:59
Total downloads:4,570
Favorites:9
MD5:
In Combat Menu Block
Version: 0.2.4
by: Ellimist_Entreri [More]
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!
0.2.4
-Fixed Add-On folder naming issue

0.2.3
-API bump to 100035

0.2.2
-Added optional block for Entering Chat (Enter and / Keys) while the users character is alive during combat
-"All Options Toggle Buttons" now properly toggle the "Last Menu" & "Sheathe Weapon" blocks

0.2.1
-Updated API Version to match the current for Flames of Ambition

0.2.0
-Added optional block for the Sheathe Weapon keybinding

0.1.9
-Added optional Keybound toggle for the Add-On Activated setting to ease toggling the add-on during combat

0.1.8
-Removal of a debug slash command, unneeded variable declaration & a function all related to testing potential implementations of the feature that came with release 0.1.7

0.1.7
-Adjusted the Main Menu PreHook to allow for closing unblocked and open menus while in combat even if the Add-On is set to block the opening of the Main Menu during combat

0.1.6
-Adjusted the displayed title for the "Alliance War" Setting to more accurately reflect which menu is being blocked

0.1.5
-Adjusted in-game Add-On description to more accurately reflect the current scope of functionality
-Fixed a typographical error in the in-game Add-On Description

0.1.4
-Fixed an issue where the current Add-On description was too long to be displayed in the Add-On Menu in game

0.1.3
-Refactoring of the save system to support an optional (default on) Account-Wide Settings Profile while still maintaining support for character based profiles if desired by the user
-Removal of an unneeded header in the Add-On Settings Menu
-Removal of numerous deprecated comments and a large amount of blank space

0.1.2
-"All Options Toggle Buttons" now properly toggle the "Last Opened Menu" key (ALT) block

0.1.1:
-Added optional block for the "Last Opened Menu" key (ALT)

0.1.0:
-Refactoring of the primary add-on functionality to increase performance while decreasing overhead

0.0.9:
-Fix for options set to off still being automatically closed when combat starts
-Added menu close & warning when setting the "Add-On Activated" setting to prevent the settings menu from being locked on-screen if combat was active when the setting was set to "On"

0.0.8:
-Fix for a small typographical error in a debug output message for /icmbft

0.0.7:
-Default settings fix
-/icmbft update closing any open menus when the command is activated, primarily to refresh the displayed value for "Add-On Active" in the add-ons settings menu; Secondarily to preemptively solve any potential issues that could arise from force toggling with other menus up

0.0.6:
-Final implementation for the "All Options Toggle Buttons"
-Restructuring of the settings submenu for easier reading

0.0.5:
-Added code to unregister an initialization event handler after it was done being used
-Updated the saving system to use the current system as well as adding support for server specific (NA/EU) saving
-Base implementation for "All Options Toggle Buttons"

0.0.2~0.0.4:
-Baseline feature implementation

0.0.1:
-Initial Alpha Release
Archived Files (3)
File Name
Version
Size
Uploader
Date
0.2.3
5kB
Ellimist_Entreri
06/06/21 12:24 PM
0.2.2
5kB
Ellimist_Entreri
03/21/21 10:03 AM
0.2.1
5kB
Ellimist_Entreri
03/09/21 07:41 AM


Post A Reply Comment Options
Unread 12/12/23, 03:25 PM  
SlippyCheeze
AddOn Author - Click to view AddOns

Forum posts: 53
File comments: 272
Uploads: 1
G'day. I've found an interaction that breaks the pre-hook for `ToggleGameCameraFirstPerson` when used together with NTakCamera (found here on esoui also):

Code:
user:/AddOns/InCombatMenuBlock/InCombatMenuBlock.lua:616: attempt to index a nil value
|rstack traceback:
user:/AddOns/InCombatMenuBlock/InCombatMenuBlock.lua:616: in function 'hookFunction'
/EsoUI/Libraries/Utility/ZO_Hook.lua:18: in function 'ToggleGameCameraFirstPerson'
user:/AddOns/NTakCamera/NTakCamera.lua:939: in function 'SetCameraPosition'
user:/AddOns/NTakCamera/NTakCamera.lua:143: in function 'InitCameraValues'
user:/AddOns/NTakCamera/NTakCamera.lua:1403: in function 'OnAddOnLoaded'
the relevant code is
Lua Code:
  1. if InCombatMenuBlock.config.icmbactive == true then

which suggests that for better or worse NTakCamera is calling that function earlier than the configuration has all been set up. Certainly, it happens before the player loads in to the game, or very very close after it.

adding the obvious safety check avoids the error, and seems to stop NTakCamera being weirded up, though I'm not absolutely certain if their use of the camera function so early is entirely legit:
Lua Code:
  1. if InCombatMenuBlock.config and InCombatMenuBlock.config.icmbactive == true then
Last edited by SlippyCheeze : 12/12/23 at 03:25 PM.
Report comment to moderator  
Reply With Quote
Unread 03/21/21, 12:27 PM  
Ellimist_Entreri
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 2
Uploads: 2
Re: Thank You!

Originally Posted by Zinival
This is a godsend for those of us with fat-finger syndrome. LOL. Seriously, though, Thank You!

With In Combat Menu Block and BSCs-AntiCombatInteract I can finally stop unintentionally opening a bunch of crap while I'm in combat!

(Now If only I could prevent unintentionally opening chat and getting stuck typing instead of activating abilities...)
Your suggestion has been implemented with version 0.2.2! If I have missed any of the keybindings that activate the chat window during combat please let me know and I will update as needed!
Report comment to moderator  
Reply With Quote
Unread 03/16/21, 07:53 AM  
Zinival
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 53
Uploads: 4
Thank You!

This is a godsend for those of us with fat-finger syndrome. LOL. Seriously, though, Thank You!

With In Combat Menu Block and BSCs-AntiCombatInteract I can finally stop unintentionally opening a bunch of crap while I'm in combat!

(Now If only I could prevent unintentionally opening chat and getting stuck typing instead of activating abilities...)
Report comment to moderator  
Reply With Quote
Unread 02/24/21, 10:37 PM  
Ellimist_Entreri
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 2
Uploads: 2
Re: suggest

Originally Posted by Haddes47
hello, great addon but option for disable alt touch in combat pls
Your suggestion has been implemented with version 0.1.1!
Report comment to moderator  
Reply With Quote
Unread 02/24/21, 04:23 AM  
Haddes47

Forum posts: 1
File comments: 39
Uploads: 0
suggest

hello, great addon but option for disable alt touch in combat pls
Report comment to moderator  
Reply With Quote
Unread 02/23/21, 03:46 PM  
marlonbrando
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 137
Uploads: 8
Brilliant

I've been wanting something like this for a long time.

Thank you!
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: