ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   Difference from DrawLayer, DrawTier and DrawLevel? (https://www.esoui.com/forums/showthread.php?t=610)

Dio 04/05/14 10:03 PM

Difference from DrawLayer, DrawTier and DrawLevel?
 
It seems most addons use DrawLayer.

One problem I'm having is I set a TopLevelWindow (with child controls label and texture) to DrawLayer(0) but it still shows above some elements, such as the item listing in the Inventory panel. Is there a way to get it lower?

thelegendaryof 04/10/14 05:16 AM

Via LUA:

Code:

        FastReport_HUD:SetDrawLevel(0)
        FastReport_HUD:SetDrawLayer(0)
        FastReport_HUD:SetDrawTier(0)

and allowBringToTop="false" on the TopLevelControl / Window @ XML worked for me.

It 's behind the Inventory and every other Native Frame so far as I've checked.

Dio 04/10/14 12:04 PM

Quote:

Originally Posted by thelegendaryof (Post 3662)
Via LUA:

Code:

        FastReport_HUD:SetDrawLevel(0)
        FastReport_HUD:SetDrawLayer(0)
        FastReport_HUD:SetDrawTier(0)

and allowBringToTop="false" on the TopLevelControl / Window @ XML worked for me.

It 's behind the Inventory and every other Native Frame so far as I've checked.

Thanks, I will try that.

And since I posted this question, I've sort of come to understand the three aforementioned methods. DrawLayer seems to have most precedence, then DrawTier, and DrawLevel seems like CSS' "z-index" equivalent for more granularity.


All times are GMT -6. The time now is 03:04 AM.

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