This commit is contained in:
NoM0Re
2025-04-03 21:03:11 +02:00
committed by GitHub
parent 875da9fb0e
commit 6cdfcac1b1
124 changed files with 1886 additions and 284 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local AddonName = ...
local Private = select(2, ...)
local L = WeakAuras.L;
do
+2 -1
View File
@@ -1,5 +1,6 @@
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local AddonName = ...
local Private = select(2, ...)
local SharedMedia = LibStub("LibSharedMedia-3.0");
local L = WeakAuras.L;
+2 -1
View File
@@ -1,5 +1,6 @@
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local AddonName = ...
local Private = select(2, ...)
local LCG = LibStub("LibCustomGlow-1.0")
+4 -3
View File
@@ -1,5 +1,6 @@
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local AddonName = ...
local Private = select(2, ...)
local L = WeakAuras.L;
@@ -46,7 +47,7 @@ local function PreShow(self)
self:SetModel(data.model_path)
self:SetPosition(data.model_z, data.model_x, data.model_y);
self:SetFacing(0);
self:SetFacing(rad(data.rotation))
self:SetAlpha(self.region.alpha)
end
@@ -93,7 +94,7 @@ local function AcquireModel(region, data)
model:SetModel(data.model_path)
model:SetPosition(data.model_z, data.model_x, data.model_y);
end)
model:SetFacing(0);
model:SetFacing(rad(data.rotation))
return model
end
+2 -1
View File
@@ -1,6 +1,7 @@
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local AddonName = ...
local Private = select(2, ...)
local L = WeakAuras.L
+2 -1
View File
@@ -1,5 +1,6 @@
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local AddonName = ...
local Private = select(2, ...)
local SharedMedia = LibStub("LibSharedMedia-3.0");
local L = WeakAuras.L;
+2 -1
View File
@@ -1,6 +1,7 @@
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local AddonName = ...
local Private = select(2, ...)
local L = WeakAuras.L
+4 -10
View File
@@ -1,5 +1,6 @@
if not WeakAuras.IsLibsOK() then return end
local AddonName, Private = ...
local AddonName = ...
local Private = select(2, ...)
local L = WeakAuras.L;
@@ -141,15 +142,8 @@ local function onRelease(subRegion)
subRegion:Hide()
end
local function getRotatedPoints(degrees)
local angle = rad(135 - degrees)
local vx = math.cos(angle)
local vy = math.sin(angle)
return 0.5+vx, 0.5-vy, 0.5-vy, 0.5-vx, 0.5+vy, 0.5+vx, 0.5-vx, 0.5+vy
end
local funcs = {
Update = function(self, state, states)
UpdateProgress = function(self, state, states)
for i, progressSource in ipairs(self.progressSources) do
self.progressData[i] = {}
Private.UpdateProgressFrom(self.progressData[i], progressSource, {}, state, states, self.parent)
@@ -550,7 +544,7 @@ local function modify(parent, region, parentData, data, first)
region:UpdateTickPlacement()
region:UpdateTickSize()
parent.subRegionEvents:AddSubscriber("Update", region)
parent.subRegionEvents:AddSubscriber("UpdateProgress", region)
parent.subRegionEvents:AddSubscriber("OrientationChanged", region)
parent.subRegionEvents:AddSubscriber("InverseChanged", region)
parent.subRegionEvents:AddSubscriber("OnRegionSizeChanged", region)