This commit is contained in:
2024-08-24 22:41:08 +02:00
parent 77f1ac5d7a
commit c21f59778f
431 changed files with 68581 additions and 68581 deletions

View File

@@ -1,11 +1,11 @@
local Button = CreateFrame("Button", "MyButton", UIParent, "UIPanelButtonTemplate")
Button:SetWidth(150)
Button:SetHeight(25)
Button:SetPoint("TOP")
Button:SetText("Dance")
Button:RegisterForClicks("AnyUp")
Button:SetScript("OnClick", function()
DoEmote("dance", UnitName("target"))
local Button = CreateFrame("Button", "MyButton", UIParent, "UIPanelButtonTemplate")
Button:SetWidth(150)
Button:SetHeight(25)
Button:SetPoint("TOP")
Button:SetText("Dance")
Button:RegisterForClicks("AnyUp")
Button:SetScript("OnClick", function()
DoEmote("dance", UnitName("target"))
end )

View File

@@ -1,38 +1,38 @@
EVERY FRAME
function()
local function range (val, min, max, max2)
val = 1 - (((max - val) / (max - min)) * max2)
return val
end
local pX = UnitPosition("player") or 0
local pY = select(2,UnitPosition("player")) or 0
local tX = UnitPosition("Alurielle") or 0
local tY = select(2,UnitPosition("Alurielle")) or 0
local X = pX - tX
local Y = pY - tY
local playerFace = GetPlayerFacing() or 0
local playerA = math.floor(playerFace * 100)
playerA = range(playerA, 0, 630, 360) - 1
playerA = - playerA
playerA = playerA - 90
if playerA < 0 then playerA = playerA + 360 end
aura_env.hyp = math.sqrt((math.abs(X^2)) + (math.abs(Y^2)))
aura_env.angle = math.deg(math.atan2(X,Y))
if aura_env.angle < 0 then aura_env.angle = aura_env.angle + 360 end
aura_env.angle = aura_env.angle - playerA
end
DISPLAY
function()
local pX = UnitPosition("player") or 0
local pY = select(2,UnitPosition("player")) or 0
local tX = UnitPosition("Alurielle") or 0
local tY = select(2,UnitPosition("Alurielle")) or 0
local X = pX - tX
local Y = pY - tY
local hyp = math.floor(math.sqrt((math.abs(X^2)) + (math.abs(Y^2))))
return hyp
end
INIT
EVERY FRAME
function()
local function range (val, min, max, max2)
val = 1 - (((max - val) / (max - min)) * max2)
return val
end
local pX = UnitPosition("player") or 0
local pY = select(2,UnitPosition("player")) or 0
local tX = UnitPosition("Alurielle") or 0
local tY = select(2,UnitPosition("Alurielle")) or 0
local X = pX - tX
local Y = pY - tY
local playerFace = GetPlayerFacing() or 0
local playerA = math.floor(playerFace * 100)
playerA = range(playerA, 0, 630, 360) - 1
playerA = - playerA
playerA = playerA - 90
if playerA < 0 then playerA = playerA + 360 end
aura_env.hyp = math.sqrt((math.abs(X^2)) + (math.abs(Y^2)))
aura_env.angle = math.deg(math.atan2(X,Y))
if aura_env.angle < 0 then aura_env.angle = aura_env.angle + 360 end
aura_env.angle = aura_env.angle - playerA
end
DISPLAY
function()
local pX = UnitPosition("player") or 0
local pY = select(2,UnitPosition("player")) or 0
local tX = UnitPosition("Alurielle") or 0
local tY = select(2,UnitPosition("Alurielle")) or 0
local X = pX - tX
local Y = pY - tY
local hyp = math.floor(math.sqrt((math.abs(X^2)) + (math.abs(Y^2))))
return hyp
end
INIT
aura_env.angle = 0

View File

@@ -1,31 +1,31 @@
EVERY FRAME
function()
local function range (val, min, max, max2)
val = 1 - (((max - val) / (max - min)) * max2)
return val
end
local pX = UnitPosition("player") or 0
local pY = select(2,UnitPosition("player")) or 0
local tX = UnitPosition("Alurielle") or 0
local tY = select(2,UnitPosition("Alurielle")) or 0
local X = pX - tX
local Y = pY - tY
local playerFace = GetPlayerFacing() or 0
local playerA = math.floor(playerFace * 100)
playerA = range(playerA, 0, 630, 360) - 1
playerA = - playerA
playerA = playerA - 90
if playerA < 0 then playerA = playerA + 360 end
aura_env.hyp = math.sqrt((math.abs(X^2)) + (math.abs(Y^2)))
aura_env.angle = math.deg(math.atan2(X,Y))
if aura_env.angle < 0 then aura_env.angle = aura_env.angle + 360 end
aura_env.angle = aura_env.angle - playerA
end
ANIMATION
function()
return - aura_env.angle
end
INIT
EVERY FRAME
function()
local function range (val, min, max, max2)
val = 1 - (((max - val) / (max - min)) * max2)
return val
end
local pX = UnitPosition("player") or 0
local pY = select(2,UnitPosition("player")) or 0
local tX = UnitPosition("Alurielle") or 0
local tY = select(2,UnitPosition("Alurielle")) or 0
local X = pX - tX
local Y = pY - tY
local playerFace = GetPlayerFacing() or 0
local playerA = math.floor(playerFace * 100)
playerA = range(playerA, 0, 630, 360) - 1
playerA = - playerA
playerA = playerA - 90
if playerA < 0 then playerA = playerA + 360 end
aura_env.hyp = math.sqrt((math.abs(X^2)) + (math.abs(Y^2)))
aura_env.angle = math.deg(math.atan2(X,Y))
if aura_env.angle < 0 then aura_env.angle = aura_env.angle + 360 end
aura_env.angle = aura_env.angle - playerA
end
ANIMATION
function()
return - aura_env.angle
end
INIT
aura_env.angle = 0