I think there is a fragment inside the inventory scene which tells you that the quickslot is active.
If you register a callback funciton to this fragment's (if it exists) onStateChange function (like scenes provide too) you could be able to solve your problem.
Check the esoui source code and search for inventory and inside the lua files for quickslot (or the other way around).
http://www.esoui.com/downloads/info1...ourcecode.html
https://github.com/esoui/esoui/tree/master/esoui
Edit:
Found a quickslot framgent:
https://github.com/esoui/esoui/searc...fragment&type=
-
You need tor egister a callback function to:
Lua Code:
QUICKSLOT_FRAGMENT:RegisterCallback("StateChange", function(oldState, newState)
-[[ possible states are:
SCENE_FRAGMENT_SHOWN = "shown"
SCENE_FRAGMENT_HIDDEN = "hidden"
SCENE_FRAGMENT_SHOWING = "showing"
SCENE_FRAGMENT_HIDING = "hiding"
]]--
if newState == SCENE_FRAGMENT_SHOWN then
--YourCotrol:SetHidden(false)
elseif newState == SCENE_FRAGMENT_HIDING then
--YourCotrol:SetHidden(true)
end
end) -- function
Be sure to check direct scene changes from mail send to inventory (or the other way around by using a keaybind!) as sometimes the scenes and fragment callback functions will not be called properly then. Maybe you need to check this somehow via scene changes and hide your control again then.