View Single Post
03/11/15, 07:03 PM   #7
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Hm, another (untested) solution how to change zoom animation:

Lua Code:
  1. local function CreateSlotAnimation(inventorySlot)
  2.     if inventorySlot.slotControlType == "listSlot" then
  3.         local control = inventorySlot
  4.         local controlType = inventorySlot:GetType()
  5.  
  6.         if (controlType == CT_CONTROL and control.slotControlType == "listSlot") then
  7.             control = inventorySlot:GetNamedChild("MultiIcon") or inventorySlot:GetNamedChild("Button")
  8.         end
  9.  
  10.         if (control and not control.animation) then
  11.             control.animation = ANIMATION_MANAGER:CreateTimelineFromVirtual("IconSlotMouseOverAnimation", control)
  12.             control.animation:GetFirstAnimation():SetEndScale(1)
  13.         end
  14.     end
  15. end
  16. ZO_PreHook("ZO_InventorySlot_OnMouseEnter", CreateSlotAnimation)
  Reply With Quote