Gave ordering to all Painting magic tools

All done!
This commit is contained in:
Bill Kendrick 2024-01-16 23:10:08 -08:00
parent e3cb845426
commit a9515c351e
18 changed files with 150 additions and 32 deletions

View file

@ -2,7 +2,7 @@
Allows painting generated maze puzzles on your picture.
Last updated: December 29, 2023
Last updated: January 16, 2024
*/
#include <stdio.h>
@ -48,6 +48,7 @@ int maze_get_tool_count(magic_api * api);
SDL_Surface *maze_get_icon(magic_api * api, int which);
char *maze_get_name(magic_api * api, int which);
int maze_get_group(magic_api * api, int which);
int maze_get_order(int which);
char *maze_get_description(magic_api * api, int which, int mode);
int maze_requires_colors(magic_api * api, int which);
int maze_modes(magic_api * api, int which);
@ -115,6 +116,11 @@ int maze_get_group(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED)
return MAGIC_TYPE_PAINTING;
}
int maze_get_order(int which ATTRIBUTE_UNUSED)
{
return 2000;
}
char *maze_get_description(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUTE_UNUSED, int mode)
{
if (mode == MODE_PAINT)