Added alien magic tool. Added missing description text for some magic tools.

This commit is contained in:
Andrew Corcoran 2008-07-29 19:57:55 +00:00
parent fd65f98abc
commit d0d5e16b00
9 changed files with 257 additions and 16 deletions

View file

@ -62,8 +62,9 @@ const char * noise_icon_filenames[noise_NUM_TOOLS] = {
const char * noise_names[noise_NUM_TOOLS] = {
gettext_noop("Noise"),
};
const char * noise_descs[noise_NUM_TOOLS] = {
gettext_noop("Click to add noise to the image."),
const char * noise_descs[noise_NUM_TOOLS][2] = {
{gettext_noop("Click and move the mouse to add noise to the image."),
gettext_noop("Click to add noise to the entire image."),},
};
Uint32 noise_api_version(void) { return(TP_MAGIC_API_VERSION); }
@ -102,8 +103,8 @@ char * noise_get_name(magic_api * api, int which){
}
// Return our descriptions, localized:
char * noise_get_description(magic_api * api, int which){
return(strdup(gettext(noise_descs[which])));
char * noise_get_description(magic_api * api, int which, int mode){
return(strdup(gettext(noise_descs[which][mode-1])));
}
//Do the effect for one pixel