ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   AddOn Search/Requests (https://www.esoui.com/forums/forumdisplay.php?f=165)
-   -   Send window/panel to foreground or background (https://www.esoui.com/forums/showthread.php?t=10055)

FrostByghte 01/27/22 09:50 AM

Send window/panel to foreground or background
 
I was curious if there are any mods that can send either default or custom panels to the foreground or background? I think I remember LUI Extended (or maybe Elder Bar) having this feature, but my goal was to find something less all encompassing to do it. Specifically in regards to the compass. Thank you.

Baertram 02/02/22 06:19 AM

I cannot remember any addon doing this and it would also be very complicated to add this to all controls.
Often controls are "anchored" to others or get influenced by others (scenes/fragments).
There are ways to bring a control to the most top but it could be changed on next movement or menu close again by the standard game code (vanilla code).

You can try this in your chat editbox with the mouse cursor above a control:

Code:

/script moc():SetDrawTier(DT_HIGH)
moc() will get the control below the mouse cursor.
If you get any error message moc() is not working or no control was found or it does not provide the SetDrawTier function.
If things get f***d up just do a /reloadui in chat to restore the old values.

This is the same script as above only with some security checks to prevent lua error messages or bringing the complete GuiRoot to the front:
Code:

/script local m=moc() if m and m ~= GuiRoot and m.SetDrawTier then m:SetDrawTier(DT_HIGH) end


Instead of DT_HIGH you can also use these:
DT_MEDIUM (standard value for controls)
DT_LOW


All times are GMT -6. The time now is 09:42 AM.

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