Jump to content

Using hotkeys through MCM?


Recommended Posts

Yes, I didn't test enough to think about blocking when in menus. Shame on me.

Chesko tests every menu individually but leaves out some important checks. Here's what I should have put in it. You shouldn't be able to cast these if controls are disabled, if the player is already sitting or riding, if any sort of text input box is open, if any of the standard menus are open, or if your using a crafting station or talking to someone. That's still quite a few checks, but at least IsInMenuMode can check against most of the standard menus with a single function call.

	if Game.IsActivateControlsEnabled() && PlayerRef.GetSitState() == 0 && !PlayerRef.IsOnMount() && !Utility.IsInMenuMode() && !UI.IsTextInputEnabled() && !UI.IsMenuOpen("Crafting Menu") && !UI.IsMenuOpen("Dialogue Menu")
		SitPower[SitKey.Find(code)].Cast(PlayerRef)	
	endif
Link to comment
Share on other sites

  • Recently Browsing   0 members

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