ingame/companion/gamepad/companion_gamepad.lua:10 -- COMPANION_GAMEPAD_FRAGMENT:RegisterCallback("StateChange", function(oldState, newState)
if newState == SCENE_FRAGMENT_SHOWING then
ZO_OUTFITS_SELECTOR_GAMEPAD:SetCurrentActorCategory(GAMEPLAY_ACTOR_CATEGORY_COMPANION)
--Manually call OnTargetChanged to ensure the proper logic is run when opening the screen
local list = self:GetMainList()
local targetData = list:GetTargetData()
self:RefreshList()
self:RefreshTargetTooltip(list, targetData)
self:RefreshHeader()
elseif newState == SCENE_FRAGMENT_HIDDEN then
self:ResetTooltips()
end
end)