Jump to content

Photo

Snowfall Keypress


  • Please log in to reply
6 replies to this topic

#1 Corkiy

Corkiy

Posted 28 July 2016 - 05:16 PM

My Snowfall keypress addon doesnt work with Legion anymore, anyone got a fix/updated version?
  • 1

#2 Devastazia

Devastazia
  • Junkies
  • Trollclass_name
  • US-Area 52
  • Retaliation
  • Posts: 49
  • Talents: Shadow 0/1/1/1/0/0/0
  • 2v2: 1310
  • 3v3: 2150
  • LocationQuebec, Can

Posted 29 July 2016 - 05:21 PM

My Snowfall keypress addon doesnt work with Legion anymore, anyone got a fix/updated version?


Correct me if I'm wrong but for some time now Blizzard added their own version of this addon into the game. So I'm assuming you're addon didn't add anything to your gameplay. I just can't recall if it's automatic or an interface options to check off.

I know for a fact I've been playing without for at least 3-4 seasons.
  • 0

#3 Corkiy

Corkiy

Posted 29 July 2016 - 06:02 PM

Its not about the action of a ability on keypress. It is about the flashing animation when you press a key. That Animation is gone since Legion Prepatch launched. The old animation is not in the current version so Im looking for one that has the animation and works with the current patch
  • 1

#4 Corkiy

Corkiy

Posted 03 September 2016 - 01:13 PM

Apparently someone updated it for Legion but the only one I saw using it was Akrololz and he doesnt like sharing https://www.twitch.t...315216?t=31m18s

So if anyone got it I would be more than grateful if you could share it
  • 0

#5 mich126

mich126
  • Members
  • Humanclass_name
  • EU-Ravencrest
  • Cyclone / Wirbelsturm
  • Posts: 5
  • Talents: Demonology 1/2/0/2/2/2/2
  • 2v2: 1428
  • 3v3: 1878
  • RBG: 1566

Posted 03 September 2016 - 01:31 PM

I updated it for legion as part of my ui, hf

---------- // Snowfall Keypress // ----------

local animationsCount, animations = 5, {}
local animationNum = 1
local frame, texture, alpha1, scale1, scale2, rotation2
for i = 1, animationsCount do
	frame = CreateFrame("Frame")
	texture = frame:CreateTexture() texture:SetTexture('Interface\\Cooldown\\star4') texture:SetAlpha(0) texture:SetAllPoints() texture:SetBlendMode("ADD")
	animationGroup = texture:CreateAnimationGroup()
	alpha1 = animationGroup:CreateAnimation("Alpha") alpha1:SetFromAlpha(0) alpha1:SetToAlpha(1) alpha1:SetDuration(0) alpha1:SetOrder(1)
	scale1 = animationGroup:CreateAnimation("Scale") scale1:SetScale(1.0, 1.0) scale1:SetDuration(0) scale1:SetOrder(1)
	scale2 = animationGroup:CreateAnimation("Scale") scale2:SetScale(1.5, 1.5) scale2:SetDuration(0.3) scale2:SetOrder(2)
	rotation2 = animationGroup:CreateAnimation("Rotation") rotation2:SetDegrees(90) rotation2:SetDuration(0.3) rotation2:SetOrder(2)
	animations[i] = {frame = frame, animationGroup = animationGroup}
end
local AnimateButton = function(self)
	if not self:IsVisible() then return true end
	local animation = animations[animationNum]
	local frame = animation.frame
	local animationGroup = animation.animationGroup
	frame:SetFrameStrata("HIGH")
	frame:SetFrameLevel(20)
	frame:SetAllPoints(self)
	animationGroup:Stop()
	animationGroup:Play()
	animationNum = (animationNum % animationsCount) + 1
	return true
end

hooksecurefunc('MultiActionButtonDown', function(bname, id)
	 AnimateButton(_G[bname..'Button'..id])
end)

hooksecurefunc('PetActionButtonDown', function(id)
	 local button
		 if PetActionBarFrame then
			 if id > NUM_PET_ACTION_SLOTS then return end
			 button = _G["PetActionButton"..id]
			 if not button then return end
		 end
		 return
	 AnimateButton(button)
end)

hooksecurefunc('ActionButtonDown', function(id)
	 local button
	 if C_PetBattles.IsInBattle() then
		 if PetBattleFrame then
			 if id > NUM_BATTLE_PET_HOTKEYS then return end
			 button = PetBattleFrame.BottomFrame.abilityButtons[id]
			 if id == BATTLE_PET_ABILITY_SWITCH then
					button = PetBattleFrame.BottomFrame.SwitchPetButton;
			 elseif id == BATTLE_PET_ABILITY_CATCH then
					button = PetBattleFrame.BottomFrame.CatchButton;
			 end
			 if not button then return end
		 end
		 return
	 end
	 if OverrideActionBar and OverrideActionBar:IsShown() then
		 if id > NUM_OVERRIDE_BUTTONS then return end
		 button = _G["OverrideActionBarButton"..id]
	 else
		 button = _G["ActionButton"..id]
	 end
	 if not button then return end
	 AnimateButton(button)
end)


  • 0

#6 Corkiy

Corkiy

Posted 03 September 2016 - 02:26 PM

Love you forever
  • 0

#7 Highzealot

Highzealot
  • Members
  • Worgenclass_name
  • US-Frostmourne
  • Bloodlust
  • Posts: 13
  • Talents: Shadow 0/1/1/1/2/0/0
  • 3v3: 1569
  • RBG: 1855

Posted 08 October 2016 - 10:21 AM

Thanks, I was searching for this and found it here :)


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

<