frrom retail

This commit is contained in:
Bunny67
2021-03-08 12:58:09 +03:00
parent 6e530142d3
commit cc4f2a33b6
3 changed files with 57 additions and 41 deletions
+4 -2
View File
@@ -743,6 +743,8 @@ function WeakAuras.regionPrototype.AddExpandFunction(data, region, cloneId, pare
Private.RunConditions(region, uid, true)
region.subRegionEvents:Notify("PreHide")
region:Hide();
region.states = nil
region.state = nil
if (cloneId) then
Private.ReleaseClone(region.id, cloneId, data.regionType);
parent:RemoveChild(id, cloneId)
@@ -758,6 +760,8 @@ function WeakAuras.regionPrototype.AddExpandFunction(data, region, cloneId, pare
Private.RunConditions(region, uid, true)
region.subRegionEvents:Notify("PreHide")
region:Hide();
region.states = nil
region.state = nil
if (cloneId) then
Private.ReleaseClone(region.id, cloneId, data.regionType);
end
@@ -794,7 +798,6 @@ function WeakAuras.regionPrototype.AddExpandFunction(data, region, cloneId, pare
region.subRegionEvents:Notify("PreShow")
region.justCreated = nil;
Private.ApplyFrameLevel(region)
region:Show();
Private.PerformActions(data, "start", region);
@@ -842,7 +845,6 @@ function WeakAuras.regionPrototype.AddExpandFunction(data, region, cloneId, pare
end
region.toShow = true;
region.justCreated = nil;
if(region.PreShow) then
region:PreShow();
end