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

@ -11,9 +11,9 @@
* Pere Pujal for joining all toghether
* Caroline Ford for the text descriptions
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
http://tuxpaint.org/
https://tuxpaint.org/
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -30,7 +30,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>
@ -63,6 +63,7 @@ int mosaic_shaped_get_tool_count(magic_api * api);
SDL_Surface *mosaic_shaped_get_icon(magic_api * api, int which);
char *mosaic_shaped_get_name(magic_api * api, int which);
int mosaic_shaped_get_group(magic_api * api, int which);
int mosaic_shaped_get_order(int which);
char *mosaic_shaped_get_description(magic_api * api, int which, int mode);
@ -111,6 +112,12 @@ enum
mosaic_shaped_NUM_TOOLS
};
int magic_shaped_order[mosaic_shaped_NUM_TOOLS] = {
1002,
1001,
1000,
};
static Mix_Chunk *mosaic_shaped_snd_effect[mosaic_shaped_NUM_TOOLS];
static SDL_Surface *canvas_shaped;
static SDL_Surface *canvas_back;
@ -206,6 +213,12 @@ int mosaic_shaped_get_group(magic_api * api ATTRIBUTE_UNUSED, int which ATTRIBUT
return MAGIC_TYPE_DISTORTS;
}
// Return our order
int mosaic_shaped_get_order(int which)
{
return magic_shaped_order[which];
}
// Return our descriptions, localized:
char *mosaic_shaped_get_description(magic_api * api ATTRIBUTE_UNUSED, int which, int mode)
{