big progress on new UI

This commit is contained in:
Manuel Simon Hirsig
2015-10-24 19:37:44 +02:00
13 changed files with 1094 additions and 1159 deletions
+14
View File
@@ -9,6 +9,20 @@ local merge, copy_array
function Aux.util.pass()
end
function Aux.util.without_sound(f)
local orig = UIErrorsFrame.AddMessage
UIErrorsFrame.AddMessage = Aux.util.pass
f()
UIErrorsFrame.AddMessage = orig
end
function Aux.util.without_errors(f)
local orig = GetCVar('MasterSoundEffects')
SetCVar('MasterSoundEffects', false)
f()
SetCVar('MasterSoundEffects', orig)
end
function Aux.util.iter(array)
local with_index = ipairs(array)
return function()