Jump to content

How to check menu mode if renaming item?


Recommended Posts

Hi guys,

 

I have an issue where hotkeys that I added to my mod are being triggered while renaming an enchanted item. Now, I checked my script and the first thing it does is check to see if the game is in menu mode before firing the hotkey script, and if so, it aborts right there. So obviously, whatever this rename menu is doesn't qualify as being in menu mode, which just confuses me.

 

event OnKeyDown(int keyCode)

 

if Utility.IsInMenuMode()

return

endIf

;...

 

I googled around a bit but I guess either nobody has ever reported this issue before, or I don't have the magical keyword combination required to find the solution. How do I check to see if the game is currently in crafting mode and/or renaming an item in crafting mode? The mod with the issue in question is Immersive Horses. Thanks in advance for any help on this.

 

EDIT: Got it - the solution was to use SKSE to directly check if the crafting menu is open: http://www.creationkit.com/IsMenuOpen_-_UI.

Edited by sevencardz
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...