ingame/companion/gamepad/companionfooter_gamepad.lua:22 -- COMPANION_FOOTER_GAMEPAD_FRAGMENT:RegisterCallback("StateChange", function(oldState, newState)
if newState == SCENE_FRAGMENT_SHOWING then
if HasActiveCompanion() then
self.companionIcon:SetTexture(ZO_COMPANION_MANAGER:GetActiveCompanionIcon())
local FORCE_REFRESH = true
self:RefreshCompanionLevel(FORCE_REFRESH)
local companionName = GetCompanionName(GetActiveCompanionDefId())
self.companionNameLabel:SetText(zo_strformat(SI_COMPANION_NAME_FORMATTER, companionName))
end
end
end)