Thread Tools Display Modes
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
07/23/18, 10:31 AM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
What is the error you get and when do you get it? Without any error message it's hard to see what is wrong.

If you want to disable hte animations try this:
Lua Code:
  1. if (control and not control.animation) then
  2. --[[
  3.         control.animation = ANIMATION_MANAGER:CreateTimelineFromVirtual("IconSlotMouseOverAnimation", control)
  4.         control.animation:GetFirstAnimation():SetEndScale(1)
  5. ]]
  6. end

Last edited by Baertram : 07/23/18 at 10:33 AM.
  Reply With Quote

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

Thread Tools
Display Modes

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