Allow to overwrite draw function per widget

This commit is contained in:
Matthias Richter 2016-01-16 02:33:41 +01:00
parent 18880de088
commit 4f3d285218
9 changed files with 16 additions and 9 deletions

View file

@ -41,7 +41,7 @@ return function(core, info, ...)
end
end
core:registerDraw(core.theme.Slider, fraction, opt, x,y,w,h)
core:registerDraw(opt.draw or core.theme.Slider, fraction, opt, x,y,w,h)
return {
id = opt.id,