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

@@ -64,7 +64,7 @@ aura_env.region:SetHeight(128)
aura_env.region:SetWidth(512)
aura_env.region.text:SetFont("Interface\\AddOns\\SharedMedia_MyMedia\\font\\FiraCode-Regular.ttf", 18, "OUTLINE")
aura_env.region.text:SetTextColor(1,1,1,1)
aura_env.region.text:SetText(aura_env.state.count)
aura_env.region.text:SetText(aura_env.statee.count)
if not aura_env.region.texture then
local texture = aura_env.region:CreateTexture(nil, "OVERLAY")
aura_env.region.texture = texture
@@ -72,7 +72,7 @@ end
aura_env.region.texture:SetTexture("Interface\\Addons\\WeakAuras\\PowerAurasMedia\\Auras\\Aura51")
aura_env.region.texture:SetHeight(32)
aura_env.region.texture:SetWidth(32)
local plate = C_NamePlate.GetNamePlateForUnit(aura_env.state.unit)
local plate = C_NamePlate.GetNamePlateForUnit(aura_env.statee.unit)
if plate then
print("found plate pls work")
aura_env.region.texture:ClearAllPoints()

View File

@@ -114,8 +114,8 @@ end
--ANIMATION
function()
if aura_env.state then
if aura_env.statee then
-- print(aura_env.state.class)
return aura_env.classColor(aura_env.state.class)
return aura_env.classColor(aura_env.statee.class)
end
end

View File

@@ -34,10 +34,10 @@ end
--ON SHOW
local LCG = LibStub("LibCustomGlow-1.0")
local nameplate = C_NamePlate.GetNamePlateForUnit(aura_env.state.unit)
local nameplate = C_NamePlate.GetNamePlateForUnit(aura_env.statee.unit)
local aura_env = aura_env
local unit = aura_env.state.unit
LCG.PixelGlow_Start(nameplate, {aura_env.classColor(aura_env.state.class)}, nil, 0, 8, 4, 0, -4)
local unit = aura_env.statee.unit
LCG.PixelGlow_Start(nameplate, {aura_env.classColor(aura_env.statee.class)}, nil, 0, 8, 4, 0, -4)
C_Timer.After(4, function() WeakAuras.ScanEvents("REMOVE_UNIT", unit); LCG.PixelGlow_Stop(nameplate) end)
--INIT

View File

@@ -39,7 +39,7 @@ function(allstates, e, what, howmuch, looted)
end
--ON SHOW
if aura_env.state.looted == true then
if aura_env.statee.looted == true then
if not aura_env.region.texture then
local texture = aura_env.region:CreateTexture(nil, aura_env.region)
aura_env.region.texture = texture

View File

@@ -150,25 +150,25 @@ aura_env.region.text:ClearAllPoints()
aura_env.region.text:SetPoint("CENTER", aura_env.region, "CENTER")
aura_env.region.text:SetJustifyH("CENTER")
aura_env.region.text:SetJustifyV("CENTER")
local output = aura_env.state.ins
if aura_env.state.target then output = output .. " > " .. aura_env.state.target end
local output = aura_env.statee.ins
if aura_env.statee.target then output = output .. " > " .. aura_env.statee.target end
aura_env.region.text:SetText(output)
aura_env.region.text:Show()
local aura_env = aura_env
local nameplate = C_NamePlate.GetNamePlateForUnit(aura_env.state.unit, true)
local nameplate = C_NamePlate.GetNamePlateForUnit(aura_env.statee.unit, true)
LCG.PixelGlow_Start(nameplate, {1, 1, 0, 1}, 100, 0, 200, 4, 0, -4)
local GUID = aura_env.state.GUID
local GUID = aura_env.statee.GUID
--ON HIDE
local LCG = LibStub("LibCustomGlow-1.0")
local nameplate = C_NamePlate.GetNamePlateForUnit(aura_env.state.unit, true)
local nameplate = C_NamePlate.GetNamePlateForUnit(aura_env.statee.unit, true)
if nameplate then
LCG.PixelGlow_Stop(nameplate)
end
--ANIMATION
function()
if aura_env.state and aura_env.state.interrupted then return 0, 1, 0, 1 end
if aura_env.statee and aura_env.statee.interrupted then return 0, 1, 0, 1 end
end
--INIT

View File

@@ -230,8 +230,8 @@ end
--COLOR ANIMATION
function()
if aura_env.state then
return aura_env.classColor(aura_env.state.class)
if aura_env.statee then
return aura_env.classColor(aura_env.statee.class)
end
end
@@ -248,13 +248,13 @@ function()
if aura_env.config.stext == true then aura_env.region.text3:SetText("Total stacks\nTotal damage\nDamage in %") else aura_env.region.text3:SetText("") end
end
else
if aura_env.state.caster == "Total" then
return aura_env.shorten(aura_env.state.value) .. " - " .. aura_env.state.stacks .. " - " .. aura_env.state.percent .. "%"
if aura_env.statee.caster == "Total" then
return aura_env.shorten(aura_env.statee.value) .. " - " .. aura_env.statee.stacks .. " - " .. aura_env.statee.percent .. "%"
else
if aura_env.state.crit == true then
return aura_env.state.stacks .. " - " .. aura_env.shorten(aura_env.state.value) .. "(C)"
if aura_env.statee.crit == true then
return aura_env.statee.stacks .. " - " .. aura_env.shorten(aura_env.statee.value) .. "(C)"
else
return aura_env.state.stacks .. " - " .. aura_env.shorten(aura_env.state.value)
return aura_env.statee.stacks .. " - " .. aura_env.shorten(aura_env.statee.value)
end
end
end

