Page 1 of 1

[v1.7.0+] Don't Use the Unusable

Posted: Mon Jun 24, 2024 9:50 pm
by Zizzo
"You must wear this object to use it!" *blink* …then why did you put a "Use" option in the use-item dialog for that object in the first place, if it was just going to fail immediately? :evil:

Sorry, just one of my minor pet peeves with the game's UI. Which, of course, means it has to go. :twisted: Thus a tiny new quickie addon, Don't Use the Unusable, which jumps in just after the use-item dialog finishes building its list of actions and removes the "Use" action if it's going to immediately fail the corresponding check in UseItemMenu:use().

[And I suppose this could go into ZOmnibus or ZOmnibus Lite, but for now I'm considering it a bugfix addon, which means I'm reluctant to do so.]

[Implementation notes:]

Code: Select all

Hooks:
  UseItemMenu:generate [to modify the use-item dialog]