- Fixed the problem with bar's custom texts.

- Function calls inside the custom text are now protected against script errors.
- Chart Data scripts and Custom Displays scripts now also are protected.
- Still more smoothing tweaks on menus and skins.
This commit is contained in:
tercio
2014-10-20 15:10:19 -02:00
parent 202bbdc606
commit 5a783e8c60
13 changed files with 103 additions and 58 deletions
+6 -1
View File
@@ -17,6 +17,7 @@
--> local pointers
local ipairs = ipairs
local _math_floor = math.floor
local _pcall = pcall
local time = time
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
@@ -205,7 +206,11 @@
local exec_user_func = function (func, attributes, data, this_second)
local result = func()
local okey, result = _pcall (func)
if (not okey) then
_detalhes:Msg ("|cFFFF9900error on chart script function|r:", result)
result = 0
end
local current = result - attributes.last_value
data [this_second] = current