ingame/zo_loot/loot.lua:124 -- LOOT_SCENE:RegisterCallback("StateChange", function(oldState, newState)
if(newState == SCENE_SHOWING) then
local dontAutomaticallyExitScene = false
SCENE_MANAGER:SetHUDUIScene("loot", dontAutomaticallyExitScene)
KEYBIND_STRIP:RemoveDefaultExit()
KEYBIND_STRIP:AddKeybindButtonGroup(self.keybindStripDescriptor)
PushActionLayerByName("Loot")
elseif(newState == SCENE_HIDING) then
SCENE_MANAGER:RestoreHUDUIScene()
elseif(newState == SCENE_HIDDEN) then
ZO_InventorySlot_RemoveMouseOverKeybinds()
KEYBIND_STRIP:RemoveKeybindButtonGroup(self.keybindStripDescriptor)
KEYBIND_STRIP:RestoreDefaultExit()
RemoveActionLayerByName("Loot")
EndLooting()
self.returnScene = nil
end
end)