Code: Select all
if (arch.esb_drawinfo) then
if (type(arch.esb_drawinfo) == "function") then
return (arch:esb_drawinfo(dir, inactive, tile))
elseif (type(arch.esb_drawinfo) == "table") then
return arch.esb_drawinfo[1], arch.esb_drawinfo[2]
end
end
I haven't tested this very much, and I'm not sure if it's the best approach, so right now it's experimental, but I thought I'd put it out there in case anyone else wanted to play with it or possibly improve it. In particular, I'm not sure if per-archetype or per-dungeon is the best way to hook this sort of thing-- would a custom_editor_drawnumber that gets called before the main function work better? Perhaps both?
The other issue is that the standard icon sheet is still the only one loaded. I'll have to think more about how to handle custom images.