View Single Post
01/03/21, 11:38 AM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,989
Yes, press the keybind to switch to non-mouse mode
I've tried a bit but all seem to make the whole scene somehow instable and maybe eben break oher addons then.
Unless there is no simple API function which does the same as the keybind does, and one would call it as the chatter begins, it's more effort than simply just no using the mouse and only using the keyboard keys.

May I ask what is the problem with the mouse there?

You can maybe try this script in the chat editbox as the chatter is open:
Code:
/script ZO_SceneManager_ToggleUIModeBinding()
It will do the same as pressing the key to siwtch the UI mode (hide/show mouse).

If this works you could add this to one of your addons EVENT_ADD_ON_LOADED functions:
Lua Code:
  1. local function sceneChange(sceneName, oldState, newState)
  2.     if (newState == SCENE_SHOWN) then
  3.        ZO_SceneManager_ToggleUIModeBinding()
  4.     end
  5. end
  6.  
  7. local interactionScene = SCENE_MANAGER:GetScene(INTERACTION.sceneName):
  8. interactionScene ("StateChange", sceneChange)

The interaction scene is the scene shown as you do the chatter. And the SCENE_SHOWN says it is ready with showing and shown. So it will execute the command to switch the UI mode afterwards and maybe chaneg to the non-mouse mode automatically for you this way.

Last edited by Baertram : 01/03/21 at 11:48 AM.
  Reply With Quote