from retail
This commit is contained in:
@@ -29,7 +29,7 @@ function WeakAuras.DeleteSubRegion(data, index, regionType)
|
||||
if data.subRegions[index] and data.subRegions[index].type == regionType then
|
||||
tremove(data.subRegions, index)
|
||||
WeakAuras.Add(data)
|
||||
WeakAuras.ReloadOptions2(data.id, data)
|
||||
WeakAuras.ClearAndUpdateOptions(data.id)
|
||||
|
||||
local replacements = {
|
||||
["sub." .. index .. "."] = deleteCondition
|
||||
@@ -50,7 +50,7 @@ function WeakAuras.MoveSubRegionUp(data, index, regionType)
|
||||
if data.subRegions[index] and data.subRegions[index].type == regionType then
|
||||
data.subRegions[index - 1], data.subRegions[index] = data.subRegions[index], data.subRegions[index - 1]
|
||||
WeakAuras.Add(data)
|
||||
WeakAuras.ReloadOptions2(data.id, data)
|
||||
WeakAuras.ClearAndUpdateOptions(data.id)
|
||||
|
||||
local replacements = {
|
||||
["sub." .. (index -1) .. "."] = "sub." .. index .. ".",
|
||||
@@ -68,7 +68,7 @@ function WeakAuras.MoveSubRegionDown(data, index, regionType)
|
||||
if data.subRegions[index] and data.subRegions[index].type == regionType and data.subRegions[index + 1] then
|
||||
data.subRegions[index], data.subRegions[index + 1] = data.subRegions[index + 1], data.subRegions[index]
|
||||
WeakAuras.Add(data)
|
||||
WeakAuras.ReloadOptions2(data.id, data)
|
||||
WeakAuras.ClearAndUpdateOptions(data.id)
|
||||
|
||||
local replacements = {
|
||||
["sub." .. index .. "."] = "sub." .. (index + 1) .. ".",
|
||||
@@ -86,7 +86,7 @@ function WeakAuras.DuplicateSubRegion(data, index, regionType)
|
||||
if data.subRegions[index] and data.subRegions[index].type == regionType then
|
||||
tinsert(data.subRegions, index, CopyTable(data.subRegions[index]))
|
||||
WeakAuras.Add(data)
|
||||
WeakAuras.ReloadOptions2(data.id, data)
|
||||
WeakAuras.ClearAndUpdateOptions(data.id)
|
||||
|
||||
local replacements = {}
|
||||
for i = index + 1, #data.subRegions do
|
||||
|
||||
Reference in New Issue
Block a user