from retail
This commit is contained in:
@@ -52,12 +52,12 @@ end
|
|||||||
-- Adjusted Duration
|
-- Adjusted Duration
|
||||||
|
|
||||||
function WeakAuras.regionPrototype.AddAdjustedDurationToDefault(default)
|
function WeakAuras.regionPrototype.AddAdjustedDurationToDefault(default)
|
||||||
default.useAdjustedMax = false;
|
default.useAdjustededMax = false;
|
||||||
default.useAdjustedMin = false;
|
default.useAdjustededMin = false;
|
||||||
end
|
end
|
||||||
|
|
||||||
function WeakAuras.regionPrototype.AddAdjustedDurationOptions(options, data, order)
|
function WeakAuras.regionPrototype.AddAdjustedDurationOptions(options, data, order)
|
||||||
options.useAdjustedMin = {
|
options.useAdjustededMin = {
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
width = WeakAuras.normalWidth,
|
width = WeakAuras.normalWidth,
|
||||||
name = L["Set Minimum Progress"],
|
name = L["Set Minimum Progress"],
|
||||||
@@ -83,7 +83,7 @@ function WeakAuras.regionPrototype.AddAdjustedDurationOptions(options, data, ord
|
|||||||
hidden = function() return not (not data.useAdjustededMin and data.useAdjustededMax) end,
|
hidden = function() return not (not data.useAdjustededMin and data.useAdjustededMax) end,
|
||||||
};
|
};
|
||||||
|
|
||||||
options.useAdjustedMax = {
|
options.useAdjustededMax = {
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
width = WeakAuras.normalWidth,
|
width = WeakAuras.normalWidth,
|
||||||
name = L["Set Maximum Progress"],
|
name = L["Set Maximum Progress"],
|
||||||
@@ -505,9 +505,9 @@ function WeakAuras.regionPrototype.modify(parent, region, data)
|
|||||||
if (defaultsForRegion and defaultsForRegion.alpha) then
|
if (defaultsForRegion and defaultsForRegion.alpha) then
|
||||||
region:SetRegionAlpha(data.alpha);
|
region:SetRegionAlpha(data.alpha);
|
||||||
end
|
end
|
||||||
local hasAdjustedMin = defaultsForRegion and defaultsForRegion.useAdjustedMin ~= nil and data.useAdjustededMin
|
local hasAdjustedMin = defaultsForRegion and defaultsForRegion.useAdjustededMin ~= nil and data.useAdjustededMin
|
||||||
and data.adjustedMin;
|
and data.adjustedMin;
|
||||||
local hasAdjustedMax = defaultsForRegion and defaultsForRegion.useAdjustedMax ~= nil and data.useAdjustededMax
|
local hasAdjustedMax = defaultsForRegion and defaultsForRegion.useAdjustededMax ~= nil and data.useAdjustededMax
|
||||||
and data.adjustedMax;
|
and data.adjustedMax;
|
||||||
|
|
||||||
region.adjustedMin = nil
|
region.adjustedMin = nil
|
||||||
|
|||||||
+4
-1
@@ -380,7 +380,10 @@ WeakAuras.subevent_prefix_types = {
|
|||||||
DAMAGE_SHIELD_MISSED = L["Damage Shield Missed"],
|
DAMAGE_SHIELD_MISSED = L["Damage Shield Missed"],
|
||||||
PARTY_KILL = L["Party Kill"],
|
PARTY_KILL = L["Party Kill"],
|
||||||
UNIT_DIED = L["Unit Died"],
|
UNIT_DIED = L["Unit Died"],
|
||||||
UNIT_DESTROYED = L["Unit Destroyed"]
|
UNIT_DESTROYED = L["Unit Destroyed"],
|
||||||
|
UNIT_DISSIPATES = L["Unit Dissipates"],
|
||||||
|
ENCHANT_APPLIED = L["Enchant Applied"],
|
||||||
|
ENCHANT_REMOVED = L["Enchant Removed"]
|
||||||
}
|
}
|
||||||
|
|
||||||
WeakAuras.subevent_actual_prefix_types = {
|
WeakAuras.subevent_actual_prefix_types = {
|
||||||
|
|||||||
Reference in New Issue
Block a user