Thread Tools Display Modes
07/25/23, 06:58 AM   #1
Sven_re
AddOn Author - Click to view addons
Join Date: Mar 2022
Posts: 2
Issue with adding a tooltip to a CT_Texture

Hello everyone,
Can someone tell me why the tooltip shows up when i make the control a button but doesn't show up at all if i make it a texture? ��
I couldn't find anything in the forums but that you need to have to have :SetMouseEnabled(true) in this thread:
https://www.esoui.com/forums/showthr...hlight=tooltip

Any Pointers would be greatly appreciated

Thanks
Sven_re
Attached Thumbnails
Click image for larger version

Name:	code.png
Views:	164
Size:	36.0 KB
ID:	1599  

Last edited by Sven_re : 07/25/23 at 07:03 AM.
  Reply With Quote
07/25/23, 08:10 AM   #2
Sven_re
AddOn Author - Click to view addons
Join Date: Mar 2022
Posts: 2
Solution

I just wanna leave the solution here provided to me in the ESOU Discord:
Buttons are on a higher Drawing Tier than Textures so you need to manually change the drawing tier of the Texture with:
cIcon:SetDrawTier(DL_CONTROLS)
  Reply With Quote
07/25/23, 10:50 AM   #3
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,989
If you define your own UI elements you SHOULD set the drawTier and drawLayer and drawLevel explicitly for all of your controls as they don't have a defined draw* and may fall behind other or above other UI elements because of that.
At least give them some low default values so they do not overlay other vanilla UI controls nor any addons.
Always puting them to the highest values e.g. will make them even show ABOVE context menus! So don't do that

WIKI:
https://wiki.esoui.com/Drawing_Order
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Issue with adding a tooltip to a CT_Texture


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