Thread Tools Display Modes
01/03/21, 02:34 AM   #1
Myrthian
Join Date: May 2019
Posts: 28
Hide cursor in the NPC dialogue UI

When I have the chat window minimized and talk to a NPC the visible mouse cursor in the dialogue UI is an annoyance considering the dialogue can be maneuvered with the keyboard.

Is there a way to hide the cursor in the dialogue UI?
  Reply With Quote
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,912
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
01/06/21, 07:32 AM   #3
Myrthian
Join Date: May 2019
Posts: 28
Originally Posted by Baertram View Post
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.
> May I ask what is the problem with the mouse there?

Scope: once I've got a new PC I intend to record the best zone-story quest-lines for my collection and having the mouse cursor visible on the screen in the dialogue UI is an annoyance for that.

I already did test the workaround of starting the dialogue, moving the cursor out of the screen, end + restart the dialogue and then the cursor stays on its previous position out of the screen, but that is somewhat tedious.
  Reply With Quote
01/06/21, 08:20 AM   #4
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
Maybe it hides if you use the keybind to deactivate the total UI before interacting with the quest NPC?
  Reply With Quote

ESOUI » AddOns » AddOn Search/Requests » Hide cursor in the NPC dialogue UI

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off