from retail
This commit is contained in:
@@ -92,7 +92,7 @@ local WA_Utf8Sub = function(input, size)
|
|||||||
-- Add any bytes that are part of the sequence
|
-- Add any bytes that are part of the sequence
|
||||||
while (true) do
|
while (true) do
|
||||||
local byte = input:byte(i)
|
local byte = input:byte(i)
|
||||||
if byte >= 128 and byte < 192 then
|
if byte and byte >= 128 and byte < 192 then
|
||||||
output = output .. input:sub(i, i)
|
output = output .. input:sub(i, i)
|
||||||
else
|
else
|
||||||
break
|
break
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -4603,7 +4603,7 @@ WeakAuras.event_prototypes = {
|
|||||||
local aggro, status, threatpct, rawthreatpct, threatvalue, threattotal
|
local aggro, status, threatpct, rawthreatpct, threatvalue, threattotal
|
||||||
if unit then
|
if unit then
|
||||||
aggro, status, threatpct, rawthreatpct, threatvalue = WeakAuras.UnitDetailedThreatSituation('player', unit)
|
aggro, status, threatpct, rawthreatpct, threatvalue = WeakAuras.UnitDetailedThreatSituation('player', unit)
|
||||||
threattotal = (threatvalue or 0) * 100 / (threatpct or 1)
|
threattotal = (threatvalue or 0) * 100 / (threatpct ~= 0 and threatpct or 1)
|
||||||
else
|
else
|
||||||
status = UnitThreatSituation('player')
|
status = UnitThreatSituation('player')
|
||||||
aggro = status == 2 or status == 3
|
aggro = status == 2 or status == 3
|
||||||
@@ -5722,7 +5722,7 @@ WeakAuras.dynamic_texts = {
|
|||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
func = function(duration, state, totalPrecision)
|
func = function(duration, state, totalPrecision)
|
||||||
if state.progressType ~= "timed" then
|
if not state or state.progressType ~= "timed" then
|
||||||
return duration
|
return duration
|
||||||
end
|
end
|
||||||
if type(duration) ~= "number" then
|
if type(duration) ~= "number" then
|
||||||
@@ -5755,6 +5755,7 @@ WeakAuras.dynamic_texts = {
|
|||||||
},
|
},
|
||||||
["n"] = {
|
["n"] = {
|
||||||
get = function(state)
|
get = function(state)
|
||||||
|
if not state then return "" end
|
||||||
return state.name or state.id or "", true
|
return state.name or state.id or "", true
|
||||||
end,
|
end,
|
||||||
func = function(v)
|
func = function(v)
|
||||||
@@ -5763,6 +5764,7 @@ WeakAuras.dynamic_texts = {
|
|||||||
},
|
},
|
||||||
["i"] = {
|
["i"] = {
|
||||||
get = function(state)
|
get = function(state)
|
||||||
|
if not state then return "" end
|
||||||
return state.icon or "Interface\\Icons\\INV_Misc_QuestionMark"
|
return state.icon or "Interface\\Icons\\INV_Misc_QuestionMark"
|
||||||
end,
|
end,
|
||||||
func = function(v)
|
func = function(v)
|
||||||
|
|||||||
@@ -1327,6 +1327,14 @@ WeakAuras.texture_types = {
|
|||||||
["Interface\\AddOns\\WeakAuras\\Media\\Textures\\target_indicator.tga"] = "Target Indicator",
|
["Interface\\AddOns\\WeakAuras\\Media\\Textures\\target_indicator.tga"] = "Target Indicator",
|
||||||
["Interface\\AddOns\\WeakAuras\\Media\\Textures\\target_indicator_glow.tga"] = "Target Indicator Glow",
|
["Interface\\AddOns\\WeakAuras\\Media\\Textures\\target_indicator_glow.tga"] = "Target Indicator Glow",
|
||||||
["Interface\\AddOns\\WeakAuras\\Media\\Textures\\arrows_target.tga"] = "Arrows Target",
|
["Interface\\AddOns\\WeakAuras\\Media\\Textures\\arrows_target.tga"] = "Arrows Target",
|
||||||
|
|
||||||
|
["Interface\\AddOns\\WeakAuras\\Media\\Textures\\Circle_AlphaGradient_In.tga"] = "Circle Alpha Gradient In",
|
||||||
|
["Interface\\AddOns\\WeakAuras\\Media\\Textures\\Circle_AlphaGradient_Out.tga"] = "Circle Alpha Gradient Out",
|
||||||
|
["Interface\\AddOns\\WeakAuras\\Media\\Textures\\Ring_10px.tga"] = "Ring 10px",
|
||||||
|
["Interface\\AddOns\\WeakAuras\\Media\\Textures\\Ring_20px.tga"] = "Ring 20px",
|
||||||
|
["Interface\\AddOns\\WeakAuras\\Media\\Textures\\Ring_30px.tga"] = "Ring 30px",
|
||||||
|
["Interface\\AddOns\\WeakAuras\\Media\\Textures\\Ring_40px.tga"] = "Ring 40px",
|
||||||
|
["Interface\\AddOns\\WeakAuras\\Media\\Textures\\Square_AlphaGradient.tga"] = "Square Alpha Gradient",
|
||||||
},
|
},
|
||||||
["Sparks"] = {
|
["Sparks"] = {
|
||||||
["Interface\\CastingBar\\UI-CastingBar-Spark"] = "Blizzard Spark",
|
["Interface\\CastingBar\\UI-CastingBar-Spark"] = "Blizzard Spark",
|
||||||
|
|||||||
Reference in New Issue
Block a user