PDA

View Full Version : Custom icon with built in function 'notification'


ClevIndn
2006-05-31, 20:21
i think it would be useful for a custom icon to be able to be loaded for notification windows based on a parameter.

here is why: i use the httpapi to load the notification function. i use a (pc) python app and this function to alert me when a torrent finishes downloading on my computer, when my (unhacked) tivo begins recording something, etc. it would be useful to pass an image filename along with the 'title' and 'message' paremeters. this would make it easy to determine what kind of notification it is.

possible?

thanks,

jeff

spiff
2006-06-01, 03:04
- 01-06-2006 changed: xbmc.notification now takes an optional icon as param.

ClevIndn
2006-06-01, 04:11
wow! thank you very much. never expected anything to happen so soon!

i don't have capabilities to make build myself, so i can't try it out yet. in the meantime however, what icon size should i use? i'd like to start making some. also, for the parameter, would i pass the complete path to the icon?

thanks again.

edit: questions were answered in #xbmc.. 40x40 (if using pm3) and yes.

LiTHiUM
2007-04-06, 15:42
I have tried a 40x40 jpg and gif image but neither seems to work.
Can anyone help out here please?

LiTHiUM
2007-04-06, 17:10
Its ok, I finally sorted it!
For anyone else; the image had to be 32x32 and reference it with double backslashes.

jmarshall
2007-04-07, 03:16
No restriction I can see as to the size of the image - you should be able to use any sized image you like (within reason ofcourse!)