View Single Post
07/23/18, 08:24 AM   #1
KLISK
 
KLISK's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2018
Posts: 21
Help revive this code.

Code:
local function CreateSlotAnimation(inventorySlot)
	if inventorySlot.slotControlType == "listSlot" then
		local control = inventorySlot
		local controlType = inventorySlot:GetType()

		if (controlType == CT_CONTROL and control.slotControlType == "listSlot") then
		control = inventorySlot:GetNamedChild("MultiIcon") or inventorySlot:GetNamedChild("Button")
		end

		if (control and not control.animation) then
		control.animation = ANIMATION_MANAGER:CreateTimelineFromVirtual("IconSlotMouseOverAnimation", control)
		control.animation:GetFirstAnimation():SetEndScale(1)
		end
	end
end
ZO_PreHook("ZO_InventorySlot_OnMouseEnter", CreateSlotAnimation)
It must turn off the animation of the inventory icons.
  Reply With Quote