Gave ordering to all Artistic magic tools

This commit is contained in:
Bill Kendrick 2024-01-16 22:09:22 -08:00
parent b13674017a
commit 0353c5670d
7 changed files with 67 additions and 11 deletions

View file

@ -2,9 +2,9 @@
flower.c
Flower Magic Tool Plugin
// Tux Paint - A simple drawing program for children.
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
*/
#include <stdio.h>
@ -78,6 +78,7 @@ int flower_get_tool_count(magic_api * api);
SDL_Surface *flower_get_icon(magic_api * api, int which);
char *flower_get_name(magic_api * api, int which);
int flower_get_group(magic_api * api, int which);
int flower_get_order(int which);
char *flower_get_description(magic_api * api, int which, int mode);
static void flower_predrag(magic_api * api, SDL_Surface * canvas, SDL_Surface * last, int ox, int oy, int x, int y);
void flower_drag(magic_api * api, int which, SDL_Surface * canvas,
@ -206,6 +207,12 @@ int flower_get_group(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSE
return MAGIC_TYPE_ARTISTIC;
}
// Return our orders:
int flower_get_order(int which ATTRIBUTE_UNUSED)
{
return 100;
}
// Return our descriptions, localized:
char *flower_get_description(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, int mode ATTRIBUTE_UNUSED)
{