5.19.6
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user