Gave ordering to all Distorts magic tools

This commit is contained in:
Bill Kendrick 2024-01-16 21:31:07 -08:00
parent f8a3eabd9d
commit 0532b35f31
17 changed files with 207 additions and 35 deletions

View file

@ -4,7 +4,7 @@
Distortion Magic Tool Plugin
Tux Paint - A simple drawing program for children.
Copyright (c) 2002-2023 by Bill Kendrick and others; see AUTHORS.txt
Copyright (c) 2002-2024 by Bill Kendrick and others; see AUTHORS.txt
bill@newbreedsoftware.com
https://tuxpaint.org/
@ -23,7 +23,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
(See COPYING.txt)
Last updated: December 29, 2023
Last updated: January 16, 2024
*/
/* Inclusion of header files: */
@ -60,6 +60,7 @@ int distortion_get_tool_count(magic_api * api);
SDL_Surface *distortion_get_icon(magic_api * api, int which);
char *distortion_get_name(magic_api * api, int which);
int distortion_get_group(magic_api * api, int which);
int distortion_get_order(int which);
char *distortion_get_description(magic_api * api, int which, int mode);
int distortion_requires_colors(magic_api * api, int which);
void distortion_shutdown(magic_api * api);
@ -150,6 +151,14 @@ int distortion_get_group(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_U
}
// Report our "Magic" tool order
int distortion_get_order(int which ATTRIBUTE_UNUSED)
{
return 101;
}
// Report our "Magic" tool descriptions
char *distortion_get_description(magic_api * api ATTRIBUTE_UNUSED,