Thread Tools Display Modes
04/09/15, 02:38 AM   #1
QuadroTony
Banned
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 828
Floating tooltips not dissapear

i experienced this bug few times in a day - if i close UI very fast or idk

it happends with various tooltips, not only this one on screenshot

any ideas? if i open any UI tab again and serfing there - all become okay

  Reply With Quote
04/09/15, 02:51 AM   #2
QuadroTony
Banned
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 828
  Reply With Quote
04/09/15, 04:00 AM   #3
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,578
I had the same issue a while ago and put the following code in one of my private addons, then totally forgot about it
Lua Code:
  1. local map = SCENE_MANAGER:GetScene("worldMap")
  2. SCENE_MANAGER:RegisterCallback("SceneStateChanged", function(scene, oldState, newState)
  3.     if(scene == map and newState == SCENE_FRAGMENT_HIDDEN) then
  4.         ClearTooltipImmediately(InformationTooltip)
  5.         ClearTooltipImmediately(ZO_MapLocationTooltip)
  6.         ZO_KeepTooltip:SetHidden(true)
  7.     end
  8. end)
  Reply With Quote
04/09/15, 04:15 AM   #4
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,962
You could alsoa dd this to the source code lines:
ZO_Tooltips_HideTextTooltip()

it would look like this then:

Lua Code:
  1. local map = SCENE_MANAGER:GetScene("worldMap")
  2. SCENE_MANAGER:RegisterCallback("SceneStateChanged", function(scene, oldState, newState)
  3.     if(scene == map and newState == SCENE_FRAGMENT_HIDDEN) then
  4.         ClearTooltipImmediately(InformationTooltip)
  5.         ClearTooltipImmediately(ZO_MapLocationTooltip)
  6.         ZO_KeepTooltip:SetHidden(true)
  7.           ZO_Tooltips_HideTextTooltip()
  8.     end
  9. end)

Originally Posted by sirinsidiator View Post
I had the same issue a while ago and put the following code in one of my private addons, then totally forgot about it
Lua Code:
  1. local map = SCENE_MANAGER:GetScene("worldMap")
  2. SCENE_MANAGER:RegisterCallback("SceneStateChanged", function(scene, oldState, newState)
  3.     if(scene == map and newState == SCENE_FRAGMENT_HIDDEN) then
  4.         ClearTooltipImmediately(InformationTooltip)
  5.         ClearTooltipImmediately(ZO_MapLocationTooltip)
  6.         ZO_KeepTooltip:SetHidden(true)
  7.     end
  8. end)
  Reply With Quote
04/09/15, 04:22 AM   #5
QuadroTony
Banned
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 828
Originally Posted by sirinsidiator View Post
I had the same issue a while ago and put the following code in one of my private addons, then totally forgot about it
Lua Code:
  1. local map = SCENE_MANAGER:GetScene("worldMap")
  2. SCENE_MANAGER:RegisterCallback("SceneStateChanged", function(scene, oldState, newState)
  3.     if(scene == map and newState == SCENE_FRAGMENT_HIDDEN) then
  4.         ClearTooltipImmediately(InformationTooltip)
  5.         ClearTooltipImmediately(ZO_MapLocationTooltip)
  6.         ZO_KeepTooltip:SetHidden(true)
  7.     end
  8. end)

i got it not only after world map but when cloe guilds, or quest journal
  Reply With Quote
04/09/15, 04:32 AM   #6
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,578
in that case you can get the name of the opened scene with this command:
Code:
/script d(SCENE_MANAGER:GetCurrentScene())
and add them like the map scene
Lua Code:
  1. if((scene == map or scene == another) and newState == SCENE_FRAGMENT_HIDDEN) then
or just remove the check for a specific scene and let it close the tooltips on any scene
Lua Code:
  1. if(newState == SCENE_FRAGMENT_HIDDEN) then
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » Floating tooltips not dissapear

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