View File

@@ -167,8 +167,8 @@ end
--COLOR ANIMATION
function()
if aura_env.state then
return aura_env.classColor(aura_env.state.class)
if aura_env.statee then
return aura_env.classColor(aura_env.statee.class)
end
end
@@ -185,10 +185,10 @@ function()
if aura_env.config.stext == true then aura_env.region.text3:SetText("Total stacks\nTotal damage\nDamage in %") else aura_env.region.text3:SetText("") end
end
else
if aura_env.state.caster == "Total" then
return aura_env.shorten(aura_env.state.damage) .. " - " .. aura_env.state.stacks .. " - " .. aura_env.state.percent .. "%"
if aura_env.statee.caster == "Total" then
return aura_env.shorten(aura_env.statee.damage) .. " - " .. aura_env.statee.stacks .. " - " .. aura_env.statee.percent .. "%"
else
return aura_env.shorten(aura_env.state.damage) .. " - " .. aura_env.state.stacks
return aura_env.shorten(aura_env.statee.damage) .. " - " .. aura_env.statee.stacks
end
end
end

View File

@@ -95,7 +95,7 @@ aura_env.spells = {
--ANIMATION
function()
if aura_env.state then
if aura_env.statee then
local classColor = function(class)
if class == 1 then return 0.78, 0.61, 0.43, 1 elseif
class == 2 then return 0.96, 0.55, 0.73, 1 elseif
@@ -111,6 +111,6 @@ function()
class == 12 then return 0.64, 0.19, 0.79, 1 else
return 1, 1, 1, 1 end
end
return classColor(aura_env.state.class)
return classColor(aura_env.statee.class)
end
end

View File

@@ -45,8 +45,8 @@ function(allstates, e, ...)
end
--ON SHOW
if aura_env.state then
local class = aura_env.state.class
if aura_env.statee then
local class = aura_env.statee.class
aura_env.region.bar:SetForegroundColor(aura_env.classColor(class))
end

View File

@@ -1,7 +1,7 @@
--DISPLAY
function()
if aura_env.state then
return aura_env.state.text
if aura_env.statee then
return aura_env.statee.text
end
end
@@ -187,8 +187,8 @@ end
--ANIMATION / COLOR
function()
if aura_env.state.pclass then
return aura_env.classColor(aura_env.state.pclass)
if aura_env.statee.pclass then
return aura_env.classColor(aura_env.statee.pclass)
end
end

View File

@@ -1,7 +1,7 @@
--DISPLAY
function()
if aura_env.state then
return aura_env.state.string
if aura_env.statee then
return aura_env.statee.string
end
end

View File

@@ -80,8 +80,8 @@ function(allstates, e, unit, ...)
--ANIMATION
function()
if aura_env.state then
return aura_env.classColor(aura_env.state.class)
if aura_env.statee then
return aura_env.classColor(aura_env.statee.class)
end
end

View File

@@ -70,8 +70,8 @@ end
--ANIMATION
function()
if aura_env.state then
return aura_env.state.r, aura_env.state.g, aura_env.state.b, aura_env.state.a
if aura_env.statee then
return aura_env.statee.r, aura_env.statee.g, aura_env.statee.b, aura_env.statee.a
end
end

View File

@@ -43,8 +43,8 @@ end
--ANIMATION
function()
if aura_env.state then
local c = aura_env.range(aura_env.state.hp, 0, aura_env.state.maxhp, 1)
if aura_env.statee then
local c = aura_env.range(aura_env.statee.hp, 0, aura_env.statee.maxhp, 1)
print(aura_env.grad(c))
return aura_env.grad(c)
end

View File

@@ -37,8 +37,8 @@ end
--ANIMATION
function()
if aura_env.state then
return aura_env.classColor(aura_env.state.class)
if aura_env.statee then
return aura_env.classColor(aura_env.statee.class)
end
end

View File

@@ -32,8 +32,8 @@ end
--ANIMATION
function()
if aura_env.state then
return aura_env.classColor(aura_env.state.class)
if aura_env.statee then
return aura_env.classColor(aura_env.statee.class)
end
end

View File

@@ -28,9 +28,9 @@ function(allstates, e, unit)
end
--ON SHOW
if aura_env.state.unit then
if aura_env.state.name ~= UnitName(aura_env.state.unit) then return end
local guild, rank = GetGuildInfo(aura_env.state.unit)
if aura_env.statee.unit then
if aura_env.statee.name ~= UnitName(aura_env.statee.unit) then return end
local guild, rank = GetGuildInfo(aura_env.statee.unit)
if not guild or not rank then return end
if not aura_env.region.text then
local text = aura_env.region:CreateFontString(nil, "OVERLAY")
@@ -49,7 +49,7 @@ if aura_env.state.unit then
aura_env.region.texture:SetTexture("Interface\\Addons\\WeakAuras\\PowerAurasMedia\\Auras\\Aura22")
aura_env.region.texture:SetHeight(192)
aura_env.region.texture:SetWidth(192)
local plate = C_NamePlate.GetNamePlateForUnit(aura_env.state.unit)
local plate = C_NamePlate.GetNamePlateForUnit(aura_env.statee.unit)
if guild == "Indecisive" then
aura_env.region.texture:SetVertexColor(1, 0.85, 0, 1)

View File

@@ -36,8 +36,8 @@ end
--ANIMATION
function()
if aura_env.state then
return aura_env.classColor(aura_env.state.class)
if aura_env.statee then
return aura_env.classColor(aura_env.statee.class)
end
end

View File

@@ -88,7 +88,7 @@ end
--ANIMATION
function()
if aura_env.state and aura_env.state.interrupted then return 0, 1, 0, 1 end
if aura_env.statee and aura_env.statee.interrupted then return 0, 1, 0, 1 end
end
--ON SHOW

View File

@@ -150,13 +150,13 @@ Right: %castDisplay / %castTimeDisplay
--ON SHOW?
PlaySoundFile("Interface\\AddOns\\WeakAuras\\Media\\Sounds\\RobotBlip.ogg", "Master")
if aura_env.state.unit then
aura_env.glow(aura_env.state.unit, 1)
if aura_env.statee.unit then
aura_env.glow(aura_env.statee.unit, 1)
end
--ON HIDE
if aura_env.state.unit then
aura_env.glow(aura_env.state.unit, 0)
if aura_env.statee.unit then
aura_env.glow(aura_env.statee.unit, 0)
end
--INIT

View File

@@ -1,11 +1,11 @@
function()
local target = aura_env.state.target
local target = aura_env.statee.target
for _, subregion in ipairs(aura_env.region.subRegions) do
if aura_env.config.borderColor then
if subregion.type == "subborder" then
---@type ClassColor
local classColorInfo = aura_env.ClassColors[aura_env.state.targetClassId]
local classColorInfo = aura_env.ClassColors[aura_env.statee.targetClassId]
if classColorInfo then
local color = classColorInfo.color.rgbInt
subregion:SetBorderColor(color[1] / 255, color[2] / 255, color[3] / 255, 1)

View File

@@ -34,12 +34,12 @@ aura_env.UpdateClone = function(unit, region)
end
end
aura_env.AddClone(aura_env.state.unit, aura_env.region)
aura_env.AddClone(aura_env.statee.unit, aura_env.region)
aura_env.UpdateClone(aura_env.state.unit, aura_env.region)
aura_env.UpdateClone(aura_env.statee.unit, aura_env.region)
function()
if aura_env.state then
aura_env.UpdateClone(aura_env.state.unit, aura_env.region)
if aura_env.statee then
aura_env.UpdateClone(aura_env.statee.unit, aura_env.region)
end
end

View File

@@ -146,14 +146,14 @@ end
--print("GlowOnDemand (WA) - No frame found. Target sent: ".. target)
end
local frame = aura_env.GetFrame(aura_env.state.name)
local frame = aura_env.GetFrame(aura_env.statee.name)
if frame then
local LBG = LibStub("LibButtonGlow-1.0")
table.insert(aura_env.frameTable, frame)
LBG.ShowOverlayGlow(frame)
end
local frame = aura_env.GetFrame(aura_env.state.name)
local frame = aura_env.GetFrame(aura_env.statee.name)
local LBG = LibStub("LibButtonGlow-1.0")
for i, v in ipairs(aura_env.frameTable) do
if v == frame then

View File

@@ -102,17 +102,17 @@ aura_env.roles = {
--3
function()
local r,g,b = 0,1,0
if aura_env and aura_env.state then
if aura_env.state.value > 40 then
if aura_env and aura_env.statee then
if aura_env.statee.value > 40 then
r,g,b = 1,1,0
end
if aura_env.state.value > 80 then
if aura_env.statee.value > 80 then
r,g,b = 1,0.5,0
end
if aura_env.state.value > 95 then
if aura_env.statee.value > 95 then
r,g,b = 1,0,0
end
local region = WeakAuras.GetRegion(aura_env.id, aura_env.state.ID)
local region = WeakAuras.GetRegion(aura_env.id, aura_env.statee.ID)
region.text:ClearAllPoints()
region.text:SetPoint("RIGHT", region.bar, "LEFT", -3,1)
region.text:SetJustifyH("RIGHT")
@@ -124,7 +124,7 @@ end
--4
function(_,_,prog)
if aura_env.state and aura_env.state.ID == "spacer" then
if aura_env.statee and aura_env.statee.ID == "spacer" then
return ""
else
return prog