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
+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)