Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 

ESOUI » AddOns » AddOn Help/Support » Help revive this code.


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off