I modified the module some time ago for a little project. The main things i did was to fix active trail and to get the size automatically from the image and print it to the output, so no additional css modifications are neccessary. I hardcoded the height calculation, assumed that the sprite has only three states. Best idea would be to implement it to the settings.
Its not perfect but a good start. Be clement, its the first patch i ever committed.

Thanks for reviewing.

CommentFileSizeAuthor
spritemenu.module.patch4.67 KBmarcoka

Comments

mariacha’s picture

This patch worked great for me

marcoka’s picture

thanks, but it seems that this module is not really maintained, because the maintainer did not even answer.

hanoii’s picture

Status: Needs review » Needs work

sorry not to have replied, I am maintaining the module. I have looked at this patch back then and I am apologize not to have answered, the main reason was that you clearly sated that you made a few assumptions and that it was hacked to match your needs, and I haven't gone further enough to decide whether to add this or not to the module. If you can work over those assumptions and make this flexible enough so that the module works the same with it, I will be review it when I have time and try to commit it.

Again, sorry not to have answered it before.

marcoka’s picture

yes it should be flexible. if i find the time again i will modify the code to be full flexible.

justafish’s picture

This might be a more flexible solution:
http://drupal.org/node/1132196

quicksketch’s picture

Yeah the way we're using this module, the posted solution definitely wouldn't work for us. I'll take a look at @justafish's #1132196: Allow setting of width/height, optional link states, cruft cleaning etc.