Advertisement
Guest User

Untitled

a guest
Jul 13th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.91 KB | None | 0 0
  1. diff --git a/WeakAuras/RegionTypes/DynamicGroup.lua b/WeakAuras/RegionTypes/DynamicGroup.lua
  2. index dae65e8..9c7555b 100644
  3. --- a/WeakAuras/RegionTypes/DynamicGroup.lua
  4. +++ b/WeakAuras/RegionTypes/DynamicGroup.lua
  5. @@ -50,7 +50,7 @@ end
  6.  
  7.  local function modify(parent, region, data)
  8.    -- Scale
  9. -  region:SetScale(data.scale or 1)
  10. +  region:SetScale(data.scale and data.scale > 0 and data.scale or 1)
  11.  
  12.    local selfPoint;
  13.    if(data.grow == "RIGHT") then
  14. diff --git a/WeakAuras/RegionTypes/Group.lua b/WeakAuras/RegionTypes/Group.lua
  15. index 28d613f..067acb7 100644
  16. --- a/WeakAuras/RegionTypes/Group.lua
  17. +++ b/WeakAuras/RegionTypes/Group.lua
  18. @@ -78,7 +78,7 @@ local function modify(parent, region, data)
  19.    local border = region.border;
  20.  
  21.    -- Scale
  22. -  region:SetScale(data.scale or 1)
  23. +  region:SetScale(data.scale and data.scale > 0 and data.scale or 1)
  24.  
  25.    -- Get overall bounding box
  26.    local leftest, rightest, lowest, highest = 0, 0, 0, 0;
  27. diff --git a/WeakAurasOptions/RegionOptions/DynamicGroup.lua b/WeakAurasOptions/RegionOptions/DynamicGroup.lua
  28. index 653b793..3164dd5 100644
  29. --- a/WeakAurasOptions/RegionOptions/DynamicGroup.lua
  30. +++ b/WeakAurasOptions/RegionOptions/DynamicGroup.lua
  31. @@ -154,7 +154,7 @@ local function createOptions(id, data)
  32.        type = "range",
  33.        name = L["Group Scale"],
  34.        order = 50,
  35. -      softMin = 0.05,
  36. +      min = 0.05,
  37.        softMax = 2,
  38.        bigStep = 0.05,
  39.        get = function()
  40. diff --git a/WeakAurasOptions/RegionOptions/Group.lua b/WeakAurasOptions/RegionOptions/Group.lua
  41. index cd47f64..ff405ff 100644
  42. --- a/WeakAurasOptions/RegionOptions/Group.lua
  43. +++ b/WeakAurasOptions/RegionOptions/Group.lua
  44. @@ -496,7 +496,7 @@ local function createOptions(id, data)
  45.        type = "range",
  46.        name = L["Group Scale"],
  47.        order = 45,
  48. -      softMin = 0.05,
  49. +      min = 0.05,
  50.        softMax = 2,
  51.        bigStep = 0.05,
  52.        get = function()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement