EDITED:
This zoom animation is done in function ZO_InventorySlot_OnMouseEnter(inventorySlot). However this function uses local table InventoryEnter, so it won't be easy to redefine it. You will need to copy function without animation part and whole InventoryEnter table.
I was thinking about changing endScale for each slot (buttonPart.animation:GetFirstAnimation():SetEndScale(1)), but animation will still be called at least for the first time.
Maybe redefining template, but is it possible without hooking ANIMATION_MANAGER? This seems to be too much "hacky":
XML part:
Lua Code:
<GuiXml>
<Animations>
<AnimationTimeline name="New_IconSlotMouseOverAnimation">
<Animations>
<ScaleAnimation duration="125" startScale="1" endScale="1"/>
</Animations>
</AnimationTimeline>
</Animations>
</GuiXml>
Lua part:
Lua Code:
local CreateTimelineFromVirtual_orig = ANIMATION_MANAGER.CreateTimelineFromVirtual
ANIMATION_MANAGER.CreateTimelineFromVirtual = function(self, template, ...)
if template == "IconSlotMouseOverAnimation" then
template = "New_IconSlotMouseOverAnimation"
end
return CreateTimelineFromVirtual_orig(self, template, ...)
end