ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Lua/XML Help (https://www.esoui.com/forums/forumdisplay.php?f=175)
-   -   Issue with adding a tooltip to a CT_Texture (https://www.esoui.com/forums/showthread.php?t=10643)

Sven_re 07/25/23 06:58 AM

Issue with adding a tooltip to a CT_Texture
 
1 Attachment(s)
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

Sven_re 07/25/23 08:10 AM

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)

Baertram 07/25/23 10:50 AM

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 :D

WIKI:
https://wiki.esoui.com/Drawing_Order


All times are GMT -6. The time now is 03:33 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI