from retail
This commit is contained in:
@@ -10,6 +10,8 @@ local default = {
|
|||||||
desaturate = false,
|
desaturate = false,
|
||||||
iconSource = -1,
|
iconSource = -1,
|
||||||
progressSource = {-1, "" },
|
progressSource = {-1, "" },
|
||||||
|
adjustedMax = "",
|
||||||
|
adjustedMin = "",
|
||||||
texture = "Blizzard",
|
texture = "Blizzard",
|
||||||
textureSource = "LSM",
|
textureSource = "LSM",
|
||||||
width = 200,
|
width = 200,
|
||||||
|
|||||||
@@ -20,6 +20,8 @@ local default = {
|
|||||||
desaturate = false,
|
desaturate = false,
|
||||||
iconSource = -1,
|
iconSource = -1,
|
||||||
progressSource = {-1, "" },
|
progressSource = {-1, "" },
|
||||||
|
adjustedMax = "",
|
||||||
|
adjustedMin = "",
|
||||||
inverse = false,
|
inverse = false,
|
||||||
width = 64,
|
width = 64,
|
||||||
height = 64,
|
height = 64,
|
||||||
|
|||||||
@@ -81,6 +81,8 @@ end
|
|||||||
|
|
||||||
local default = {
|
local default = {
|
||||||
progressSource = {-1, "" },
|
progressSource = {-1, "" },
|
||||||
|
adjustedMax = "",
|
||||||
|
adjustedMin = "",
|
||||||
foregroundTexture = "Interface\\Addons\\WeakAuras\\PowerAurasMedia\\Auras\\Aura3",
|
foregroundTexture = "Interface\\Addons\\WeakAuras\\PowerAurasMedia\\Auras\\Aura3",
|
||||||
backgroundTexture = "Interface\\Addons\\WeakAuras\\PowerAurasMedia\\Auras\\Aura3",
|
backgroundTexture = "Interface\\Addons\\WeakAuras\\PowerAurasMedia\\Auras\\Aura3",
|
||||||
desaturateBackground = false,
|
desaturateBackground = false,
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ local L = WeakAuras.L;
|
|||||||
|
|
||||||
local default = {
|
local default = {
|
||||||
progressSource = {-1, "" },
|
progressSource = {-1, "" },
|
||||||
|
adjustedMax = "",
|
||||||
|
adjustedMin = "",
|
||||||
foregroundTexture = "Interface\\AddOns\\WeakAuras\\Media\\Textures\\StopMotion",
|
foregroundTexture = "Interface\\AddOns\\WeakAuras\\Media\\Textures\\StopMotion",
|
||||||
backgroundTexture = "Interface\\AddOns\\WeakAuras\\Media\\Textures\\StopMotion",
|
backgroundTexture = "Interface\\AddOns\\WeakAuras\\Media\\Textures\\StopMotion",
|
||||||
desaturateBackground = false,
|
desaturateBackground = false,
|
||||||
|
|||||||
+10
-1
@@ -3104,7 +3104,7 @@ do
|
|||||||
|
|
||||||
if type(glow_frame_monitor) == "table" then
|
if type(glow_frame_monitor) == "table" then
|
||||||
for region, data in pairs(glow_frame_monitor) do
|
for region, data in pairs(glow_frame_monitor) do
|
||||||
if region.state and region.state.unit == unit
|
if region.state and UnitIsUnit(region.state.unit, unit)
|
||||||
and (data.frame ~= frame) == update_frame
|
and (data.frame ~= frame) == update_frame
|
||||||
then
|
then
|
||||||
if not new_frame then
|
if not new_frame then
|
||||||
@@ -3879,6 +3879,15 @@ do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end);
|
end);
|
||||||
|
dynFrame.frame:RegisterEvent("PLAYER_REGEN_ENABLED")
|
||||||
|
dynFrame.frame:RegisterEvent("PLAYER_REGEN_DISABLED")
|
||||||
|
dynFrame.frame:SetScript("OnEvent", function(self, event)
|
||||||
|
if event == "PLAYER_REGEN_ENABLED" and self:IsShown() then
|
||||||
|
self:Hide()
|
||||||
|
elseif event == "PLAYER_REGEN_DISABLED" and not self:IsShown() and dynFrame.size > 0 then
|
||||||
|
self:Show()
|
||||||
|
end
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
Private.dynFrame = dynFrame;
|
Private.dynFrame = dynFrame;
|
||||||
|
|||||||
@@ -1135,7 +1135,14 @@ local function ProgressOptions(data)
|
|||||||
width = WeakAuras.normalWidth,
|
width = WeakAuras.normalWidth,
|
||||||
name = L["Set Minimum Progress"],
|
name = L["Set Minimum Progress"],
|
||||||
desc = L["Values/Remaining Time below this value are displayed as zero progress."],
|
desc = L["Values/Remaining Time below this value are displayed as zero progress."],
|
||||||
order = order + 1
|
order = order + 1,
|
||||||
|
set = function(info, value)
|
||||||
|
data.useAdjustededMin = value
|
||||||
|
if not value then
|
||||||
|
data.adjustedMin = ""
|
||||||
|
end
|
||||||
|
WeakAuras.Add(data)
|
||||||
|
end
|
||||||
};
|
};
|
||||||
|
|
||||||
options.adjustedMin = {
|
options.adjustedMin = {
|
||||||
@@ -1161,7 +1168,14 @@ local function ProgressOptions(data)
|
|||||||
width = WeakAuras.normalWidth,
|
width = WeakAuras.normalWidth,
|
||||||
name = L["Set Maximum Progress"],
|
name = L["Set Maximum Progress"],
|
||||||
desc = L["Values/Remaining Time above this value are displayed as full progress."],
|
desc = L["Values/Remaining Time above this value are displayed as full progress."],
|
||||||
order = order + 4
|
order = order + 4,
|
||||||
|
set = function(info, value)
|
||||||
|
data.useAdjustededMax = value
|
||||||
|
if not value then
|
||||||
|
data.adjustedMax = ""
|
||||||
|
end
|
||||||
|
WeakAuras.Add(data)
|
||||||
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
options.adjustedMax = {
|
options.adjustedMax = {
|
||||||
|
|||||||
Reference in New Issue
Block a user