- Added Fast Dps/Hps Updates, enable in on Rows: Advanced -> Fast Updates.
- Added custom spell for Mirror Images Fireball and Frostbolt. - Added new skin: 'ElvUI Style II'. - Added Observer channel for Raid Tools, it only reports the cooldown/interrupt/death to you in your chat window. - Added new plugin: Raid Check: it tracks raid members checking food, flask and pre-potions usage. - Changed DPS display, now it shows onyl the player's Dps and the Dps difference between him and the top ranked. - Changed Overheal display, now its percentage shows the player's overheal percent. - Player Detail Window now shows the amount of multistrike on normal and critical hits. - Removed skin: 'ElvUI Frame Style BW'. - The tooltip for Scale option under options panel, now shows the real value for the scale. - Fixed a problem where multistrike was counting towards critical strike amount. - Fixed death display's report where it was't showing any death. - Fixed a small issue with Encounter Details plugin where sometimes gets a error right after a boss encounter. - Fixed bugs on sending messages to chat for Raid Tools.
This commit is contained in:
+7
-3
@@ -160,7 +160,7 @@
|
||||
return args [tonumber(i)]
|
||||
end
|
||||
local run_function = function (str)
|
||||
local okey, value = _pcall (loadstring (str), args[4])
|
||||
local okey, value = _pcall (loadstring (str), args[4], args[5])
|
||||
if (not okey) then
|
||||
_detalhes:Msg ("|cFFFF9900error on custom text function|r:", value)
|
||||
return 0
|
||||
@@ -233,7 +233,7 @@
|
||||
return s
|
||||
end
|
||||
|
||||
function _detalhes:percent_color (value)
|
||||
function _detalhes:percent_color (value, inverted)
|
||||
local r, g
|
||||
if (value < 50) then
|
||||
r = 255
|
||||
@@ -247,7 +247,11 @@
|
||||
g = _math_floor ( (value * 2) * 255 / 100)
|
||||
end
|
||||
|
||||
return r/255, g/255, 0
|
||||
if (inverted) then
|
||||
return g/255, r/255, 0
|
||||
else
|
||||
return r/255, g/255, 0
|
||||
end
|
||||
end
|
||||
|
||||
--> unpack more than 1 table
|
||||
|
||||
Reference in New Issue
Block a user